/* ===== MODERN CSS OVERLAY - Disdukcapil Buton ===== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --bg-gradient: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAV CONTAINER ===== */
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ===== HEADER / NAVBAR ===== */
#header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0;
    transition: var(--transition);
}

#header.scrolled {
    box-shadow: var(--shadow-md);
}

#header .logo img {
    max-height: 50px;
    transition: var(--transition);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar ul li:hover,
.navbar ul li .active {
    color: var(--primary);
    background: rgba(26,86,219,0.08);
}

.navbar ul li.dropdown {
    position: relative;
}

.navbar ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--border);
}

.navbar ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}

.navbar ul li.dropdown .dropdown-menu li a {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.navbar ul li.dropdown .dropdown-menu li:hover a {
    background: var(--bg-light);
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 8px;
}

.header-social-links {
    gap: 8px;
}

.header-social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.header-social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== HOMEPAGE SECTION STYLES ===== */
section.container-fluid {
    max-width: 1200px;
}

.home-services .card-inner {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
}

.home-services .card-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.mg-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
    display: block;
}

.small-box {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition);
    border: none !important;
    overflow: hidden;
}

.small-box h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.small-box .icon {
    font-size: 45px !important;
    opacity: 0.3;
}

.card-columns .card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-card);
}

#nfo-slider .carousel-item h1 {
    font-family: 'Inter', sans-serif;
}

.rbreaking-news {
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border) !important;
}

.breaking-news .bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border-radius: var(--radius-sm);
}

.section-title h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.banner-list img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
}

#category-slider {
    height: auto !important;
    padding: 20px 0;
}

#category-slider .slider-item {
    background: var(--bg-card);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border) !important;
    transition: var(--transition);
    padding: 30px !important;
}

#category-slider .slider-item:hover {
    border-color: var(--primary-light) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-3px);
}

#infographic-slider .slider-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#infographic-slider .slider-item img {
    border-radius: var(--radius-md);
    transition: var(--transition);
}

#infographic-slider .slider-item:hover img {
    transform: scale(1.05);
}

.users-list li {
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.users-list li:hover {
    background: var(--bg-light);
}

.users-list li img {
    border-radius: 50%;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.users-list li:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.progress {
    border-radius: 20px !important;
    overflow: hidden;
    background: #e9ecef;
    height: 8px !important;
}

.progress-bar {
    border-radius: 20px !important;
    transition: width 1s ease-in-out;
}

.box {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.box h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.alert {
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
}

.metafooter {
    font-size: 13px;
}

.author-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-name a {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.post-date {
    color: var(--text-muted);
    font-size: 12px;
}

.post-read {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.text-hite-blue {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== MOBILE NAV MENU (Slide-down) ===== */

.mobile-nav-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
    padding: 0;
    line-height: 1;
}

.mobile-nav-toggle-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mobile-nav-toggle-btn i {
    font-size: 20px;
    line-height: 1;
}

.mobile-nav-toggle {
    display: none;
}

/* Use #navbar ID for maximum specificity to override menu.css */
@media (max-width: 991px) {
    .mobile-nav-toggle-btn {
        display: flex;
    }

    #navbar > ul {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.6) !important;
        flex-direction: column !important;
        padding: 60px 20px 20px !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 9998 !important;
        max-height: none !important;
        overflow-y: auto !important;
        margin: 0 !important;
        align-items: stretch !important;
    }

    #navbar > ul.mobile-open {
        display: flex !important;
    }

    #navbar > ul > li {
        position: static !important;
        width: 100% !important;
        margin-bottom: 2px !important;
    }

    #navbar > ul > li > a {
        display: block !important;
        padding: 14px 16px !important;
        font-size: 16px !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-transform: none !important;
        white-space: normal !important;
        background: rgba(255,255,255,0.12) !important;
        border-radius: var(--radius-sm) !important;
        transition: var(--transition) !important;
    }

    #navbar > ul > li > a:hover,
    #navbar > ul > li > a:active {
        background: rgba(255,255,255,0.2) !important;
        color: #ffffff !important;
    }

    #navbar > ul > li.dropdown > ul {
        display: none !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255,255,255,0.08) !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 3px solid rgba(255,255,255,0.3) !important;
        margin: 0 0 0 16px !important;
        padding: 4px 0 !important;
        transform: none !important;
        transition: none !important;
    }

    #navbar > ul > li.dropdown.dropdown-active > ul {
        display: block !important;
    }

    #navbar > ul > li.dropdown > ul > li > a {
        display: block !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 400 !important;
        color: rgba(255,255,255,0.85) !important;
        text-transform: none !important;
        border-radius: var(--radius-sm) !important;
        background: transparent !important;
    }

    #navbar > ul > li.dropdown > ul > li > a:hover {
        background: rgba(255,255,255,0.1) !important;
        color: #ffffff !important;
    }

    .header-social-links {
        display: none !important;
    }

    #header .logo img {
        max-height: 36px;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-left: 4px;
    }

    .card-columns {
        column-count: 1 !important;
    }

    section.container-fluid {
        padding: 0 12px;
    }

    /* Homepage sections */
    .home-services .card-inner {
        margin-bottom: 10px;
    }

    .mg-text span {
        font-size: 11px;
    }

    .breaking-news {
        flex-direction: column !important;
    }

    .breaking-news .bg-danger {
        min-width: 100%;
        margin-bottom: 4px;
    }

    .breaking-news marquee {
        font-size: 13px;
    }

    .users-list li {
        width: 33.33% !important;
    }

    .users-list li img {
        width: 50px;
        height: 50px;
    }

    .users-list-name {
        font-size: 11px;
    }

    .users-list-date {
        font-size: 10px;
    }

    .box-footer {
        font-size: 13px;
    }

    h1.f-20 {
        font-size: 16px !important;
    }

    h1.f-22 {
        font-size: 18px !important;
    }

    .card-columns .card .row {
        flex-direction: column;
    }

    .card-columns .card .wrapthumbnail {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .card-columns .card .thumbnail {
        height: 180px;
    }

    .card-columns .card .card-title {
        font-size: 16px;
    }

    .card-columns .card .card-text {
        font-size: 13px;
    }

    /* Infographic */
    .infographic-text {
        flex-direction: column !important;
        text-align: center;
    }

    .infographic-text h1 {
        font-size: 16px !important;
        margin-bottom: 8px;
    }

    /* Category slider */
    #category-slider {
        height: auto !important;
    }

    #category-slider .slider-item {
        padding: 20px !important;
        margin: 5px !important;
    }

    #category-slider .slider-item img {
        height: 50px;
    }

    #category-slider .slider-item span {
        font-size: 11px;
    }

    /* Footer links */
    .bg-darker {
        padding: 16px 0 !important;
    }

    .bg-darker a {
        font-size: 12px !important;
        display: inline-block;
        margin: 2px 0;
    }

    /* E-counter */
    .small-box h3 {
        font-size: 22px !important;
    }

    .small-box .icon {
        display: none;
    }

    .small-box .inner {
        padding: 8px;
    }

    /* Modal */
    .modal-dialog {
        margin: 8px;
        max-width: calc(100% - 16px);
    }

    .modal-body img {
        max-width: 100%;
        height: auto;
    }

    /* Sambutan section */
    .section-title h1 {
        font-size: 14px;
    }

    .badge-light-primary {
        font-size: 12px;
    }

    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== SMALL PHONE ===== */
