/* ============================================
   SICAKEP - Custom Stylesheet
   Modern, Clean Design with Whitespace
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   CSS Variables & Design System
   ============================================ */
:root {
    /* Colors - Modern Blue Palette */
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    /* Pink 500 */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;

    /* Neutrals */
    --dark: #0f172a;
    /* Slate 900 */
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-lighter: #e2e8f0;
    --gray-lightest: #f8fafc;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    --gradient-text: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --container-width: 1200px;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-light);
    background-color: var(--gray-lightest);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-sm) 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Navbar height */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-lighter);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    color: var(--dark);
    font-family: var(--font-heading);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--gray);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-lighter);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: absolute;
}

.main-card {
    width: 350px;
    height: 400px;
    z-index: 2;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.card-header-mock {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.card-body-mock {
    flex: 1;
    background: var(--gray-lightest);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--space-md);
}

.chart-mock {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
}

.bar {
    width: 15%;
    background: var(--gray-light);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar.active {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.text-mock .line {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    margin-bottom: 8px;
}

.w-70 {
    width: 70%;
}

.w-50 {
    width: 50%;
}

.float-card-1 {
    top: 50px;
    right: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.float-card-2 {
    bottom: 50px;
    left: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite 2s;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-light);
    border: 2px solid var(--white);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
    background: var(--primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.1);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.1);
    bottom: -50px;
    left: -50px;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-box {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.icon-wrapper.primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.icon-wrapper.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.icon-wrapper.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--white);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-lighter);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--dark);
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--dark);
}

.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide visual on mobile for simplicity */
    }
}

/* ============================================
   Login & Dashboard Styles (Keep existing but update vars)
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Dashboard */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    padding: 1rem;
    list-style: none;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.menu-link:hover,
.menu-link.active {
    background: var(--primary);
    color: var(--white);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-lightest);
}

.topbar {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.content-area {
    padding: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.primary {
    background: var(--primary);
}

.stat-icon.success {
    background: var(--success);
}
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--dark);
}

.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide visual on mobile for simplicity */
    }
}

/* ============================================
   Login & Dashboard Styles (Keep existing but update vars)
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Dashboard */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Sidebar Mobile Responsiveness
   ============================================ */
.mobile-only-btn {
    display: none;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    .mobile-only-btn {
        display: block;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        transition: transform 0.3s ease;
    }
    .sidebar.active + .main-content {
        transform: translateX(260px);
    }
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    padding: 1rem;
    list-style: none;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--gray-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.menu-link:hover,
.menu-link.active {
    background: var(--primary);
    color: var(--white);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-lightest);
}

.topbar {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.content-area {
    padding: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.primary {
    background: var(--primary);
}

.stat-icon.success {
    background: var(--success);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--primary-light);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--gray-light);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

/* Status Badges */
.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-weight: 600;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-weight: 600;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-weight: 600;
}

.badge-soft-info {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--info);
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-weight: 600;
}

/* Modern Tabs */
.nav-tabs-modern {
    border-bottom: 1px solid var(--gray-lighter);
    margin-bottom: 1.5rem;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gray);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs-modern .nav-link:hover {
    color: var(--primary);
    background: transparent;
}

.nav-tabs-modern .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* Profile Header in Forms */
.profile-header {
    background: var(--gradient-hero);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-info h4 {
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Table Enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.table thead th {
    background-color: var(--gray-lightest);
    font-weight: 600;
    color: var(--dark-light);
    border-bottom: 2px solid var(--gray-lighter);
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Form Enhancements */
.form-label.required::after {
    content: " *";
    color: var(--danger);
}

.input-group-text {
    background-color: var(--gray-lightest);
    border-color: var(--gray-light);
    color: var(--gray);
}
/* Fix Sidebar Scrolling */
.sidebar {
    display: flex;
    flex-direction: column;
}
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Sidebar Scrollbar */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Mobile Responsiveness for Login Page
   ============================================ */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}
