/* ============================================================
   Style CSS - Program Studi Sains Data
   Universitas Siliwangi
   ============================================================ */

/* === Font & Reset === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2C3E9B;
    --primary-dark: #1a2744;
    --primary-light: #4A6CF7;
    --secondary: #00B4D8;
    --accent: #FF6B35;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #1E293B;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --light: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   LANDING PAGE / FRONTEND
   ============================================================ */

/* === Navbar === */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .logo img {
    height: 40px;
    width: auto;
}

.navbar .logo h1 {
    color: var(--light);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .logo h1 span {
    color: var(--secondary);
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar .nav-links a {
    color: rgba(255,255,255,0.85);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--light);
    background: rgba(255,255,255,0.15);
}

.navbar .nav-links a.btn-login-nav {
    background: var(--secondary);
    color: var(--light);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.navbar .nav-links a.btn-login-nav:hover {
    background: #0098b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

/* Dropdown Menu - like uploaded image */
.nav-links .dropdown {
    position: relative;
}
.nav-links .dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.75rem;
    transition: transform 0.3s;
}
.nav-links .dropdown:hover > a::after {
    transform: rotate(180deg);
}
.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1001;
    border-top: 3px solid var(--primary);
    margin-top: 0;
}
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-links .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #555 !important;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    background: #fff !important;
}
.nav-links .dropdown-menu a:last-child {
    border-bottom: none;
}
.nav-links .dropdown-menu a:hover {
    background: #f8f9fa !important;
    color: var(--primary) !important;
    padding-left: 25px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--light);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74,108,247,0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero .hero-content h2 {
    color: var(--light);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero .hero-content h2 span {
    color: var(--secondary);
}

.hero .hero-content .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .hero-content .institution {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .hero-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero .hero-buttons .btn-primary {
    background: var(--secondary);
    color: var(--light);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
}

.hero .hero-buttons .btn-primary:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

.hero .hero-buttons .btn-secondary {
    background: transparent;
    color: var(--light);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero .hero-buttons .btn-secondary:hover {
    border-color: var(--light);
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Wave Divider === */
.wave-divider {
    position: relative;
    margin-top: -2px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* === Stats Section === */
.stats-section {
    padding: 60px 5%;
    background: var(--light);
}

.stats-section .stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stats-section .stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--gray-100);
    transition: all 0.3s ease;
}

.stats-section .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-section .stat-item .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stats-section .stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stats-section .stat-item .stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Features Section === */
.features-section {
    padding: 80px 5%;
    background: var(--gray-100);
}

.features-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.features-section .section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

.features-section .features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.features-section .feature-card {
    background: var(--light);
    padding: 35px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.features-section .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.features-section .feature-card:hover::before {
    transform: scaleX(1);
}

.features-section .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.features-section .feature-card .feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.features-section .feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.features-section .feature-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* === Footer === */
.footer {
    background: var(--primary-dark);
    color: var(--light);
    padding: 40px 5% 20px;
}

.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .footer-content h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer .footer-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer .footer-content ul li {
    margin-bottom: 10px;
}

.footer .footer-content ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer .footer-content ul li a:hover {
    color: var(--secondary);
}

.footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a3a6b 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(74,108,247,0.15) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

.login-container {
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    padding: 45px 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: var(--light);
    box-shadow: 0 8px 25px rgba(44, 62, 155, 0.3);
}

.login-header h2 {
    color: var(--dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

.login-form .form-group label i {
    margin-right: 8px;
    color: var(--primary);
}

.login-form .form-group .input-wrapper {
    position: relative;
}

.login-form .form-group .input-wrapper input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--gray-100);
    color: var(--dark);
}

.login-form .form-group .input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
    box-shadow: 0 0 0 4px rgba(44, 62, 155, 0.1);
}

.login-form .form-group .input-wrapper input::placeholder {
    color: var(--gray-400);
}

.login-form .form-group .input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.login-form .form-group .input-wrapper input:focus + .input-icon {
    color: var(--primary);
}

.login-form .form-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
}

.login-form .form-group .toggle-password:hover {
    color: var(--primary);
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.login-form .form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray-500);
    cursor: pointer;
}

.login-form .form-options .remember-me input {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.login-form .form-options .forgot-password {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
}

.login-form .form-options .forgot-password:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.login-form .btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.login-form .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 155, 0.4);
}

