/* assets/css/style.css */
:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --success: #4cc9f0;
    --warning: #f72585;
    --info: #7209b7;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-success: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    --gradient-warning: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ======================================== */
/* ===== NAVBAR HITAM - PRIORITAS TERTINGGI ===== */
/* ======================================== */

/* HAPUS warna biru pada brand */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000 !important; /* <-- DIUBAH JADI HITAM */
}

.navbar-brand i {
    color: var(--warning);
}

/* Semua link di navbar jadi HITAM */
.navbar-nav .nav-link,
.navbar-nav .nav-link:visited,
.navbar-nav .nav-link:active {
    color: #000000 !important;
    font-weight: 500 !important;
}

.navbar-nav .nav-link:hover {
    color: #333333 !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:visited {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Reset gradient text di navbar biar hitam */
.navbar-brand .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
}

/* Pastikan navbar-light tidak override */
.navbar-light .navbar-nav .nav-link {
    color: #000000 !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #333333 !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #000000 !important;
}

/* Tombol hamburger menu (mobile) jadi hitam */
.navbar-toggler {
    border-color: #000000 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ======================================== */
/* ===== AKHIR NAVBAR HITAM ===== */
/* ======================================== */

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
    border-radius: 20px 20px 0 0 !important;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
}

.btn-warning {
    background: var(--gradient-warning);
    border: none;
    color: white;
}

/* Form Elements */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

/* Badges */
.badge {
    border-radius: 50px;
    padding: 0.5em 1em;
    font-weight: 600;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Sidebar - Menu Samping (BEDA DENGAN NAVBAR) */
#sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    padding: 0;
}

.sidebar-header {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h4 {
    color: #4cc9f0;
    font-size: 1.2rem;
}

/* Ini untuk SIDEBAR (menu samping), BUKAN navbar */
#sidebar .nav-link {
    color: #ffffff !important;
    padding: 1rem 1.5rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    font-size: 0.95rem;
}

#sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: #4cc9f0;
    color: #4cc9f0 !important;
}

#sidebar .nav-link.active {
    background: rgba(76, 201, 240, 0.2);
    border-left-color: #4cc9f0;
    color: #4cc9f0 !important;
}

#sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path fill="rgba(255,255,255,0.1)" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Features */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: #4cc9f0;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .card {
        border-radius: 15px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Sidebar untuk mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        z-index: 1050;
        transition: left 0.3s;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Menu toggle button */
    .menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1060;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 70px;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .col-md-3 {
        width: 35%;
    }
    
    .col-md-9 {
        width: 65%;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Animasi untuk elemen interaktif */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Tooltip kustom */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Scrollbar kustom */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Emoji dan ikon dekoratif */
.decorative-emoji {
    font-size: 2rem;
    margin: 0 10px;
}

/* Gradien teks - TETAP UNTUK KEPERLUAN LAIN */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}