/* ============================================================
   MCFS Admin — Islamic Academic Modern Design
   ============================================================ */

:root {
    --primary: #0F6B3C;
    --primary-dark: #0A4D2A;
    --primary-mid: #1A8C4E;
    --primary-light: #E8F5EC;
    --accent: #C9A14A;
    --accent-dark: #A68334;
    --accent-light: #E8D28A;
    --accent-soft: #FAF3DF;
    --dark: #0F1F15;
    --dark-soft: #1C2F22;
    --light: #FAFAF5;
    --gray: #6B7A72;
    --gray-light: #B8C2BC;
    --border: #E4EAE5;

    --gradient-primary: linear-gradient(135deg, #0F6B3C 0%, #1A8C4E 100%);
    --gradient-gold: linear-gradient(135deg, #C9A14A 0%, #E8D28A 100%);
    --gradient-dark: linear-gradient(135deg, #0F1F15 0%, #0A4D2A 100%);

    --shadow-sm: 0 2px 8px rgba(15, 107, 60, 0.08);
    --shadow-md: 0 8px 28px rgba(15, 107, 60, 0.12);
    --shadow-lg: 0 20px 60px rgba(15, 107, 60, 0.20);
}

/* ── LOGIN PAGE : Split Layout ── */
.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--light);
}

/* Left panel — building photo */
.login-left {
    display: none;
    flex: 1;
    position: relative;
    overflow: hidden;
}
.login-left-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/fakultas.jpeg') center/cover no-repeat;
    filter: brightness(0.7) saturate(1.1);
}
.login-left-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(201, 161, 74, 0.25), transparent 60%),
        linear-gradient(160deg, rgba(10, 77, 42, 0.85) 0%, rgba(15, 31, 21, 0.90) 100%);
}
.login-left-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 48px;
    color: white;
}
.login-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 161, 74, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 161, 74, 0.4);
    color: var(--accent-light);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
}
.login-left-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.login-left-content h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gradient-gold);
    border-radius: 3px;
    margin-top: 18px;
}
.login-left-content p {
    font-size: 15px;
    opacity: 0.85;
    max-width: 380px;
    line-height: 1.8;
}

/* Right panel — form */
.login-right {
    width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    min-height: 100vh;
    box-sizing: border-box;
}
.login-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}
.login-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(201, 161, 74, 0.25);
}
.login-logo-wrap span {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: 0.3px;
}
.login-logo-wrap small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}
.login-right h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.login-right > p {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 36px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 420px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}
.input-wrap {
    position: relative;
}
.input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
}
.input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: var(--light);
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}
.input-wrap input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.input-wrap input:focus + i,
.input-wrap:focus-within i {
    color: var(--primary);
}
.form-group input, .form-group textarea, .form-group select {
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    background: white;
    transition: all 0.3s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.form-group textarea { min-height: 110px; resize: vertical; font-family: inherit; }

.error-msg {
    color: #B91C1C;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    font-weight: 500;
    border-radius: 10px;
    transition: padding 0.2s;
}
.error-msg:not(:empty) {
    background: #FEE2E2;
    padding: 11px;
    border: 1px solid #FCA5A5;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    margin-top: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(15, 107, 60, 0.25);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 107, 60, 0.4);
    background: var(--gradient-dark);
}

.login-hint {
    font-size: 12px;
    color: var(--gray);
    background: var(--accent-soft);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px dashed var(--accent-light);
    text-align: center;
}
.login-hint strong { color: var(--accent-dark); }

.back-home {
    display: block;
    margin-top: 32px;
    color: var(--gray);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
}
.back-home:hover { color: var(--primary); }

@media (min-width: 768px) {
    .login-left { display: block; }
    .login-right { max-width: 520px; padding: 56px 64px; }
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.admin-body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    min-height: 100vh;
    display: flex;
    color: var(--dark);
}
.sidebar {
    width: 272px;
    background: var(--dark);
    color: white;
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0;
    z-index: 100;
    transition: transform 0.4s;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
}
.sidebar-header {
    padding: 28px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 14px;
    align-items: center;
}
.sidebar-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.sidebar-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.3px;
}
.sidebar-header small {
    color: var(--gray-light);
    font-size: 11px;
    letter-spacing: 0.5px;
}
.sidebar-menu {
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.menu-item {
    padding: 13px 18px;
    border-radius: 12px;
    color: #B8C2BC;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}
.menu-item:hover {
    background: rgba(201, 161, 74, 0.08);
    color: white;
    padding-left: 22px;
}
.menu-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(15, 107, 60, 0.35);
}
.menu-item.active::before {
    content: '';
    position: absolute;
    left: -14px; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 24px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}
.menu-item.logout {
    margin-top: auto;
    color: #FCA5A5;
}
.menu-item.logout:hover {
    background: rgba(185, 28, 28, 0.15);
    color: #FCA5A5;
}
.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.main-content {
    flex: 1;
    margin-left: 272px;
    padding: 28px;
    min-height: 100vh;
}
.admin-header {
    background: white;
    padding: 18px 26px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}
.admin-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: var(--dark);
    font-weight: 700;
}
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary);
    display: none;
}
.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--primary-light);
}
.admin-user i {
    font-size: 26px;
    color: var(--primary);
}

.tab-content { display: none; animation: fadeInAdmin 0.4s; }
.tab-content.active { display: block; }
@keyframes fadeInAdmin {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}
.stat-card {
    background: white;
    padding: 26px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 18px;
    align-items: center;
    transition: all 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    opacity: 0.06;
    transition: transform 0.5s;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}