.login-form .btn-login:active {
    transform: translateY(0);
}

.login-form .btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-form .btn-login .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--light);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-form .btn-login.loading .spinner {
    display: inline-block;
}

.login-form .btn-login.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-form .alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.login-form .alert-danger {
    background: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FECACA;
}

.login-form .alert-success {
    background: #F0FDF4;
    color: var(--success);
    border: 1px solid #BBF7D0;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.login-footer a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--primary-light);
}

.login-footer p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 8px;
}


/* ============================================================
   ADMIN / BACKEND
   ============================================================ */

/* === Admin Layout === */
.admin-body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: var(--light);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar .sidebar-header {
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .sidebar-header .sidebar-logo {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sidebar .sidebar-header .sidebar-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar .sidebar-header .sidebar-title span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.sidebar .sidebar-menu {
    padding: 15px 0;
}

.sidebar .sidebar-menu .menu-label {
    padding: 10px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar .sidebar-menu a i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar .sidebar-menu a:hover {
    color: var(--light);
    background: rgba(255,255,255,0.1);
}

.sidebar .sidebar-menu a.active {
    color: var(--light);
    background: rgba(255,255,255,0.15);
    border-right: 3px solid var(--secondary);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}

.main-content .top-bar {
    background: var(--light);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-content .top-bar .toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

.main-content .top-bar .top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-content .top-bar .top-bar-left h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
}

.main-content .top-bar .top-bar-left .breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.main-content .top-bar .top-bar-left .breadcrumb a {
    color: var(--primary);
}

.main-content .top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-content .top-bar .top-bar-right .admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.main-content .top-bar .top-bar-right .admin-profile:hover {
    background: var(--gray-100);
}

.main-content .top-bar .top-bar-right .admin-profile .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
}

.main-content .top-bar .top-bar-right .admin-profile .admin-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
}

.main-content .top-bar .top-bar-right .admin-profile .admin-info span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Dashboard Content */
.content-wrapper {
    padding: 30px;
}

.content-wrapper .page-header {
    margin-bottom: 30px;
}

.content-wrapper .page-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.content-wrapper .page-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dashboard-card .card-icon.blue {
    background: #EFF6FF;
    color: var(--primary);
}

.dashboard-card .card-icon.green {
    background: #F0FDF4;
    color: var(--success);
}

.dashboard-card .card-icon.orange {
    background: #FFF7ED;
    color: var(--accent);
}

.dashboard-card .card-icon.purple {
    background: #FAF5FF;
    color: #7C3AED;
}

.dashboard-card .card-info h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 5px;
}

.dashboard-card .card-info p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* === Notifikasi Flash === */
.flash-message {
    position: fixed;
    top: 90px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    color: var(--light);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 4.5s forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-message.success {
    background: var(--success);
}

.flash-message.error {
    background: var(--danger);
}

.flash-message.warning {
    background: var(--warning);
    color: var(--dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .stats-section .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .navbar .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar .nav-links a {
        padding: 12px 18px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero .hero-content h2 {
        font-size: 2rem;
    }

    .hero .hero-content p {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-section .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stats-section .stat-item .stat-number {
        font-size: 1.6rem;
    }

    /* Features */
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Login */
    .login-container {
        padding: 35px 25px;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    /* Admin */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content .top-bar .toggle-sidebar {
        display: block;
    }

    .main-content .top-bar .top-bar-left .breadcrumb {
        display: none;
    }

    .content-wrapper {
        padding: 20px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero .hero-buttons .btn-primary,
    .hero .hero-buttons .btn-secondary {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
    }

    .stats-section .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats-section .stat-item {
        padding: 20px;
    }

    .stats-section .stat-item .stat-number {
        font-size: 1.3rem;
    }

    .login-container {
        padding: 30px 20px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--light);
}