/* assets/css/custom.css - Custom Internal CSS for SPMB SMP/MTs with Nunito Font */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Form Fields Clean & Premium Layout */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.875rem; /* 14px */
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* Fix Icon Padding Overlap */
input.pl-10, select.pl-10 {
    padding-left: 2.75rem !important;
}
input.pr-10, select.pr-10 {
    padding-right: 2.75rem !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0d9488;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
    border-color: #94a3b8;
}

label.form-label {
    display: block;
    font-size: 0.75rem; /* 12px */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 0.4rem;
}

/* Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    color: #475569;
    font-weight: 600;
    font-size: 0.925rem;
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover {
    background-color: #f1f5f9;
    color: #0d9488;
}
.sidebar-link.active {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

/* Status Badges */
.badge-draft {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}
.badge-terverifikasi {
    background-color: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.badge-diterima {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.badge-perbaikan {
    background-color: #ffedd5;
    color: #ea580c;
    border: 1px solid #fed7aa;
}
.badge-ditolak {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Kop Surat Styling */
.kop-surat-container {
    border-bottom: 3px double #0f172a;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.kop-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.kop-text h1 {
    font-size: 18pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    line-height: 1.2;
}
.kop-text h2 {
    font-size: 14pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d9488;
    line-height: 1.2;
}
.kop-text p {
    font-size: 9.5pt;
    color: #334155;
    margin-top: 2px;
    line-height: 1.3;
}

/* Form Table Dapodik Print Layout */
.table-dapodik {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
}
.table-dapodik th, .table-dapodik td {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
}
.table-dapodik th {
    background-color: #f1f5f9;
    font-weight: 700;
    text-align: left;
}

/* Print Specific Media Query */
@media print {
    @page {
        size: A4 portrait;
        margin: 15mm 15mm 15mm 15mm;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt;
        font-family: 'Nunito', sans-serif !important;
    }
    .no-print {
        display: none !important;
    }
    .print-full-width {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    .kop-surat-container {
        border-bottom: 3px double #000000 !important;
    }
    .table-dapodik th, .table-dapodik td {
        border: 1px solid #000000 !important;
    }
}
