
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1b5e20;
    --primary-medium: #2e7d32;
    --primary-light: #e8f5e9;
    --secondary: #4caf50;
    --accent: #a5d6a7;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e2e8f0;
    --danger: #d32f2f;
    --warning: #fbc02d;
    --success: #388e3c;
    --info: #0288d1;
    --font-family: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Header & Navbar */
.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    height: 40px;
}

.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-medium) !important;
    background-color: var(--primary-light);
}

.btn-login {
    background-color: var(--primary-medium);
    color: white !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 24px !important;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-login:hover {
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.05);
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.badge-gov {
    background-color: var(--primary-medium);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Cards */
.custom-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.card-icon-container {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-medium);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Info Section */
.section-title {
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title.left::after {
    left: 0;
    transform: none;
}

/* Process Timeline */
.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-medium);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 6px rgba(46, 125, 50, 0.3);
}

/* Statistics Counter */
.stat-box {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 5px;
}

.stat-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu MBG Cards */
.menu-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background-color: var(--card-bg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.menu-img-container {
    height: 200px;
    width: 100%;
    position: relative;
    background-color: #f1f5f9;
}

.menu-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 5px;
    box-sizing: border-box;
}

.menu-badge-day {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-medium);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.menu-badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.menu-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 15px 0;
    background-color: var(--background);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.nutrition-item {
    text-align: center;
}

.nutrition-val {
    font-weight: 700;
    color: var(--primary-medium);
    font-size: 0.95rem;
    display: block;
}

.nutrition-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nutrition-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
}

/* Structure Card */
.structure-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.structure-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.structure-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.structure-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    background-color: var(--primary-light);
    padding: 3px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

/* =========================================
   MENU IMAGE
========================================= */

.preview-menu {
    cursor: zoom-in;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.preview-menu:hover {
    transform: scale(1.02);
    filter: brightness(0.92);
}


/* =========================================
   MODAL PREVIEW
========================================= */

.menu-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* Saat aktif */

.menu-preview-modal.active {
    visibility: visible;
    opacity: 1;
}


/* =========================================
   OVERLAY
========================================= */

.menu-preview-overlay {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.78);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =========================================
   BOX
========================================= */

.menu-preview-box {
    position: relative;
    z-index: 2;

    width: min(900px, 92%);
    max-height: 92vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: scale(0.82) translateY(25px);
    opacity: 0;

    transition:
        transform 0.4s cubic-bezier(.16, 1, .3, 1),
        opacity 0.3s ease;
}


/* Animasi ketika modal aktif */

.menu-preview-modal.active .menu-preview-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}


/* =========================================
   GAMBAR PREVIEW
========================================= */

.menu-preview-image-wrapper {
    position: relative;

    max-width: 100%;
    max-height: 82vh;

    padding: 14px;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    overflow: hidden;
}


.menu-preview-image {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;
}


/* =========================================
   JUDUL
========================================= */

.menu-preview-title {
    margin-bottom: 15px;

    padding: 8px 18px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    background: rgba(25, 135, 84, 0.95);

    border-radius: 30px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    transform: translateY(-5px);

    animation: titleFade 0.45s ease;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.menu-preview-close {
    position: absolute;

    top: -18px;
    right: -18px;

    z-index: 5;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #1f2937;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}


.menu-preview-close:hover {
    transform: rotate(90deg) scale(1.08);

    background: #198754;
    color: #ffffff;
}


/* =========================================
   ANIMASI JUDUL
========================================= */

@keyframes titleFade {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .menu-preview-box {
        width: 94%;
    }

    .menu-preview-image-wrapper {
        padding: 8px;
        border-radius: 14px;
    }

    .menu-preview-image {
        max-height: 75vh;
        border-radius: 8px;
    }

    .menu-preview-close {
        top: -12px;
        right: -8px;

        width: 38px;
        height: 38px;

        font-size: 24px;
    }

    .menu-preview-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

}

/* Footer */
.footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer h5 {
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Dashboard Sidebar Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: #1a252f;
    color: #ecf0f1;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-item {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #bdc3c7;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    color: white;
    background-color: rgba(46, 125, 50, 0.2);
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
}

.sidebar-link span.material-symbols-outlined {
    font-size: 1.4rem;
}

.main-content {
    flex-grow: 1;
    background-color: var(--background);
    padding: 40px;
    overflow-x: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* Form Styling */
.form-control, .form-select {
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

/* Table Style for DataTables */
.table-responsive {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table thead {
    background-color: var(--primary-light);
    color: var(--primary);
}

.table th {
    font-weight: 600;
    border-bottom: 2px solid var(--border-color) !important;
}

/* Warna teks bagian Kontak */
.col-lg-3.col-md-6 p.text-muted {
    color: #ffffff !important;
}

/* Teks hak cipta dan versi footer */
footer .row.align-items-center p.text-muted,
footer .row.align-items-center span.text-muted {
    color: #ffffff !important;
}

/* Print View Setup for A4 reports */
@media print {
    body {
        background-color: white;
        color: black;
    }
    .no-print {
        display: none !important;
    }
    .main-content {
        padding: 0 !important;
    }
    .sidebar {
        display: none !important;
    }
    .dashboard-wrapper {
        display: block !important;
    }
    .print-container {
        width: 21cm;
        min-height: 29.7cm;
        padding: 2cm;
        margin: 0 auto;
        background: white;
    }
    .page-break {
        page-break-before: always;
    }
}
/* ===========================================
   CARD LAYANAN
=========================================== */

.layanan-card{
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    transition: .35s;
    background: #fff;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.layanan-card:hover{
    transform: translateY(-6px);
    border-color: #198754;
    box-shadow: 0 15px 30px rgba(25,135,84,.18);
}

.active-card{
    border: 2px solid #198754;
    background: #f2fbf5;
    box-shadow: 0 15px 30px rgba(25,135,84,.15);
}

/* Icon */

.card-icon-container{
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #eaf7ef;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.card-icon-container span{
    font-size: 30px;
    color: #198754;
}

/* Judul Card */

.layanan-card h3{
    color: #198754;
    font-weight: 700;
    font-size: 23px;
    margin-bottom: 12px;
}

/* Isi Card */

.layanan-card p{
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}


/* ======================================
   DETAIL CARD
======================================*/

#detail-box{
    margin-top: 35px;
    background: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    border-left: 6px solid #198754;
    animation: fade .4s;
}

#detail-box .card-icon-container{
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

#detail-box .card-icon-container span{
    font-size: 28px;
}

#infoTitle{
    color: #198754;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 12px;
}

#infoText{
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.logo-bgn{
    width:160px;          
    height:160px;
    object-fit:contain;
    display:block;
    margin:15px;   
    border-radius:50%;    
    background:#fff;      
    padding:8px;         
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:all .3s ease;
}

.logo-bgn:hover{
    transform:scale(1.05);
    box-shadow:0 12px 30px rgba(25,135,84,.35);
}