/**
 * =====================================================
 * File: assets/css/style.css
 * Aplikasi: Manajemen TeFa SMKN 1 Sukatani Purwakarta
 * Programmer: Asep Setiawan, S.Pd., M.M.
 * Database: smknsuka_tefa
 * =====================================================
 */

/* ============================================
   VARIABEL WARNA (GAMPANG DIUBAH)
   ============================================ */
:root {
    --primary-dark: #0F172A;
    --primary-mid: #1E3A5F;
    --primary-light: #3B82F6;
    --accent-gold: #F59E0B;
    --accent-orange: #F97316;
    --bg-light: #F1F5F9;
    --text-dark: #1E293B;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* ============================================
   BODY
   ============================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   CARD MODERN (Glassmorphism)
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    color: white;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

/* ============================================
   STATISTIK CARD (Dashboard)
   ============================================ */
.stat-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    color: white;
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 48px;
    opacity: 0.2;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 700;
}

.stat-card .label {
    font-size: 14px;
    opacity: 0.8;
}

/* Warna berbeda untuk setiap stat */
.stat-card.blue { background: linear-gradient(135deg, #1E3A5F, #3B82F6); }
.stat-card.green { background: linear-gradient(135deg, #065F46, #10B981); }
.stat-card.gold { background: linear-gradient(135deg, #92400E, #F59E0B); }
.stat-card.red { background: linear-gradient(135deg, #7F1D1D, #EF4444); }
.stat-card.purple { background: linear-gradient(135deg, #4C1D95, #8B5CF6); }

/* ============================================
   TABEL
   ============================================ */
.table {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

.table thead {
    background: var(--primary-dark);
    color: white;
}

.table thead th {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ============================================
   TOMBOL
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #92400E, #F59E0B);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    color: white;
}

/* ============================================
   FORM
   ============================================ */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

/* ============================================
   NAVBAR ACTIVE
   ============================================ */
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.navbar .nav-link {
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   DROPDOWN
   ============================================ */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    border: none;
    color: var(--text-dark);
    border-radius: 8px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: var(--primary-mid);
    color: white;
}

.pagination .page-link:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* ============================================
   NOTIFIKASI (Alert)
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 15px 20px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    color: #7F1D1D;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    color: #1E3A5F;
}

/* ============================================
   RESPONSIVE (Mobile Friendly)
   ============================================ */
@media (max-width: 768px) {
    .stat-card .number {
        font-size: 24px;
    }
    
    .stat-card .icon {
        font-size: 32px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 10px;
    }
    
    .card-header {
        font-size: 14px;
    }
    
    .footer {
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .number {
        font-size: 20px;
    }
    
    .btn {
        font-size: 13px;
        padding: 6px 15px;
    }
}