@media (max-width: 575px) {
    .nav-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    #header .logo img {
        max-height: 30px;
    }

    .navbar ul li a {
        font-size: 14px;
        padding: 10px 12px;
    }

    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Login page */
    .login-wrapper {
        padding: 12px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .login-subtitle {
        font-size: 18px;
    }

    .form-control {
        padding: 10px 12px 10px 38px;
        font-size: 13px;
    }

    .btn-login {
        padding: 11px;
        font-size: 14px;
    }

    /* Homepage */
    .card-columns .card .card-title {
        font-size: 14px;
    }

    .card-columns .card .card-text {
        font-size: 12px;
    }

    .card-columns .card .thumbnail {
        height: 150px;
    }

    .small-box h3 {
        font-size: 18px !important;
    }

    .small-box p {
        font-size: 12px;
    }

    #category-slider .slider-item {
        padding: 14px !important;
        margin: 3px !important;
    }

    #category-slider .slider-item img {
        height: 40px;
    }

    #category-slider .slider-item span {
        font-size: 10px;
    }

    .users-list li {
        width: 50% !important;
    }

    .users-list li img {
        width: 45px;
        height: 45px;
    }

    .users-list-name {
        font-size: 10px;
    }

    .breaking-news .bg-danger {
        font-size: 12px;
        padding: 6px 10px;
    }

    .breaking-news marquee {
        font-size: 12px;
    }

    .bg-darker a {
        font-size: 11px !important;
    }

    .widget-title {
        font-size: 13px;
    }

    .widget-desc {
        font-size: 11px;
    }

    h1.f-20 {
        font-size: 14px !important;
    }

    .section-title h1 {
        font-size: 13px;
    }

    /* Progress bar */
    .progress {
        height: 8px !important;
    }

    /* Footer */
    footer.text-center {
        padding: 0;
    }

    footer.text-center .container {
        padding: 10px 8px;
    }

    /* Carousel controls */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    /* Modal */
    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 16px;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .users-list li {
        width: 25% !important;
    }

    .card-columns .card .thumbnail {
        height: 200px;
    }

    h1.f-20 {
        font-size: 18px !important;
    }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1200px) {
    section.container-fluid {
        max-width: 1140px;
    }
}

/* ===== CAROUSEL / BANNER ===== */
.carousel-item img {
    border-radius: 0;
    object-fit: cover;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    border: none;
    background: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
}

.carousel-indicators .active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 10px;
    box-shadow: var(--shadow-md);
}

/* ===== MODAL IMPROVEMENTS ===== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== FORMS ===== */
.form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

/* ===== MARQUEE / BREAKING NEWS ===== */
.breaking-news {
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border) !important;
    overflow: hidden;
}

.breaking-news .bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border-radius: var(--radius-sm);
    min-width: 120px;
}

