:root {
    --primary-color: #3498db;
    --secondary-color: #080808;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --darkgray-color: #A9A9A9;
    --text-color: #333;
    --text-light: #666;
    --font-primary: 'Quicksand', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --transition-normal: 0.3s ease;
    --border-radius-sm: 4px;
}

html, body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    overflow-x: hidden;
}

main.container-fluid {
    padding-top: 70px;
    width: 90%;
}


@font-face {
    font-family: 'Quicksand';
    src: url('../font/Quicksand/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins/Poppins-Bold.ttf') format('truetype');
    font-display: swap;
}

h1,h3 {
    font-family: Poppins;
}

.background-container {
    position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            z-index: -1; 
            background-image: url('../img/wall1_11zon.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
   }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    background-color: transparent !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
}

.navbar-nav {
    margin-left: auto;
}

.navbar-brand,
.nav-link {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--dark-color);
    background-color: rgba(105, 100, 100, 0.2);
    border-radius: var(--border-radius-sm);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
}

.center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 20px;
    margin-top: 58px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.garuda-image, 
.logo-kab-image,
.logo-kemendesa {
    width: 120px; 
    height: 120px; 
    object-fit: contain;
}

.logo-kemendesa {
    width: 120px !important; 
    height: 120px !important; 
    margin: 0 !important; 
}

