/* style.css - BİRLEŞTİRİLMİŞ TAM KOD (KOYU TEMA VE KART TASARIMI) */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* --- TEMEL AYARLAR --- */
body {
    /* Genel arka plan: Dashboard varsayılan koyu renk */
    background-color: #0d1117;
    font-family: 'Roboto', sans-serif;
    color: #c9d1d9; /* Açık gri metin */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

a {
    color: #44aaff; /* Mavi tonları */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Genel Koyu Kart Stili */
.card {
    background-color: rgba(13, 22, 33, 0.7); /* Koyu yarı saydam kart */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(60, 80, 100, 0.5);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #c9d1d9;
}

/* Genel Buton Stili (Tüm sayfalar için) */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary {
    background-color: #44aaff;
    color: #0d1117;
    font-weight: 500;
}
.btn-primary:hover:not([disabled]) {
    background-color: #00aaff;
}
.btn-primary[disabled] {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
}
.btn i {
    margin-right: 5px;
}

/* Mesaj Alanları (Hata/Başarı) */
.message-area .message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}
.message-area .error {
    background-color: rgba(255, 123, 114, 0.2);
    color: #ff7b72;
    border: 1px solid #ff7b72;
}
.message-area .success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}


/* --- DASHBOARD STİLLERİ --- */
.dashboard-wrapper {
    width: 95%;
    max-width: 1400px;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr; 
    gap: 25px;
}

/* Sol Sütun */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Saat/Tarih Widget'ı */
.date-time-widget {
    background-color: rgba(25, 40, 55, 0.8);
    padding: 15px 20px;
    text-align: left;
}
.date-time-widget .time {
    font-size: 2.5em;
    font-weight: 500;
    color: #ffffff;
}
.date-time-widget .date {
    font-size: 0.9em;
    color: #a0a0a0;
}

/* Depolama Widget'ı */
.storage-widget h2 {
    font-size: 1.3em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.storage-widget h2 i {
    color: #44aaff;
    margin-right: 10px;
}
.storage-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
.storage-icon i {
    font-size: 3em;
    color: #8899aa;
}
.status.healthy {
    color: #28a745;
    font-weight: 500;
}
.progress-bar-container {
    height: 6px;
    background-color: #333d47;
    border-radius: 3px;
    margin: 5px 0;
}
.progress-bar {
    height: 100%;
    background-color: #44aaff;
    border-radius: 3px;
}
.widget-settings {
    display: block;
    margin-top: 15px;
    text-align: right;
    font-size: 0.9em;
    color: #8899aa;
}
.widget-settings:hover {
    color: #44aaff;
    text-decoration: none;
}

/* Arama Çubuğu */
.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
}
.search-bar i {
    margin-right: 10px;
    color: #8899aa;
}
.search-bar .search-input {
    background: none;
    border: none;
    color: #c9d1d9;
    width: 100%;
    padding: 0;
}
.search-bar .search-input:focus {
    outline: none;
}

/* Kullanıcı Aksiyonları */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-actions span {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95em;
}

/* İkon Butonları (Profil ve Çıkış) */
.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d1d9;
    transition: background-color 0.2s;
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #44aaff;
}
.logout-btn-icon {
    color: #ff7b72;
}


/* Ana İçerik (Dosyalar) */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}
.section-title i {
    color: #28a745;
    margin-right: 10px;
}

/* Dosya Yükleme Bölümü */
.upload-widget h2 {
    font-size: 1.3em;
    color: #44aaff;
    margin-bottom: 15px;
}

.upload-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.custom-file-upload {
    border: 2px solid #44aaff;
    display: inline-block;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    background-color: rgba(68, 170, 255, 0.1);
    color: #44aaff;
    font-weight: bold;
    transition: background-color 0.2s;
}

.custom-file-upload:hover {
    background-color: rgba(68, 170, 255, 0.2);
}

#file-name-display {
    flex-grow: 1;
    color: #a0a0a0;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dosya Grid Görünümü */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: rgba(25, 40, 55, 0.9);
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.file-main-icon {
    font-size: 3em;
    color: #92e0ff;
    margin-bottom: 10px;
}

