/* ==========================================
   ARAÇ TAKİP PANELİ - Modern Light Theme
   ========================================== */

:root {
    --bg-body: #f0f2f5;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-sidebar: #ffffff;
    --bg-input: #f8f9fb;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: rgba(79, 70, 229, 0.08);
    --primary-lighter: rgba(79, 70, 229, 0.04);
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.08);
    --warning: #D97706;
    --warning-light: rgba(217, 119, 6, 0.08);
    --danger: #DC2626;
    --danger-light: rgba(220, 38, 38, 0.08);
    --purple: #7C3AED;
    --purple-light: rgba(124, 58, 237, 0.08);
    --cyan: #0891B2;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #0891B2 100%);
    --gradient-danger: linear-gradient(135deg, #DC2626 0%, #D97706 100%);
    --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== LOGIN PAGE ========== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: loginSlideUp 0.6s ease;
}

@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.login-logo h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-logo p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: var(--transition);
    outline: none;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: white;
}

.login-form .form-control::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-logo i {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
}

.sidebar-nav {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
}

.sidebar-nav .nav-item {
    margin-bottom: 2px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-footer {
    padding: 16px 14px;
    border-top: 1px solid var(--border-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-user-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    color: var(--danger);
    background: var(--danger-light);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* ========== TOPBAR ========== */
.topbar {
    height: var(--topbar-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: none;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-light);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-date {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.topbar-date i {
    color: var(--primary);
    margin-right: 6px;
}

/* ========== CONTENT AREA ========== */
.content-area {
    padding: 28px 32px;
}

/* ========== STAT CARDS ========== */
.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.blue::before { background: var(--gradient-primary); }
.stat-card.green::before { background: var(--gradient-success); }
.stat-card.purple::before { background: var(--gradient-purple); }
.stat-card.red::before { background: var(--gradient-danger); }

.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.stat-card.blue .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.green .stat-icon { background: var(--success-light); color: var(--success); }
.stat-card.purple .stat-icon { background: var(--purple-light); color: var(--purple); }
.stat-card.red .stat-icon { background: var(--danger-light); color: var(--danger); }

.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== CARDS ========== */
.panel-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.panel-card:hover {
    box-shadow: var(--shadow-sm);
}

.panel-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-light);
}

.panel-card-header h5 {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.panel-card-header h5 i {
    color: var(--primary);
}

.panel-card-body {
    padding: 24px;
}

/* ========== ARAC CARDS ========== */
.arac-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.arac-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.arac-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.arac-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.arac-card:hover .arac-card-img img {
    transform: scale(1.05);
}

.arac-card-img .no-image {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.arac-card-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-stokta {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
    backdrop-filter: blur(8px);
}

.badge-satildi {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(8px);
}

.arac-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.arac-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.arac-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.arac-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.arac-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.73rem;
    color: var(--text-secondary);
}

.arac-info-tag i {
    font-size: 0.68rem;
    color: var(--primary);
}

.arac-card-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.price-item { text-align: center; }

.price-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.price-value.alis { color: var(--warning); }
.price-value.satis { color: var(--success); }

.arac-card-actions {
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    background: var(--bg-light);
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-outline-custom {
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger-custom {
    background: var(--danger-light);
    border: 1.5px solid rgba(220, 38, 38, 0.2);
    color: var(--danger);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-danger-custom:hover {
    background: rgba(220, 38, 38, 0.15);
    color: var(--danger);
}

.btn-sm-custom {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 36px; height: 36px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-icon.danger:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

/* ========== FORMS ========== */
.form-control, .form-select {
    background: var(--bg-input) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    transition: var(--transition) !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    background: white !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.text-danger {
    color: var(--danger) !important;
    font-size: 0.78rem;
}

/* ========== TABLES ========== */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background: var(--bg-light);
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tbody td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-custom tbody tr {
    transition: var(--transition);
}

.table-custom tbody tr:hover {
    background: var(--primary-lighter);
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .btn-icon {
    background: white;
    border: none;
}

/* ========== EKSPERTIZ ========== */
.ekspertiz-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    margin-bottom: 12px;
}

.ekspertiz-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.ekspertiz-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--purple-light);
    color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ekspertiz-info { flex: 1; }

.ekspertiz-info h6 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.ekspertiz-info small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ========== DETAIL PAGE ========== */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.detail-section { margin-bottom: 32px; }

.detail-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.detail-section-title i { color: var(--primary); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.info-item-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== PROFIT/LOSS ========== */
.profit-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.profit-card.profit {
    background: var(--success-light);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.profit-card.loss {
    background: var(--danger-light);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.profit-value {
    font-size: 2rem;
    font-weight: 800;
}

.profit-card.profit .profit-value { color: var(--success); }
.profit-card.loss .profit-value { color: var(--danger); }

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* ========== FILTER BAR ========== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 250px;
}

/* ========== FILE UPLOAD ========== */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.file-upload-area i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-area p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
}

.file-upload-area small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ========== ALERTS ========== */
.alert {
    border-radius: var(--radius-md) !important;
    border: none !important;
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light) !important;
    color: var(--success) !important;
}

.alert-danger {
    background: var(--danger-light) !important;
    color: var(--danger) !important;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-fade-up { animation: fadeInUp 0.5s ease; }

.stagger-1 { animation-delay: 0.05s; animation-fill-mode: both; }
.stagger-2 { animation-delay: 0.1s; animation-fill-mode: both; }
.stagger-3 { animation-delay: 0.15s; animation-fill-mode: both; }
.stagger-4 { animation-delay: 0.2s; animation-fill-mode: both; }
.stagger-5 { animation-delay: 0.25s; animation-fill-mode: both; }
.stagger-6 { animation-delay: 0.3s; animation-fill-mode: both; }

/* ========== DELETE PAGE ========== */
.delete-card {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.delete-card .delete-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--danger-light);
    color: var(--danger);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p { font-size: 0.88rem; }

/* ========== MODAL ========== */
.modal-content {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-light) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-light) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .content-area { padding: 20px 16px; }
}

@media (max-width: 575.98px) {
    .page-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .stat-card .stat-value { font-size: 1.3rem; }
    .filter-bar { flex-direction: column; }
    .filter-bar .form-control,
    .filter-bar .form-select { max-width: 100%; }
    .login-card { padding: 32px 24px; }
}