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

:root {
    --primary-teal: #0d9488;
    --primary-teal-hover: #0f766e;
    --primary-teal-light: #f0fdfa;
    --primary-teal-opaque: rgba(13, 148, 136, 0.1);
    --secondary-emerald: #059669;
    --secondary-emerald-hover: #047857;
    --secondary-emerald-light: #ecfdf5;
    --accent-sky: #0284c7;
    --accent-sky-light: #f0f9ff;
    --bg-slate: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-slate);
    color: var(--text-dark);
    font-size: 0.95rem;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Hero Section style for home */
.hero-section {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    border-radius: 0 0 40px 40px;
    color: white;
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Premium Cards */
.custom-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(13, 148, 136, 0.2);
}

.custom-card .card-header-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    font-weight: 700;
    border-bottom: none;
    padding: 20px;
}

.custom-card .card-header-emerald {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    font-weight: 700;
    border-bottom: none;
    padding: 20px;
}

/* Quick Action Cards */
.action-card {
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    border: none;
    background: white;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Custom Table style */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
}
.table-custom tr {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.table-custom tr:hover {
    background-color: #f1f5f9;
}
.table-custom th {
    background-color: transparent !important;
    border-bottom: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 16px;
}
.table-custom td {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.table-custom td:first-child {
    border-left: 1px solid #f1f5f9;
    border-radius: 12px 0 0 12px;
}
.table-custom td:last-child {
    border-right: 1px solid #f1f5f9;
    border-radius: 0 12px 12px 0;
}

/* Floating Form Control */
.form-floating > .form-control:focus, 
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}
.form-control {
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    padding: 12px 16px;
    transition: all 0.2s ease;
}
.form-control:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px var(--primary-teal-opaque);
}
.btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-teal {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}
.btn-teal:hover, .btn-teal:focus {
    background-color: var(--primary-teal-hover);
    border-color: var(--primary-teal-hover);
    color: white;
}
.btn-emerald {
    background-color: var(--secondary-emerald);
    border-color: var(--secondary-emerald);
    color: white;
}
.btn-emerald:hover, .btn-emerald:focus {
    background-color: var(--secondary-emerald-hover);
    border-color: var(--secondary-emerald-hover);
    color: white;
}

/* Badge styles */
.badge-status {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}
.badge-teal {
    background-color: #ccfbf1;
    color: #0f766e;
}
.badge-emerald {
    background-color: #d1fae5;
    color: #065f46;
}
.badge-sky {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Layout for Admin / Kader Dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 24px 16px;
    transition: all 0.3s ease;
}
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
    transition: all 0.3s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 32px;
    padding-left: 8px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu-item {
    margin-bottom: 8px;
}
.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-menu-link:hover {
    background-color: #f1f5f9;
    color: var(--text-dark);
}
.nav-menu-link.active {
    background-color: var(--primary-teal);
    color: white;
}
.nav-menu-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Floating Action Button for Mobile Input */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4);
    z-index: 1000;
    border: none;
    transition: all 0.3s ease;
}
.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: var(--primary-teal-hover);
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 20px 0 40px rgba(0,0,0,0.1);
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .hero-section {
        padding: 40px 0 70px;
        border-radius: 0 0 25px 25px;
    }
}

/* print styles for rekap_laporan.php */
@media print {
    .sidebar, .btn, .no-print, header, nav, footer {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body {
        background-color: white !important;
        color: black !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}
