/* ==========================================================================
   menu-madrasah.css - Core Styles untuk SIMADU (tanpa navbar)
   Digunakan bersama navbar custom di setiap folder role (siswa, guru, admin, dll)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #0f3b2c 0%, #1e5a3a 100%);
    --primary-color: #0f3b2c;
    --secondary-color: #1e5a3a;
    --accent-honey: #ffc107;
    --accent-honey-dark: #e0a800;
    --text-light: #f0fdf4;
    --text-dark: #1f2937;
    --simadu-blue-light: #38bdf8;
    --simadu-blue-dark: #0284c7;
    --simadu-red-light: #f87171;
    --simadu-red-dark: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-image: url('../assets/img/honey-pattern.png');
    background-size: 180px;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: #fdfaf4;
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(15, 59, 44, 0.12);
}

.glass-card-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card-body {
    padding: 1.5rem;
}

/* ========== STAT CARD ========== */
.stat-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ========== MENU CARD ========== */
.menu-card {
    transition: all 0.2s;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    display: block;
    color: #374151;
    font-weight: 600;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
}

/* ========== DATA TABLE ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: rgba(15, 59, 44, 0.08);
    padding: 0.75rem 1rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tr:hover {
    background: rgba(245, 158, 11, 0.05);
}

/* ========== FORM STYLE ========== */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: white;
    transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(to right, #0f3b2c, #1e5a3a);
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #0f3b2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 59, 44, 0.2);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ========== BADGE ========== */
.badge-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-menunggu { background: #fef3c7; color: #92400e; }
.badge-disetujui { background: #d1fae5; color: #065f46; }
.badge-ditolak { background: #fee2e2; color: #991b1b; }
.badge-aktif { background: #d1fae5; color: #065f46; }
.badge-keluar { background: #fee2e2; color: #991b1b; }
.badge-lulus { background: #dbeafe; color: #1e40af; }

/* ========== UTILITY ========== */
.text-simadu-blue-dark {
    color: var(--simadu-blue-dark) !important;
    font-weight: bold;
}

.text-simadu-red-dark {
    color: var(--simadu-red-dark) !important;
    font-weight: bold;
}

/* ========== FOOTER ========== */
footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

/* ========== PRINT STYLE ========== */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .glass-card {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }
    .main-content {
        padding-top: 0 !important;
        margin-left: 0 !important;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .glass-card-body {
        padding: 1rem;
    }
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}