@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- 1. SISTEM DESAIN & VARIABEL --- */
:root {
    /* Palet Warna */
    --primary: #059669;        /* Emerald 600 - Hijau Islami Modern */
    --primary-dark: #047857;   /* Emerald 700 */
    --primary-light: #ecfdf5;  /* Emerald 50 */
    --primary-glow: rgba(5, 150, 105, 0.15);
    --secondary: #d97706;      /* Amber 600 - Emas Unggulan */
    --secondary-dark: #b45309; /* Amber 700 */
    --secondary-glow: rgba(217, 119, 6, 0.2);
    --text-dark: #0f172a;      /* Slate 900 */
    --text-medium: #334155;    /* Slate 700 */
    --text-light: #64748b;     /* Slate 500 */
    --bg-light: #f8fafc;       /* Slate 50 */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;   /* Slate 200 */
    --error: #ef4444;          /* Red 500 */
    --success: #10b981;        /* Emerald 500 */
    --warning: #f59e0b;        /* Amber 500 */
    --info: #3b82f6;           /* Blue 500 */
    
    /* Tipografi */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadow & Efek */
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transisi & Kecepatan */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-navbar: 1000;
    --z-modal: 1100;
}

/* --- 2. BASE STYLES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-medium);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--secondary-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.status-badge.success {
    background-color: #d1fae5;
    color: var(--primary-dark);
}

.status-badge.warning {
    background-color: #fef3c7;
    color: #b45309;
}

.status-badge.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-badge.info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. HEADER & NAVIGATION --- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: var(--z-navbar);
    transition: var(--transition-fast);
}

.navbar-wrapper.scrolled {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 4px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 48px;
    width: auto;
}

.logo-text h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 16px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* --- 5. HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0.04;
    filter: blur(80px);
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-islamic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.badge-islamic svg {
    color: var(--secondary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-title span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInScale 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--bg-white);
    background-color: var(--border-color);
}

.hero-image-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* Floating Card inside Hero */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.fb-1 {
    bottom: 30px;
    left: -40px;
    animation: float 4s ease-in-out infinite;
}

.fb-2 {
    top: 40px;
    right: -30px;
    animation: float 4s ease-in-out infinite 2s;
}

.fb-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fb-2 .fb-icon {
    background-color: #fffbeb;
    color: var(--secondary);
}

.fb-text h4 {
    font-size: 1rem;
    font-weight: 700;
}

