/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.logo-pemkot {
    height: 60px;
    width: auto;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-umkm {
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-container {
    text-align: center;
    flex-grow: 1;
}

.title-container h1 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.title-container p {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav {
    background-color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
    justify-content: flex-start;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background-color: var(--secondary);
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
}

.dropdown-menu a {
    color: var(--text);
    padding: 12px 20px;
    border-bottom: 1px solid var(--light-gray);
    list-style: none;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-top {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    
    .logo-container {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .logo-pemkot {
        margin-right: 0;
        height: 50px;
    }
    
    .logo-umkm {
        height: 45px;
    }
    
    .title-container {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .title-container h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .title-container p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 15px;
    }
    
    .mobile-menu-toggle span {
        background-color: var(--primary);
    }

    /* Navigation Mobile */
    nav .container {
        position: relative;
        padding: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    .nav-menu.mobile-active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        padding: 15px 20px;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 44px;
    }
    
    .nav-menu a i {
        transition: transform 0.3s ease;
    }
    
    .nav-menu li.active > a i {
        transform: rotate(180deg);
    }

    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        display: none;
        width: 100%;
    }
    
    .dropdown-menu.mobile-active {
        display: block;
    }
    
    .dropdown-menu li {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 12px 20px 12px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }

    /* Hero Section Mobile */
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    /* Program & Statistik Mobile */
    .program-statistik-section {
        grid-template-columns: 1fr;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
    }

    /* Program Detail Mobile */
    .program-header {
        flex-direction: column;
        text-align: center;
    }

    .program-detail .program-header .program-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 60px;
        height: 60px;
    }

    .program-detail .program-header .program-icon i {
        font-size: 1.8rem;
    }

    /* Steps Mobile */
    .steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .steps:before {
        display: none;
    }

    /* News Detail Mobile */
    .news-detail {
        padding: 20px;
    }
    
    .news-header h1 {
        font-size: 1.5rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        justify-content: center;
    }

    /* Improve touch targets */
    .btn, .nav-link, .program-link, .read-more, .faq-question {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Touch feedback */
    .btn:active, .nav-link:active, .program-card:active {
        opacity: 0.8;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
    
    /* Fix iOS Safari */
    @supports (-webkit-touch-callout: none) {
        body {
            -webkit-overflow-scrolling: touch;
        }
        
        .main-content {
            min-height: 100vh;
        }
    }

    /* UMKM Intro Mobile */
    .umkm-center-intro {
        flex-direction: column;
    }

    .intro-image,
    .intro-text {
        flex: 1 1 100%;
    }
}

/* Desktop-only styles */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(52, 152, 219, 0.9)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    margin: 10px auto;
}

/* Program & Statistik Section */
.program-statistik-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.programs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 4 Column Programs Container */
.programs-container-4col {
    display: grid;
    gap: 20px;
}

/* Dynamic grid based on number of items (max 4 columns) */
.programs-container-4col[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.programs-container-4col[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.programs-container-4col[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.programs-container-4col[data-count="4"],
.programs-container-4col[data-count="5"],
.programs-container-4col[data-count="6"],
.programs-container-4col[data-count="7"],
.programs-container-4col[data-count="8"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive for 4-column layout */
@media (max-width: 1200px) {
    .programs-container-4col[data-count="4"],
    .programs-container-4col[data-count="5"],
    .programs-container-4col[data-count="6"],
    .programs-container-4col[data-count="7"],
    .programs-container-4col[data-count="8"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .programs-container-4col[data-count="3"],
    .programs-container-4col[data-count="4"],
    .programs-container-4col[data-count="5"],
    .programs-container-4col[data-count="6"],
    .programs-container-4col[data-count="7"],
    .programs-container-4col[data-count="8"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .programs-container-4col {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

.program-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    text-align: center;
}

.program-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: auto;
}

.program-body p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.program-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.program-link:hover i {
    transform: translateX(5px);
}

/* Daftar Section */
.daftar-section {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.daftar-section h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.daftar-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.daftar-section .btn {
    background: var(--secondary);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.daftar-section .btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Daftar Card */
.daftar-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.daftar-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.daftar-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Statistik Container */
.statistik-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.statistik-title {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.statistik-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    flex-grow: 1;
}

.statistik-item {
    margin-bottom: 15px;
}

.statistik-item h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.statistik-placeholder {
    height: 120px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    border-radius: 5px;
}

/* Berita Terbaru Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 4 Column News Grid */
.news-grid-4col {
    display: grid;
    gap: 30px;
}

/* Dynamic grid for news (max 4 columns) */
.news-grid-4col[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.news-grid-4col[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.news-grid-4col[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid-4col[data-count="4"],
.news-grid-4col[data-count="5"],
.news-grid-4col[data-count="6"],
.news-grid-4col[data-count="7"],
.news-grid-4col[data-count="8"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive for news grid */
@media (max-width: 1200px) {
    .news-grid-4col[data-count="4"],
    .news-grid-4col[data-count="5"],
    .news-grid-4col[data-count="6"],
    .news-grid-4col[data-count="7"],
    .news-grid-4col[data-count="8"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid-4col[data-count="3"],
    .news-grid-4col[data-count="4"],
    .news-grid-4col[data-count="5"],
    .news-grid-4col[data-count="6"],
    .news-grid-4col[data-count="7"],
    .news-grid-4col[data-count="8"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid-4col {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.news-img:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Ensure images auto-adjust to column width */
.news-grid-4col[data-count="1"] .news-img {
    height: 250px;
}

.news-grid-4col[data-count="2"] .news-img {
    height: 220px;
}

.news-grid-4col[data-count="3"] .news-img,
.news-grid-4col[data-count="4"] .news-img {
    height: 200px;
}

/* Responsive image heights */
@media (max-width: 1200px) {
    .news-img {
        height: 180px;
    }

    .news-grid-4col[data-count="1"] .news-img {
        height: 220px;
    }

    .news-grid-4col[data-count="2"] .news-img {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .news-img {
        height: 160px;
    }

    .news-grid-4col[data-count="1"] .news-img {
        height: 200px;
    }

    .news-grid-4col[data-count="2"] .news-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .news-img {
        height: 200px;
    }

    .news-grid-4col[data-count="1"] .news-img,
    .news-grid-4col[data-count="2"] .news-img,
    .news-grid-4col[data-count="3"] .news-img,
    .news-grid-4col[data-count="4"] .news-img {
        height: 220px;
    }
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
    flex-shrink: 0;
}

.news-content p {
    margin-bottom: 15px;
    color: #666;
    flex-grow: 1;
    min-height: 60px; /* Ensure consistent description height */
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.news-meta .date {
    color: #666;
    font-weight: 500;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Program Detail */
.program-detail {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.program-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

/* Program header icon - higher specificity to override other styles */
.program-detail .program-header .program-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Icon inside program header - make it larger but proportional */
.program-detail .program-header .program-icon i {
    font-size: 2.5rem;
}

.program-title {
    text-align: center;
    flex: 1;
}

.program-title h1 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.program-title p {
    color: white;
}

.program-content {
    line-height: 1.8;
}

.program-content h2 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.program-content p {
    margin-bottom: 20px;
}

.program-content ul, .program-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.program-content li {
    margin-bottom: 10px;
}

/* Benefit Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.benefit-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* How It Works */
.how-it-works {
    margin: 40px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
}

.steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
}

.pagination a.active, .pagination a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 7px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-category {
    padding: 10px 20px;
    background-color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--light-gray);
}

.faq-category.active, .faq-category:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Contact Section */
.contact-section {
    margin-top: 60px;
    text-align: center;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-section p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-column ul li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 60px 0;
}

.error-page h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.error-page p {
    margin-bottom: 30px;
    color: #666;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.umkm-center-intro {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.intro-image {
  flex: 1 1 40%;
}

.intro-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.intro-text {
  flex: 1 1 55%;
  color: #222;
  text-align: justify;
}

.intro-text h3 {
  color: #0046b5;
  margin-bottom: 10px;
}

.intro-text h4 {
  margin-top: 20px;
  color: #000;
  font-weight: 600;
}

.intro-text ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #0046b5;
}

.intro-text li {
  margin-bottom: 6px;
  text-align: justify;
}

/* Tablet Styles */
@media (max-width: 992px) {
    .program-statistik-section {
        grid-template-columns: 1fr;
    }
    
    .programs-container {
        grid-template-columns: 1fr;
    }
}

/* Ensure desktop menu is always visible */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .dropdown-menu {
        display: block !important;
    }
}

/* Debug styles - bisa dihapus setelah fix berhasil */
.debug-info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 10px;
    z-index: 9999;
    font-size: 12px;
}

/* Participants List Styles */
.participants-list-container {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.participants-list-header {
     display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 15px;
    padding: 20px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.participants-list {
    max-height: 600px;
    overflow-y: auto;
}

.participant-item {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
    transition: all 0.3s ease;
}

/* No results message */
.no-participants {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    display: none;
}

.no-participants.show {
    display: block;
}

/* Style untuk item yang tersembunyi saat search */
.participant-item[style*="display: none"] {
    display: none !important;
}

/* Pastikan item yang visible ditampilkan dengan proper */
.participant-item:not([style*="display: none"]) {
    display: grid !important;
}

.participant-item:hover {
    background-color: #f8f9fa;
}

.participant-item:last-child {
    border-bottom: none;
}

.list-item {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.item-main h4 {
    margin: 0 0 5px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.owner-name {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.address {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-preview {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 70px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-new {
    background: #fff3cd;
    color: #856404;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.contact-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

/* Responsive Design untuk Participants List */
@media (max-width: 1024px) {
    .participants-list-header,
    .participant-item {
        grid-template-columns: 2fr 2fr 1fr 1fr;
        gap: 12px;
    }
    
    .participants-list-header .header-item:nth-child(3),
    .participant-item .list-item:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .participants-list-header,
    .participant-item {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .participants-list-header .header-item:nth-child(3),
    .participant-item .list-item:nth-child(3),
    .participants-list-header .header-item:nth-child(4),
    .participant-item .list-item:nth-child(4) {
        display: none;
    }
    
    .participants-list-header {
        font-size: 0.8rem;
    }
    
    .item-main h4 {
        font-size: 0.9rem;
    }
    
    .owner-name {
        font-size: 0.8rem;
    }
    
    .address {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .participants-list-header,
    .participant-item {
        grid-template-columns: 2fr 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .participants-list-header .header-item:nth-child(3),
    .participant-item .list-item:nth-child(3),
    .participants-list-header .header-item:nth-child(4),
    .participant-item .list-item:nth-child(4),
    .participants-list-header .header-item:nth-child(5),
    .participant-item .list-item:nth-child(5) {
        display: none;
    }
    
    .participants-list-header {
        font-size: 0.75rem;
    }
    
    .item-main h4 {
        font-size: 0.85rem;
    }
    
    .owner-name {
        font-size: 0.75rem;
    }
    
    .address {
        font-size: 0.8rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        min-width: 60px;
    }
}

/* Existing Participants Section Styles tetap sama */
.participants-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 2px solid var(--light-gray);
}

.participants-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-participants {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.search-participants input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.search-participants button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.search-participants button:hover {
    background: #2980b9;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background: var(--white);
    font-size: 0.9rem;
    min-width: 150px;
}

.participants-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Chart Styles - Enhanced Design */
.omzet-chart-container {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.program-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.program-stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.5);
    margin: 0 -10px;
    padding: 16px 10px;
    border-radius: 8px;
}

.program-stat-item:last-child {
    border-bottom: none;
}

.program-stat-item.total-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.program-stat-item.total-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.program-stat-item.total-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}



/* Program stat item icon (chart specific) - only for total item */
.program-stat-item.total-item .program-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 0;
    margin-bottom: 12px;
    align-self: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.program-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-stat-item:hover .program-icon::after {
    opacity: 1;
}

.program-icon i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.program-stat-item:hover .program-icon i {
    transform: scale(1.1);
}

.program-info {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    min-width: auto;
}

.program-info .program-name {
    margin-bottom: 0;
}

.program-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(52, 152, 219, 0.2);
}

.progress-container {
    width: 100%;
    margin-left: 0;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #f1f3f4, #e8eaed);
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 16px 16px 0 0;
}

.progress-fill {
    height: 100%;
    border-radius: 16px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.fill-jual {
    background: linear-gradient(135deg, #3498db, #5dade2, #85c1e9);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-modal {
    background: linear-gradient(135deg, #e74c3c, #ec7063, #f1948a);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-akselerasi {
    background: linear-gradient(135deg, #2ecc71, #58d68d, #82e0aa);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-konsultasi {
    background: linear-gradient(135deg, #9b59b6, #af7ac5, #bb8fce);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Additional progress bar colors for dynamic programs */
.fill-program-0 {
    background: linear-gradient(135deg, #3498db, #5dade2, #85c1e9);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-1 {
    background: linear-gradient(135deg, #e74c3c, #ec7063, #f1948a);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-2 {
    background: linear-gradient(135deg, #2ecc71, #58d68d, #82e0aa);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-3 {
    background: linear-gradient(135deg, #9b59b6, #af7ac5, #bb8fce);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-4 {
    background: linear-gradient(135deg, #f39c12, #f7b731, #f9ca24);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-5 {
    background: linear-gradient(135deg, #1abc9c, #48c9b0, #76d7c4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-6 {
    background: linear-gradient(135deg, #34495e, #5d6d7e, #85929e);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.fill-program-7 {
    background: linear-gradient(135deg, #e91e63, #f06292, #f48fb1);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    z-index: 1;
    white-space: nowrap;
}

.progress-fill:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
}

/* Pie Chart Styles */
.distribution-chart-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.chart-visualization {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pie-chart-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: conic-gradient(
        from 0deg,
        #f39c12 0deg 60.6deg,
        #3498db 60.6deg 72.4deg,
        #e74c3c 72.4deg 83.1deg,
        #2ecc71 83.1deg 90.3deg,
        #9b59b6 90.3deg 95.4deg,
        #1abc9c 95.4deg 98.6deg,
        #34495e 98.6deg 100deg
    );
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.total-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.total-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}

.total-unit {
    font-size: 0.7rem;
    color: #666;
}

.distribution-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px; /* Tinggi maksimal untuk 7 item (40px per item) */
    overflow-y: auto; /* Scrolling vertikal */
    padding-right: 8px; /* Ruang untuk scrollbar */
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s;
    min-height: 35px; /* Tinggi konsisten untuk setiap item */
}

.legend-item:hover {
    background-color: #f8f9fa;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.legend-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.legend-stats {
    font-size: 0.8rem;
    color: #666;
}

/* Kinerja KAB Chart Styles */
.omzet-chart-header {
    text-align: center;
    margin-bottom: 20px;
}

.omzet-chart-header h4 {
    color: var(--primary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

/* Chart X-axis for Line Chart */
.chart-x-axis {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
    margin-top: 5px;
    padding-left: 30px; /* Align with chart area (after Y-axis labels) */
    padding-right: 10px;
}

.x-label {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    flex: 1;
}

.omzet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}


/* Tooltip for progress bars */
.progress-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    bottom: calc(25% + 8px);
    left: 50%;
    transform: translateX(-50%);
}

.progress-tooltip.show {
    opacity: 1;
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments for charts */
@media (max-width: 768px) {
    .pie-chart-wrapper {
        width: 180px;
        height: 180px;
    }

    .pie-center {
        width: 100px;
        height: 100px;
    }

    .total-value {
        font-size: 1.5rem;
    }

    .omzet-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .omzet-chart-wrapper {
        height: 150px;
    }

    .chart-bars {
        height: 120px;
    }

    .x-label {
        font-size: 0.6rem;
    }

    /* Enhanced mobile responsive for peserta per program chart */
    .omzet-chart-container {
        padding: 15px;
    }

    .program-stat-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .program-stat-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.3);
        margin: 0;
        padding: 12px 0;
        border-radius: 0;
    }

    .program-stat-item.total-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .program-icon {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }

    .program-info {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        min-width: auto;
    }

    .program-name {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .total-count {
        font-size: 1.2rem;
    }

    .progress-container {
        width: 100%;
        margin-left: 0;
    }

    .progress-bar {
        height: 28px;
    }

    .progress-fill {
        padding-right: 12px;
    }

    .progress-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .program-stat-item.total-item {
        padding: 12px;
    }

    .program-icon {
        width: 36px;
        height: 36px;
    }

    .program-name {
        font-size: 0.8rem;
    }

    .total-count {
        font-size: 1.1rem;
    }

    .progress-bar {
        height: 24px;
    }

    .progress-text {
        font-size: 0.7rem;
        padding-right: 8px;
    }

    .omzet-chart-container {
        padding: 12px;
    }
}

/* Loading and Error States for Programs Container */
#programs-container.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

#programs-container.loading .loading-spinner {
    text-align: center;
    color: #666;
}

#programs-container.loading .loading-spinner i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

#programs-container.loading .loading-spinner p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

#programs-container.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #fef8f8;
    border-radius: 8px;
    border: 2px dashed #f8d7da;
}

#programs-container .error-message {
    text-align: center;
    color: #666;
    padding: 20px;
}

#programs-container .error-message i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #dc3545;
}

#programs-container .error-message p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

#programs-container .error-message .retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

#programs-container .error-message .retry-btn:hover {
    background: #2980b9;
}

/* Animation untuk loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Custom scrollbar untuk legend */
.distribution-legend::-webkit-scrollbar {
    width: 6px;
}

.distribution-legend::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.distribution-legend::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.3s;
}

.distribution-legend::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Firefox scrollbar styling */
.distribution-legend {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Line Chart Styles */
.line-chart {
    width: 100%;
    height: 100%;
}

.line-path {
    fill: none;
    stroke: #3498db;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.data-point {
    fill: #3498db;
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.2));
}

.data-point:hover {
    fill: #2980b9;
    stroke-width: 3;
    r: 6;
    filter: drop-shadow(0 4px 8px rgba(52, 152, 219, 0.4));
    transform: translateY(-1px);
}

/* Grid Lines for Y-axis */
.grid-line {
    stroke: #e0e0e0;
    stroke-width: 1;
    stroke-dasharray: 2,2;
    opacity: 0.6;
}

/* Y-axis Labels */
.y-axis-label {
    fill: #666;
    font-size: 8px;
    font-weight: 500;
    opacity: 0.9;
    pointer-events: none;
}

/* Chart Container to ensure proper space for labels */
.chart-bars {
    position: relative;
    height: 180px; /* Reduced height */
    padding-left: 35px; /* Reduced padding for Y-axis labels */
    padding-bottom: 10px;
}

.data-label {
    fill: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

/* Line Chart Tooltip */
.line-chart-tooltip {
    position: absolute;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.line-chart-tooltip.show {
    opacity: 1;
    transform: translateY(-2px);
}

.line-chart-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.95);
}

/* Update omzet chart container for line chart */
.chart-bars {
    position: relative;
    width: 100%;
    height: 140px;
}

/* Responsive for line chart */
@media (max-width: 768px) {
    .chart-bars {
        padding-left: 20px; /* Further reduced padding for mobile Y-axis labels */
        height: 150px; /* Reduced height for mobile */
        width: 100%; /* Ensure full width */
    }

    .chart-x-axis {
        padding-left: 20px; /* Align with chart bars */
        padding-right: 5px; /* Remove right padding */
        width: 100%; /* Ensure full width */
    }

    .line-path {
        stroke-width: 2;
    }

    .data-point {
        stroke-width: 1.5;
    }

    .data-point:hover {
        r: 5;
    }

    .data-label {
        font-size: 10px;
    }

    .y-axis-label {
        font-size: 7px;
    }

    /* Scale line chart wider on mobile */
    .line-chart {
        transform: scaleX(1.1); /* Scale chart to be wider on mobile */
        transform-origin: left center;
    }
}

@media (min-width: 769px) {
    /* Keep desktop scaling normal */
    .line-chart {
        transform: scaleX(1); /* Normal scale on desktop */
    }
}

@media (min-width: 1200px) {
    .chart-bars {
        padding-left: 40px; /* Reduced padding for large screens */
    }

    .chart-x-axis {
        padding-left: 40px; /* Align with chart bars */
    }

    .y-axis-label {
        font-size: 9px;
    }
}