.title-section {
    text-align: center;
    color: antiquewhite;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.title-section span:nth-child(1) {
    font-size: 2.5rem;
    line-height: 1.2;
    font-family: var(--font-secondary);
    font-weight: bold;
}

.title-section span:nth-child(2),
.title-section span:nth-child(3) {
    font-size: 1.5rem;
    line-height: 1.3;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer Styles */
.footer-glossy {
    background-color: transparent !important;
    backdrop-filter: blur(5px);
    min-height: 80px;
    color: white;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.5) inset;
    margin-top: -0.5%;
}

.footer-glossy a {
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-glossy a:hover {
    opacity: 0.8;
}

.footer-logo {
    transition: all var(--transition-normal);
    margin: 0 10px;
}

.footer-logo-a,
.footer-logo-c,
.footer-logo-d,
.footer-logo-f,
.footer-logo-h {
    width: 40px;
    height: auto;
    margin-top: 12px;
}

.footer-logo-b { 
    width: 45px;
    height: auto;
    margin-top: 12px;
}

.footer-logo-e,
.footer-logo-g {
    width: 50px;
    height: auto;
    margin-top: 12px;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.logo-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .dgk-gks {
        display: block;
        font-size: 2.5rem;     
        line-height: 1.2;
        font-family: var(--font-secondary);
    }
    
    .session-Exp {
        top: 20px; 
        left: 50%; 
        transform: translateX(-50%); 
        z-index: 9999; 
        padding: 0.5rem 1rem; 
        font-size: 0.875rem; 
        max-width: 80%;
    }
    
    .w-ML {
        max-width: 400px;
    }
    
    .w-OM {
        max-width: 400px !important;
    }
    
    .ML-Log {
        width:20px; 
        height:20px; 
        filter: brightness(0) 
        invert(1);
    }
    
    .fa-shiled-font {
        font-size: 2rem;
    }
    
    .font-oc {
        font-size: 1.2rem !important; 
        letter-spacing: 0.3rem !important;
    }
    
    .if-oc {
        display: none;
    }
    
    .ch-ci{
        cursor:pointer; 
        max-height: 60px;
    }

@media (min-width: 992px) {
    .footer-logo {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateY(0);
        filter: grayscale(0.3) brightness(1);
        opacity: 0.9;
    }

    .footer-logo:hover {
        transform: translateY(-5px) scale(1.15);
        filter: grayscale(0) brightness(1.2);
        opacity: 1;
        box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
    }

    .footer-logo-a:hover { transform: translateY(-5px) scale(1.15) rotate(5deg); }
    .footer-logo-b:hover { transform: translateY(-5px) scale(1.15) rotate(-5deg); }
    .footer-logo-c:hover { transform: translateY(-5px) scale(1.15) rotate(3deg); }
    .footer-logo-d:hover { transform: translateY(-5px) scale(1.15) rotate(-3deg); }
    .footer-logo-e:hover { transform: translateY(-5px) scale(1.15); }
    .footer-logo-f:hover { transform: translateY(-5px) scale(1.15) rotate(2deg); }
    .footer-logo-g:hover { transform: translateY(-5px) scale(1.15); }
    .footer-logo-h:hover { transform: translateY(-5px) scale(1.15) rotate(-2deg); }

    .logo-row:hover .footer-logo {
        animation: logoBounce 0.6s ease forwards;
    }

    .logo-row:hover .footer-logo:nth-child(1) { animation-delay: 0.1s; }
    .logo-row:hover .footer-logo:nth-child(2) { animation-delay: 0.2s; }
    .logo-row:hover .footer-logo:nth-child(3) { animation-delay: 0.3s; }
    .logo-row:hover .footer-logo:nth-child(4) { animation-delay: 0.4s; }
    .logo-row:hover .footer-logo:nth-child(5) { animation-delay: 0.5s; }
    .logo-row:hover .footer-logo:nth-child(6) { animation-delay: 0.6s; }
    .logo-row:hover .footer-logo:nth-child(7) { animation-delay: 0.7s; }
    .logo-row:hover .footer-logo:nth-child(8) { animation-delay: 0.8s; }

    @keyframes logoBounce {
        0% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(-5px) scale(1.15); }
    }
}

@media (max-width: 991.98px) {
    .center-section {
        margin-top: -3% !important;
        padding-top: 0 !important;
        min-height: calc(100vh - 120px);
        margin-bottom: -9%;
    }

    .garuda-image,
    .logo-kab-image,
    .logo-kemendesa {
        width: 150px !important;
        margin: 10px auto 15px !important;
    }

    .title-section {
        margin-top: 5px !important;
        margin-bottom: 10px !important;
    }
    
    .dgk-gks {
        font-size: 1.2rem; 
        line-height: 1.3;
    }
    
    .title-section span:first-child {
        font-size: 1.3rem; 
    }
    
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important; 
        gap: 10px; 
        width: 100%; 
        justify-content: center; 
    }
    
    .garuda-image, 
    .logo-kab-image,
    .logo-kemendesa {
        width: 80px !important; 
        height: 80px !important;
        max-width: 30%;
    }
    .center-section {
        margin-top: 10px;
        padding-top: 20px;
        margin-bottom: -9%;
    }

    .nav-link {
        color: var(--text-color) !important;
        font-weight: 500;
        padding: 10px 15px !important;
    }

    .nav-link:hover {
        color: var(--text-light) !important;
        background-color: #f8f9fa !important;
    }

    .nav-link.active {
        color: var(--text-color) !important;
        font-weight: 600;
        background-color: #e9ecef !important;
    }

    .navbar-collapse {
        background-color: white;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .title-section span:nth-child(1) {
        font-size: 2rem;
    }
    
    .title-section span:nth-child(2),
    .title-section span:nth-child(3) {
        font-size: 1.2rem;
    }

    .footer-logo {
        width: 35px;
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        gap: 5px;
    }
    
    .garuda-image,
    .logo-kab-image,
    .logo-kemendesa {
        width: 70px !important; 
        height: 70px !important;
    }

    .center-section {
        margin-top: -3% !important;
        margin-bottom: -9%;
    }

    .title-section {
        margin: 0 0 5px 0 !important;
    }
    
    .title-section span:nth-child(1) {
        font-size: 1.8rem;
    }
    
    .title-section span:nth-child(2),
    .title-section span:nth-child(3) {
        font-size: 1rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        width: 30px;
    }

    .button-container {
        margin-top: 10px !important;
    }
    
     .dgk-gks {
        font-size: 1rem;  
        line-height: 1.3;
    }
    
    .title-section span:first-child {
        font-size: 1.1rem;   
    }
}

@media (max-width: 500px) {
    .logo-container {
        flex-wrap: wrap;
    }
}

.nav-item.dropdown .dropdown-menu {
    display: none;
}

.nav-item.dropdown.show .dropdown-menu,
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
    animation: slideDown 0.3s ease-out forwards;
}

.nav-item.dropdown:hover .dropdown-menu-end {
    right: 0;
    left: auto;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-dropdown {
    display: flex;
    align-items: center;
}
.user-name {
    font-weight: 500;
    color: #333;
}
.dropdown-divider {
    margin: 0.3rem 0;
}

.navbar-nav {
    margin-left: auto !important;
}
.navbar-nav.user-menu {
    margin-left: 0 !important;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-10px); opacity: 0; }
}

