/* ============================================
   CUSTOM CSS - assets/css/style.css
   ============================================ */

:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #667eea;
    --success-color: #11998e;
    --danger-color: #cb2d3e;
    --warning-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

main {
    flex: 1;
    padding-bottom: 20px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* ============================================
   SISWA CARD
   ============================================ */

.siswa-card {
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    background: white;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.siswa-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.siswa-card .table {
    margin-bottom: 0;
}

.siswa-card .table td {
    padding: 8px 10px;
    border: none;
}

.siswa-card .table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 35%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a3f9a 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #38ef7d 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0f8a7e 0%, #2dda6a 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ef473a 100%);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b02434 0%, #d63d30 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f1c40f 100%);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d68910 0%, #d4ac0d 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    color: white;
}

/* ============================================
   FORMS
   ============================================ */

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control-lg {
    font-size: 16px;
    padding: 12px 20px;
}

.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table-primary th {
    font-weight: 600;
    padding: 12px 15px;
    border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 15px;
    border: none;
    padding: 15px 20px;
}

/* ============================================
   HOVER CARD
   ============================================ */

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .siswa-card .table td {
        display: block;
        padding: 4px 0;
    }
    
    .siswa-card .table tr {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .siswa-card .table td:first-child {
        width: 100%;
    }
    
    .siswa-card .table td:last-child {
        padding-bottom: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media print {
    .navbar, footer, .btn-group, .no-print, .alert {
        display: none !important;
    }
    
    .siswa-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-after: always;
        margin-bottom: 20px;
    }
    
    .siswa-card:last-child {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ============================================
   UTILITY
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.rounded-custom {
    border-radius: 15px;
}

/* ============================================
   DATA TABLES
   ============================================ */

.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 8px 15px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 5px 10px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-border-custom {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd6;
}