.fb-text p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- 6. STATS SECTION --- */
.stats {
    margin-top: -60px;
    position: relative;
    z-index: 5;
    padding-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(5, 150, 105, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.stat-card:hover .stat-icon {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 7. CORE VALUES (VISI-MISI) --- */
.values {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.value-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(5, 150, 105, 0.2);
}

.value-icon-box {
    width: 54px;
    height: 54px;
    background-color: #f0fdf4;
    border: 1px solid rgba(5, 150, 105, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.value-card:nth-child(2) .value-icon-box { background-color: #fef3c7; color: var(--secondary); border-color: rgba(217, 119, 6, 0.1); }
.value-card:nth-child(3) .value-icon-box { background-color: #eff6ff; color: #3b82f6; border-color: rgba(59, 130, 246, 0.1); }
.value-card:nth-child(4) .value-icon-box { background-color: #faf5ff; color: #a855f7; border-color: rgba(168, 85, 247, 0.1); }

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- 8. PROGRAM UNGGULAN --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.program-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.program-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.program-img {
    width: 40%;
    position: relative;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.program-card:hover .program-img img {
    transform: scale(1.08);
}

.program-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.program-card:nth-child(even) .program-overlay {
    background-color: var(--secondary);
}

.program-content {
    width: 60%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.program-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.program-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* --- 9. BERITA & PENGUMUMAN --- */
.news {
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.news-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--border-color);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: var(--bg-white);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.news-info {
    padding: 24px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.news-title:hover {
    color: var(--primary);
}

.news-summary {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-readmore:hover {
    color: var(--primary-dark);
}

/* --- 10. TESTIMONIALS --- */
.testimonials {
    overflow: hidden;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.testimonial-slider {
    position: relative;
    height: 320px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-glow);
    margin-bottom: 16px;
    line-height: 1;
}

.quote-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 24px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--primary-light);
}

.user-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.user-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary);
    width: 24px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.slider-btn-prev { left: -10px; }
.slider-btn-next { right: -10px; }

/* --- 11. FOOTER --- */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 4px solid var(--primary);
}

.footer h3, .footer h4 {
    color: var(--bg-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-container {
    margin-bottom: 20px;
}

.footer-brand .logo-text h3 {
    color: var(--bg-white);
}

.footer-brand .logo-text p {
    color: #64748b;
}

.footer-brand-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #1e293b;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.footer-contact li svg {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-map-placeholder {
    height: 160px;
    border-radius: var(--radius-sm);
    background-color: #1e293b;
    border: 1px solid #334155;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* --- 12. PORTAL LOGIN & REGISTER PAGE --- */
.login-page {
    min-height: 100vh;
    display: flex;
    background-color: var(--bg-light);
}

.login-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-visual-side {
    position: relative;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: var(--bg-white);
    overflow: hidden;
}

.login-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.35;
}

.login-visual-top .logo-container img {
    height: 54px;
}

.login-visual-top .logo-text h3 {
    color: var(--bg-white);
}

.login-visual-center {
    max-width: 480px;
}

.login-quote {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.login-quote span {
    color: var(--secondary);
}

.login-quote-author {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
}

.login-visual-bottom {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Right Side - Form Side */
.login-form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: var(--bg-white);
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-header {
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Role Selector Tabs */
.role-tabs {
    display: flex;
    background-color: var(--bg-light);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
    position: relative;
    border: 1px solid var(--border-color);
}

.role-tab {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    z-index: 2;
    text-align: center;
}

.role-tab.active {
    color: var(--primary-dark);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* Info Box / Demo Box */
.demo-box {
    margin-top: 24px;
    background-color: var(--bg-light);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.8rem;
}

.demo-box h5 {
    color: var(--primary-dark);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-box ul li {
    margin-bottom: 4px;
}

.demo-box ul li span {
    font-weight: 700;
}

/* Input Fields Style */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.form-input:focus, select.form-input:focus {
    background-color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

select.form-input {
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-input:focus + .input-icon {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    background: none;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-container input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    font-weight: 600;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--primary);
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition-fast);
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-login:active {
    transform: translateY(0);
}

/* Error feedback visual */
.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.form-group.has-error .form-input {
    border-color: var(--error);
    background-color: #fef2f2;
}

.form-group.has-error .input-icon {
    color: var(--error);
}

.shake-animation {
    animation: shake 0.4s ease;
}

/* Spinner loading inside login button */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* Back Link */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.back-to-home:hover {
    color: var(--primary);
}

/* --- 13. FORM PENDAFTARAN PPDB MULTI-STEP STYLES --- */
.register-logo-bar {
    display: flex;
    justify-content: center;
    padding: 32px 0 16px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.ppdb-page {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding-bottom: 80px;
}

.ppdb-header {
    background-color: var(--bg-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 40px;
}

.ppdb-header h1 {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.ppdb-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Progress bar step indicators */
.progress-container {
    max-width: 720px;
    margin: 0 auto 50px auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.progress-line {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

.step-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--bg-white);
    border: 3px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.step-indicator.active .step-dot {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-glow);
}

.step-indicator.completed .step-dot {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.step-indicator.active .step-label {
    color: var(--primary-dark);
}

/* Step Card Layout */
.step-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

.step-title-block {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.step-title-block h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.step-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Premium Upload box */
.upload-box {
    border: 2.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    background-color: var(--bg-light);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-box:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.upload-box svg {
    color: var(--text-light);
    transition: var(--transition-fast);
}

.upload-box:hover svg {
    color: var(--primary);
    transform: translateY(-4px);
}

.upload-filename {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: none;
}

/* Form Actions Button Bar */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.step-success-screen {
    text-align: center;
    padding: 40px 0;
    display: none;
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon-badge {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: #d1fae5;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.registration-number-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 24px 0;
}

.registration-number-box h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

/* --- 14. MODERN DASHBOARD LAYOUT STYLES --- */
.dashboard-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background-color: var(--bg-light);
}

/* Sidebar Nav */
.sidebar {
    background-color: #0f172a;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1e293b;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #1e293b;
    gap: 12px;
}

.sidebar-logo h3 {
    color: var(--bg-white);
    font-size: 1.15rem;
}

.sidebar-logo p {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.sidebar-link svg {
    color: #64748b;
    transition: var(--transition-fast);
}

.sidebar-link:hover {
    color: var(--bg-white);
    background-color: #1e293b;
}

.sidebar-link:hover svg {
    color: var(--bg-white);
}

.sidebar-link.active {
    color: var(--bg-white);
    background-color: var(--primary);
}

.sidebar-link.active svg {
    color: var(--bg-white);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid #1e293b;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-profile-info h5 {
    color: var(--bg-white);
    font-size: 0.85rem;
}

.user-profile-info p {
    font-size: 0.75rem;
    color: #64748b;
}

/* Main Dashboard Panel */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.top-bar {
    height: 80px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-title h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.content-body {
    padding: 40px;
    flex: 1;
}

/* Dashboard Sections Toggle */
.dashboard-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.dashboard-section.active {
    display: block;
}

/* Dashboard Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-info h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.metric-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-card-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.metric-card-icon.secondary { background-color: #fffbeb; color: var(--secondary); }
.metric-card-icon.info { background-color: #eff6ff; color: #3b82f6; }
.metric-card-icon.success { background-color: #ecfdf5; color: #10b981; }

/* Dashboard Tables Grid */
.data-table-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 40px;
}

.table-header-bar {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header-bar h3 {
    font-size: 1.15rem;
}

.table-search-box {
    position: relative;
    width: 300px;
}

.table-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-size: 0.85rem;
}

.table-search-input:focus {
    border-color: var(--primary);
}

.table-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: var(--bg-light);
    padding: 16px 32px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid var(--border-color);
}

.data-table td {
    padding: 16px 32px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.table-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-profile-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.table-profile-info h5 {
    font-size: 0.9rem;
}

.table-profile-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.actions-cell {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-action.edit { background-color: var(--primary-light); color: var(--primary); }
.btn-action.edit:hover { background-color: var(--primary); color: var(--bg-white); }
.btn-action.delete { background-color: #fee2e2; color: var(--error); }
.btn-action.delete:hover { background-color: var(--error); color: var(--bg-white); }
.btn-action.approve { background-color: #d1fae5; color: var(--success); }
.btn-action.approve:hover { background-color: var(--success); color: var(--bg-white); }

/* --- 15. POP-UP MODAL CRUD --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- 16. HEADMASTER PURE CSS/SVG CHARTS --- */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    margin-bottom: 40px;
}

.chart-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-card-header h3 {
    font-size: 1.15rem;
}

/* Bar Chart columns styling */
.bar-chart-container {
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 60px;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(0deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 4px 4px 0 0;
    height: 0; /* JS will trigger high */
    position: relative;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

.bar-column:nth-child(even) .bar-fill {
    background: linear-gradient(0deg, var(--secondary-dark) 0%, var(--secondary) 100%);
}

.bar-value {
    position: absolute;
    top: -24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 8px;
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.primary { background-color: var(--primary); }
.legend-color.secondary { background-color: var(--secondary); }

/* SVG Line Chart Style */
.line-chart-svg {
    width: 100%;
    height: 240px;
}

.chart-grid-line {
    stroke: #f1f5f9;
    stroke-width: 1.5;
}

.chart-data-line {
    stroke: var(--primary);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.5s ease forwards;
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.chart-dot {
    fill: var(--bg-white);
    stroke: var(--primary);
    stroke-width: 3;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chart-dot:hover {
    r: 8;
    fill: var(--primary);
}

/* Animations */
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- 17. ANIMATIONS KEYFRAMES --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ========== RESPONSIVE ========== */
/* Hamburger button styling */
.hamburger {
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1100; /* above sidebar */
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.3s, transform 0.3s;
}
/* Show hamburger on small screens */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
}


/* =========================
   FORM TAMBAH SERAGAM
========================= */

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-light);
    transition: 0.2s;
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

input[type="file"].form-input {
    padding: 12px;
    background-color: white;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.data-table-wrapper form {
    max-width: 700px;
}

.data-table-wrapper {
    animation: fadeIn 0.4s ease;
}




/* --- 18. RESPONSIVE DESIGN (MEDIA QUERIES) --- */

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Mobile Dashboard requires drawer or toggle */
    }
}

@media (max-width: 1024px) {
    .section-title { font-size: 2.25rem; }
    .hero-title { font-size: 3rem; }
    .hero-grid { gap: 32px; }
    .hero-image-card img { height: 400px; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stats { margin-top: -40px; }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card:last-child {
        display: none; /* Sembunyikan artikel ke-3 di tablet */
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    .login-visual-side {
        display: none;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2rem; margin-bottom: 12px; }
    .section-subtitle { margin-bottom: 40px; font-size: 1rem; }
    
    /* Navigation Hamburger */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
        transition: var(--transition-normal);
        z-index: var(--z-navbar);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .hamburger { display: block; }
    .nav-cta { margin-left: 0; margin-top: 16px; width: 80%; text-align: center; }
    
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-title { font-size: 2.25rem; }
    .hero-ctas { justify-content: center; }
    .hero-image-card img { height: 320px; }
    
    .fb-1 { left: 10px; bottom: 20px; }
    .fb-2 { right: 10px; top: 20px; }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .values-grid { grid-template-columns: 1fr; }
    
    .program-card { flex-direction: column; }
    .program-img { width: 100%; height: 200px; }
    .program-content { width: 100%; padding: 24px; }
    
    .news-grid { grid-template-columns: 1fr; }
    .news-card:last-child { display: block; } /* Munculkan kembali berita di mobile satu kolom */
    
    .testimonial-container { padding: 0 10px; }
    .quote-text { font-size: 1.1rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .login-form-side { padding: 40px 24px; }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .step-card {
        padding: 24px;
    }
    .progress-container {
        padding: 0;
    }
    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .step-label {
        font-size: 0.75rem;
    }
}

.alert-info{
    background:#e0f2fe;
    border-left:4px solid #0284c7;
    padding:15px;
    margin-bottom:20px;
    border-radius:8px;
    color:#0c4a6e;
}

.alert-info a{
    color:#0369a1;
    font-weight:bold;
    text-decoration:none;
}