.dropdown-menu {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transition-delay: 0.1s;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 5px 0;
    margin-top: 5px;
}

.dropdown-item {
    padding: 8px 20px;
    color: var(--text-color) !important;
    transition: all var(--transition-normal);
    border-radius: 4px;
    margin: 2px 5px;
}

.dropdown-item:hover {
    background-color: rgba(74, 100, 145, 0.2);
    color: var(--dark-color) !important;
    margin-left: -0.1%;
}

.dropdown-menu.show {
    pointer-events: auto;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item.dropdown {
        background-color: rgba(255, 255, 255, 0.7) !important;
    }

    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.7) !important;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin: 3px 0 3px 15px;
        width: calc(100% - 30px);
        padding: 3px 0;
        pointer-events: none;
        opacity: 0;
        display: block;
    }

    .dropdown-item {
        padding: 10px 20px;
    }

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-item {
        background-color: white !important;
        margin: 0 0;
        border-radius: 5px;
    }
}

/*  BERITA CSS */

.carousel-item img {
    width: 100%;
    height: 400px; /* Atur tinggi sesuai kebutuhan */
    object-fit: cover;
}

.carousel-caption {
    bottom: 10%;
    left: 5%;
    right: 5%;
    padding: 15px;
}


@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .carousel-caption .btn {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    main.container-fluid {
        padding-top: 30px !important;
        width: 95%;
    }
}
 

/* ======== OFFCANCAS ========= */

.offcanvas-admin {
    width: 280px;
    background-color: rgba(255, 255, 255, 0.5) !important; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.admin-sidebar-menu {
    margin-top: 20px;
}
.admin-sidebar-menu .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.admin-sidebar-menu .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.admin-sidebar-menu .nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
}
.admin-sidebar-menu .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.admin-sidebar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.2);
}
.btn-toggle-sidebar {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}
.btn-toggle-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ========= DYNAMIC DASHBOARD ========== */
/* Pastikan konten dinamis tidak overflow */
#dynamic-content {
    overflow-x: auto;
    min-height: 70vh;
}

/* ========= CONTENT BERITA ========== */

.blockquote {
    font-size: 1.2rem;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
}

.list-group-item {
    transition: all 0.3s ease;
    border-left: none;
    border-right: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* ========= CHART ========== */
.chart-container {
   position: relative;
}

/* Untuk chart di modal RT */
.modal .chart-container {
   height: 200px !important;
}

.chartjs-tooltip {
   opacity: 1 !important;
   background-color: rgba(0, 0, 0, 0.9) !important;
   color: white !important;
   border-radius: 4px !important;
   padding: 10px !important;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
   transition: all 0.3s ease;
}

.chartjs-tooltip-key {
   display: inline-block;
   width: 10px;
   height: 10px;
   margin-right: 5px;
}

.chart-legend {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   margin-top: 15px;
 }
 
 .chart-legend li {
   display: flex;
   align-items: center;
   margin: 0 10px;
   cursor: pointer;
 }
 
 .chart-legend span {
   display: inline-block;
   width: 12px;
   height: 12px;
   margin-right: 5px;
   border-radius: 50%;
 }

.pdf-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 9999;
}

@media print {
    .no-print, .modal-footer {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

.btn-like:disabled {
    cursor: not-allowed;
}

   
   
   .iFeed {
        color: #ffc107 !important;
    }

    .captcha-container.blocked {
        display: none !important;
    }

    .btn-danger:disabled {
        opacity: 1 !important;
        cursor: not-allowed;
    }

    .btn-danger:disabled:hover {
        background-color: #dc3545;
        border-color: #dc3545;
    }
        
    #bansosTable th:nth-child(1),
    #bansosTable td:nth-child(1),
    #bansosTable th:nth-child(2),
    #bansosTable td:nth-child(2),
    #bansosTable th:nth-child(6),
    #bansosTable td:nth-child(6) {
        width: 200px; 
        min-width: 200px; 
        max-width: 300px; 
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #bansosResult.show-animation {
        animation: fadeInUp 0.5s ease-out forwards;
    }

    #bansosTable tbody tr {
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    #bansosTable tbody tr.show-row {
        opacity: 1;
        transform: translateY(0);
    }
    
   