/* ===== FOOTER ===== */
.bg-darker {
    background: rgba(0,0,0,0.2);
}

.bg-darker a {
    text-decoration: none;
    transition: var(--transition);
}

.bg-darker a:hover {
    color: var(--primary-light) !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* ===== TABLE ===== */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--primary);
    color: white;
}

/* ===== BADGE ===== */
.badge {
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* ===== POLL / VOTING ===== */
.progress {
    border-radius: 20px !important;
    height: 10px !important;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== DARK THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-light);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: rotate(20deg) scale(1.1);
}

.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: inline-block; }

[data-theme="dark"] .theme-toggle-btn .icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --bg-light: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.6);
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] #header {
    background: rgba(15,23,42,0.95);
    border-bottom-color: #334155;
}

[data-theme="dark"] .navbar ul li a {
    color: #e2e8f0;
}

[data-theme="dark"] .navbar ul li:hover,
[data-theme="dark"] .navbar ul li .active {
    color: #60a5fa;
    background: rgba(96,165,250,0.12);
}

[data-theme="dark"] .navbar ul li.dropdown .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .navbar ul li.dropdown .dropdown-menu li:hover a {
    background: #334155;
}

[data-theme="dark"] .header-social-links a {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .header-social-links a:hover {
    background: var(--primary);
    color: #fff;
}

[data-theme="dark"] .home-services .card-inner {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .home-services .card-inner:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

[data-theme="dark"] .small-box {
    background: #1e293b !important;
}

[data-theme="dark"] .small-box p {
    color: #e2e8f0;
}

[data-theme="dark"] .card-columns .card {
    background: #1e293b;
    border-color: #334155 !important;
}

[data-theme="dark"] .card-columns .card .card-title a {
    color: #f1f5f9;
}

[data-theme="dark"] .card-columns .card .card-text {
    color: #94a3b8;
}

[data-theme="dark"] .breaking-news {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .section-title h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .box {
    background: #1e293b;
    border-color: #334155 !important;
}

[data-theme="dark"] .box h1 {
    color: #f1f5f9;
    border-color: #334155 !important;
}

[data-theme="dark"] .widget-reminder {
    background: #1e293b;
    border-color: #334155 !important;
}

[data-theme="dark"] .widget-title {
    color: #f1f5f9;
}

[data-theme="dark"] .widget-desc {
    color: #94a3b8;
}

[data-theme="dark"] .users-list li {
    color: #e2e8f0;
}

[data-theme="dark"] .users-list li img {
    border-color: #334155;
}

[data-theme="dark"] .alert {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .alert-danger {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
}

[data-theme="dark"] .alert-info {
    background: rgba(14,165,233,0.15);
    color: #7dd3fc;
}

[data-theme="dark"] .bg-darker {
    background: rgba(0,0,0,0.4);
}

[data-theme="dark"] footer.bg-dark {
    background: #0b1120 !important;
}

[data-theme="dark"] .section-title h1 a {
    color: #60a5fa;
}

[data-theme="dark"] .post-name a {
    color: #f1f5f9;
}

[data-theme="dark"] .metafooter {
    color: #94a3b8;
}

[data-theme="dark"] .post-read {
    color: #60a5fa;
}

[data-theme="dark"] #category-slider .slider-item {
    background: #1e293b;
    border-color: #334155 !important;
}

[data-theme="dark"] #category-slider .slider-item span {
    color: #e2e8f0;
}

[data-theme="dark"] .infographic-text h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .progress {
    background: #334155;
}

[data-theme="dark"] .form-control {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .form-control:focus {
    background: #0f172a;
    border-color: #3b82f6;
}

[data-theme="dark"] .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

[data-theme="dark"] .btn-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .modal-header {
    border-color: #334155;
}

[data-theme="dark"] .modal-footer {
    border-color: #334155;
}

[data-theme="dark"] .modal-body {
    color: #e2e8f0;
}

[data-theme="dark"] .swal2-popup {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .table {
    color: #e2e8f0;
}

[data-theme="dark"] table thead {
    background: #1e40af;
}

[data-theme="dark"] .badge-light {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bg-white {
    background: #1e293b !important;
}

[data-theme="dark"] .text-blue {
    color: #60a5fa !important;
}

[data-theme="dark"] h1.f-20 {
    color: #f1f5f9;
}

[data-theme="dark"] .f-22 {
    color: #f1f5f9;
}

[data-theme="dark"] a.text-decoration-none {
    color: #f1f5f9;
}

[data-theme="dark"] a.text-decoration-none:hover {
    color: #60a5fa;
}

[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .card-body {
    color: #e2e8f0;
}

[data-theme="dark"] .list-group-item {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .input-group-text {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] ::-webkit-scrollbar {
    background: #1e293b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #475569;
}

[data-theme="dark"] .viewmodal .modal-content,
[data-theme="dark"] .modal {
    background: rgba(0,0,0,0.6);
}

[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dropdown-item {
    color: #e2e8f0;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #334155;
    color: #60a5fa;
}

/* Dark theme responsive adjustments */
@media (max-width: 991px) {
    [data-theme="dark"] .navbar ul {
        background: #1e293b;
        border-color: #334155;
    }
}
