/* Genel Stiller */
:root {
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    transition: all var(--transition-speed);
    border-right: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #1a1d20 0%, #212529 100%);
}

[data-bs-theme="light"] .sidebar {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.sidebar .nav-link {
    padding: 0.8rem 1rem;
    margin: 0.2rem 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
    color: var(--bs-body-color);
}

.sidebar .nav-link:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.sidebar-heading {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ana İçerik */
.main-content {
    min-height: 100vh;
    transition: all var(--transition-speed);
}

/* Kart Animasyonları */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .card {
    background: linear-gradient(145deg, #2d3238 0%, #212529 100%);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* İstatistik Kartları */
.stat-card {
    border-left: 4px solid var(--bs-primary);
    border-radius: 10px;
    padding: 1.5rem;
}

.stat-card.upload { border-left-color: #28a745; }
.stat-card.download { border-left-color: #17a2b8; }
.stat-card.storage { border-left-color: #ffc107; }
.stat-card.users { border-left-color: #dc3545; }

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

/* Yükleme Alanı */
.upload-area {
    border: 3px dashed var(--bs-border-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.upload-area i {
    font-size: 4rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

/* İlerleme Çubuğu */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--bs-border-color);
}

/* Tablo Stilleri */
.table-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .table-container {
    animation: slideIn 0.5s ease-out;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        left: -100%;
        width: 280px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Tablet Uyumluluğu */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .sidebar-heading {
        font-size: 0.9rem;
    }
}

/* Tema Geçiş Animasyonu */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Özel Scroll Bar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary-dark);
}

/* Buton Stilleri */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Badge Stilleri */
.badge {
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Toast Bildirimleri */
.toast {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Dosya İkonları */
.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.file-icon.image { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.file-icon.document { background-color: rgba(0, 123, 255, 0.1); color: #007bff; }
.file-icon.archive { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }
.file-icon.other { background-color: rgba(108, 117, 125, 0.1); color: #6c757d; }

/* Sidebar açıkken scroll'u engelle */
body.sidebar-open {
    overflow: hidden;
}

/* Ana içerik alanı */
.main-content {
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
        padding-top: 70px; /* Mobil buton için boşluk */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Mobil menü butonu animasyonu */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(var(--bs-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0); }
}

.mobile-menu-btn {
    animation: pulse 2s infinite;
}

/* ============================================ */
/* AUTH SAYFALARI STİLLERİ                      */
/* ============================================ */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

[data-bs-theme="light"] .auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-bs-theme="dark"] .auth-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.auth-card {
    background: var(--bs-body-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .auth-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.auth-icon.primary { background: var(--bs-primary); box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.4); }
.auth-icon.success { background: #198754; box-shadow: 0 10px 30px rgba(25, 135, 84, 0.4); }
.auth-icon.warning { background: #ffc107; box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4); color: #000; }
.auth-icon.danger { background: #dc3545; box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4); }

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 0.3rem;
}

.auth-subtitle {
    color: var(--bs-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.auth-form-group {
    margin-bottom: 1.2rem;
}

.auth-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--bs-body-color);
    display: block;
}

.auth-input-group-text {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-secondary);
}

.auth-form-control {
    border-color: var(--bs-border-color);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.auth-form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-btn-primary { box-shadow: 0 5px 20px rgba(var(--bs-primary-rgb), 0.3); }
.auth-btn-primary:hover { box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.5); }
.auth-btn-success { box-shadow: 0 5px 20px rgba(25, 135, 84, 0.3); }
.auth-btn-success:hover { box-shadow: 0 10px 30px rgba(25, 135, 84, 0.5); }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--bs-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bs-border-color);
}

.auth-divider span {
    padding: 0 15px;
}

.auth-theme-toggle {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-theme-toggle .btn-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.auth-theme-toggle .btn {
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.auth-theme-toggle .btn i {
    margin-right: 5px;
}

.auth-alert {
    border-radius: 12px;
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
}

/* Auth Success Sayfası */
.auth-success {
    text-align: center;
    padding: 2rem 0;
}

.auth-success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Mobil Auth */
@media (max-width: 480px) {
    .auth-body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 30px;
    }
    
    .auth-card {
        padding: 1.5rem 1.2rem;
        border-radius: 15px;
    }
    
    .auth-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
}

@media (max-height: 700px) {
    .auth-body {
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .auth-form-group {
        margin-bottom: 0.8rem;
    }
}

/* Şifre gücü göstergesi */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength .progress {
    height: 5px;
    border-radius: 3px;
}

.password-strength small {
    font-size: 0.75rem;
}