.file-card-details {
    overflow: hidden;
    width: 100%;
}
.file-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: 0.9em;
}
.file-size-type {
    display: block;
    font-size: 0.75em;
    color: #8899aa;
}

.file-card-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.file-card-actions a {
    color: #c9d1d9;
    font-size: 0.9em;
    transition: color 0.2s;
}
.file-card-actions a:hover {
    color: #44aaff;
    text-decoration: none;
}
.file-card-actions a:nth-child(2):hover {
    color: #ff7b72; 
}

.no-files-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #8899aa;
    padding: 40px;
    font-style: italic;
}


/* --- PROFİL & AYARLAR SAYFASI STİLLERİ --- */
.profile-wrapper, .settings-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 50px auto;
}

.profile-header, .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.profile-header h1, .settings-header h1 {
    font-size: 1.8em;
    color: #ffffff;
}

.profile-header h1 i, .settings-header h1 i {
    color: #44aaff;
    margin-right: 10px;
}

.profile-section, .settings-section {
    background-color: rgba(13, 22, 33, 0.7); 
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(60, 80, 100, 0.5);
}

.profile-section h2, .settings-section h2 {
    font-size: 1.4em;
    color: #c9d1d9;
    margin-bottom: 20px;
    border-left: 3px solid #44aaff;
    padding-left: 10px;
}

/* Genel input stilleri */
.profile-section form input,
.settings-section form input {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff; 
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.profile-section form input:focus,
.settings-section form input:focus {
    border-color: #44aaff;
    outline: none;
}

.profile-section form label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    color: #a0a0a0;
    font-size: 0.95em;
}

/* Profil Butonları */
.btn-success-save {
    background-color: #28a745;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}
.btn-success-save:hover {
    background-color: #1e7e34;
}
.btn-danger-pass {
    background-color: #dc3545;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}
.btn-danger-pass:hover {
    background-color: #c82333;
}


/* --- STORAGE SETTINGS STİLLERİ (storage_settings.php) --- */
.settings-grid {
    grid-template-columns: 1fr 1fr;
}

.progress-bar-large {
    height: 15px;
    background-color: #333d47;
    border-radius: 8px;
    margin: 15px 0;
}
.progress-bar-large .bar {
    height: 100%;
    background-color: #28a745;
    border-radius: 8px;
    transition: width 0.5s;
}
.action-button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    text-decoration: none;
}
.action-button i {
    margin-right: 8px;
}
.btn-archive {
    background-color: #ffc107;
    color: #000;
}
.btn-cleanup {
    background-color: #007bff;
    color: #fff;
}


/* --- GİRİŞ/KAYIT STİLLERİ (index.php) --- */
.auth-body {
    /* Burası, index.php'deki <style> etiketi tarafından rastgele arka plan görseliyle ezilecektir. */
    align-items: center !important;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 40px 30px;
}

.auth-container header h1 {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 5px;
}
.auth-container header .subtitle {
    color: #a0a0a0;
    margin-bottom: 25px;
    font-size: 0.9em;
}

/* Input Grupları */
.input-group {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}
.input-group:focus-within {
    border-color: #44aaff;
}

.input-group i {
    padding: 12px;
    color: #8899aa;
    font-size: 1.1em;
}

.auth-container form input {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    color: #ffffff;
    box-sizing: border-box;
    font-size: 1em;
}
.auth-container form input::placeholder {
    color: #a0a0a0;
}

/* Yetkilendirme Butonları */
.btn-auth {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-login {
    background-color: #44aaff;
    color: #0d1117;
}
.btn-login:hover {
    background-color: #00aaff;
}

.btn-register {
    background-color: #28a745;
    color: #0d1117;
}
.btn-register:hover {
    background-color: #1e7e34;
}

/* Alt Bağlantı (Giriş Yap/Kayıt Ol Geçişi) */
.switch-link {
    margin-top: 25px;
    font-size: 0.9em;
    color: #a0a0a0;
}
.switch-link a {
    color: #44aaff;
    font-weight: 500;
    text-decoration: none;
}
.switch-link a:hover {
    text-decoration: underline;
}