.stat-card:hover::before { transform: scale(1.3); }
.stat-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}
.stat-card > div:last-child { z-index: 1; }
.stat-card.blue .stat-icon { background: var(--gradient-primary); }
.stat-card.blue::before { background: var(--primary); }
.stat-card.red .stat-icon { background: var(--gradient-gold); color: var(--dark); }
.stat-card.red::before { background: var(--accent); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #1A8C4E, #2DB36B); }
.stat-card.green::before { background: #1A8C4E; }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #A68334, #C9A14A); }
.stat-card.orange::before { background: var(--accent-dark); }
.stat-card h3 {
    font-size: 32px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card p {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.welcome-box {
    background: var(--gradient-dark);
    color: white;
    padding: 48px 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.welcome-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 161, 74, 0.25), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 140, 78, 0.3), transparent 50%);
}
.welcome-box > * { position: relative; z-index: 1; }
.welcome-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.welcome-box p {
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.quick-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.welcome-box .btn {
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    font-family: inherit;
    text-decoration: none;
}
.welcome-box .btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(201, 161, 74, 0.35);
}
.welcome-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 161, 74, 0.5);
}
.btn-outline-dark {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}
.btn-outline-dark:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}
.tab-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    color: var(--dark);
    font-weight: 800;
}
.tab-header .btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    font-family: inherit;
    text-decoration: none;
}
.tab-header .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 18px rgba(15, 107, 60, 0.3);
}
.tab-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 107, 60, 0.45);
    background: var(--gradient-dark);
}

.table-wrapper {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    border: 1px solid var(--border);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.admin-table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    text-align: left;
    padding: 16px 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--dark);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light); }
.admin-table img.thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border);
}
.badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-block;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge.Prestasi { background: var(--accent-soft); color: var(--accent-dark); }
.badge.Kegiatan { background: #D1FAE5; color: #065F46; }
.badge.Pengumuman { background: #FEE2E2; color: #991B1B; }

.action-btns {
    display: flex;
    gap: 8px;
}
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}
.btn-edit:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-delete {
    background: #FEE2E2;
    color: #991B1B;
}
.btn-delete:hover {
    background: #991B1B;
    color: white;
    transform: translateY(-2px);
}

/* Form Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 31, 18, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}
.modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUpAdmin 0.4s;
    box-shadow: var(--shadow-lg);
}
@keyframes slideUpAdmin {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 10;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(15, 31, 21, 0.55);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    line-height: 1;
}
.modal-close:hover {
    background: var(--accent);
    color: var(--dark);
    transform: rotate(90deg);
}
.form-modal { padding: 36px; }
.form-modal h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
}
#dataForm { display: flex; flex-direction: column; gap: 16px; }
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 14px;
}
.btn-cancel {
    padding: 13px 26px;
    background: var(--border);
    color: var(--dark);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 14px;
}
.btn-cancel:hover { background: var(--gray-light); }
.btn-save {
    padding: 13px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(15, 107, 60, 0.3);
}
.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 107, 60, 0.45);
    background: var(--gradient-dark);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light);
    position: relative;
}
.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.file-upload-area.dragover {
    transform: scale(1.01);
}
.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}
.file-upload-placeholder i {
    font-size: 36px;
    color: var(--primary);
    opacity: 0.6;
}
.file-upload-placeholder p {
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}
.file-upload-placeholder small {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}
.file-upload-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.file-upload-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    object-fit: contain;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.file-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #991B1B;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}
.file-remove-btn:hover {
    background: #B91C1C;
    transform: scale(1.1);
}

/* Galeri Preview (multi-image) */
.galeri-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.galeri-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.galeri-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.galeri-item .file-remove-btn {
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 10px;
}
.galeri-hint {
    display: block;
    margin-top: 10px;
    color: var(--gray);
    font-size: 12px;
}
.galeri-hint span { color: var(--primary); font-weight: 700; }

/* Berkas Preview (PDF/Word) */
.berkas-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 12px;
}
.berkas-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.berkas-info > i {
    font-size: 32px;
    color: var(--primary);
}
.berkas-info strong {
    display: block;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
}
.berkas-info small {
    display: block;
    color: var(--gray);
    font-size: 12px;
    margin-top: 2px;
}
.berkas-preview .file-remove-btn {
    position: static;
    width: 32px;
    height: 32px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 107, 60, 0.3);
    font-weight: 600;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transform: translateX(120px);
    transition: all 0.4s;
    border-left: 4px solid var(--accent);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.error {
    background: linear-gradient(135deg, #991B1B, #B91C1C);
    border-left-color: #FCA5A5;
}

@media (max-width: 968px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; }
    .sidebar-toggle { display: block; }
    .welcome-box { padding: 36px 24px; }
    .welcome-box h2 { font-size: 22px; }
    .form-modal { padding: 28px; }
}
/* Profil Tab Subsections */
.profil-subsection { margin-bottom: 32px; }
.profil-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.profil-sub-header h3 {
    font-size: 18px;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profil-sub-header h3 i { color: var(--primary); }

/* Thumbnail foto struktur di tabel admin (pasfoto 2x3 mini) */
.struktur-thumb {
    width: 32px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: block;
}
.struktur-thumb-empty {
    width: 32px;
    height: 48px;
    border-radius: 4px;
    border: 1.5px dashed var(--border);
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 14px;
}

/* Preview pasfoto 2x3 di form struktur */
.struktur-foto-area .struktur-foto-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.struktur-foto-preview img {
    width: 66px;
    height: 99px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
}
.struktur-foto-preview .file-remove-btn {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    font-size: 11px;
}
