/* =====================================================
   EWS CUSTOM STYLES - CodeIgniter Integration
   ===================================================== */

.container {
    width: 1140px !important;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
}

.t3-copyright {
    font-size: 12px;
    padding: 5px 0 5px;
}

.t3-footer {
    background: #2c3e50;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.wrap {
    clear: both;
}

/* =====================================================
   MODERN STICKY NAVBAR
   ===================================================== */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    background: linear-gradient(135deg, #0e3d5a 0%, #1a5276 100%);
    box-shadow: 0 4px 25px rgba(0,0,0,0.4);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand img {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.navbar-brand-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar-menu li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-1px);
}

.navbar-menu li a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-menu li a i {
    font-size: 14px;
}

/* Spacer for fixed navbar */
.navbar-spacer {
    height: 70px;
}

/* =====================================================
   HAMBURGER MENU STYLES
   ===================================================== */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation to X */
.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-overlay.active {
    opacity: 1;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Menu header styling (hidden on desktop) */
.menu-header,
.menu-footer {
    display: none;
}

/* Mobile menu header and footer */
@media (max-width: 768px) {
    .menu-header {
        display: block !important;
        padding: 0 !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
        margin-bottom: 10px;
    }

    .menu-header-content {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 25px;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .menu-header-content i {
        font-size: 18px;
        color: #3498db;
    }

    .menu-footer {
        display: block !important;
        margin-top: auto;
        padding: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: none !important;
    }

    .menu-footer-content {
        padding: 20px 25px;
        text-align: center;
        color: rgba(255, 255, 255, 0.5);
    }

    .menu-footer-content small {
        font-size: 11px;
    }
}

.home {
    height: 100%;
    background-image: radial-gradient(circle, #3f91cd, #0e314b);
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-bottom: 0 !important;
    background-color: #3f91cd;
}

.card {
    border: none;
}

.card-header {
    background-color: transparent;
}

.dx-datagrid {
    color: white;
    background-color: transparent;
}

.dx-datagrid-headers {
    color: white;
    background-color: transparent;
}

.dx-datagrid .dx-row-alt > td, .dx-datagrid .dx-row-alt > tr > td {
    background-color: transparent !important;
}

.dx-datagrid .dx-row-lines > td {
    border: 1px solid #2c3e50;
    background-color: rgba(44, 62, 80, 0.4);
}

.dx-datagrid-headers .dx-datagrid-table .dx-row > td {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #2c3e50;
}

.dx-texteditor-input {
    font-size: small;
}

.dxc-title text {
    fill: white !important;
}

.pricelist {
    background-color: rgba(44, 62, 80, 0.4);
    display: block;
    width: 270px;
    float: left;
    margin: 3px;
    height: 120px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: 10px 25px;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pricelist:hover {
    background-color: rgba(44, 62, 80, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pricelistcontainer {
    display: flex;
    flex-wrap: wrap;
    margin: -3px;
    height: auto;
    overflow: hidden;
    padding: 0;
    justify-content: flex-start;
}

#histogram text {
    fill: white !important;
}

a {
    color: white;
}

h3 {
    font-size: 20px;
}

label {
    text-transform: capitalize;
    letter-spacing: normal;
}

.dx-label-h-align {
    align-items: normal;
}

.filter-box {
    background-color: rgba(44, 62, 80, 0.4);
    border: 1px solid #2c3e50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    height: 400px;
    background: rgba(44, 62, 80, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

#leafletMap {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.leaflet-popup-tip {
    background: #2c3e50;
}

.leaflet-popup-content {
    margin: 15px;
}

.custom-marker {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.custom-marker.horas {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.custom-marker.dwikora {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.custom-marker .marker-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.custom-marker .marker-label {
    font-size: 8px;
    white-space: nowrap;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 10px;
    color: white;
    z-index: 1000;
    font-size: 12px;
}

.map-legend h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.map-mode-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.map-mode-toggle button {
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    background: transparent;
    color: #333;
}

.map-mode-toggle button.active {
    background: #3498db;
    color: white;
}

.map-mode-toggle button:hover:not(.active) {
    background: #ecf0f1;
}

.map-legend.light-mode {
    background: rgba(255,255,255,0.95);
    color: #333;
}

.map-legend.light-mode h5 {
    border-bottom-color: rgba(0,0,0,0.2);
}

.map-info-panel.light-mode {
    background: rgba(255,255,255,0.95);
    color: #333;
}

.map-info-panel.light-mode h5 {
    color: #2c3e50;
}

.map-legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.map-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
}

.map-info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 10px;
    color: white;
    z-index: 1000;
    min-width: 200px;
}

.map-info-panel h5 {
    margin: 0 0 10px 0;
    color: #3498db;
}

.popup-content {
    text-align: center;
}

.popup-content h4 {
    margin: 0 0 10px 0;
    color: #3498db;
    font-size: 16px;
}

.popup-price {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.popup-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 12px;
}

.popup-btn:hover {
    background: #2980b9;
}

.info-card {
    background: rgba(44, 62, 80, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    color: white;
}

.info-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #3498db;
}

.info-card .value {
    font-size: 24px;
    font-weight: bold;
}

.info-card .label {
    font-size: 12px;
    opacity: 0.8;
}

.price-up { color: #e74c3c; }
.price-down { color: #27ae60; }
.price-same { color: #f39c12; }

.tab-btn {
    background: rgba(44, 62, 80, 0.5);
    border: none;
    color: white;
    padding: 10px 20px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(44, 62, 80, 0.9);
}

.section-divider {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.commodity-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 30px;
    max-width: 950px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    color: #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.modal-content h5 {
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #e74c3c;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #c0392b;
}

.sparkline-container {
    width: 100px;
    height: 50px;
}

/* =====================================================
   LEVEL CLASSIFICATION STYLES
   ===================================================== */
.level-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.level-badge-small {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.level-indicator {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.level-legend {
    background: rgba(44, 62, 80, 0.6);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.level-legend h5 {
    color: white;
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.legend-item-ews {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legend-item-ews:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.legend-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
}

.legend-text strong {
    display: block;
    color: white;
    font-size: 13px;
    margin-bottom: 3px;
}

.legend-text span {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    line-height: 1.4;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 1200px) {
    .container {
        width: 100% !important;
        padding: 0 15px;
    }
    #wrapper {
        min-width: 100% !important;
    }
}

@media (max-width: 992px) {
    .col-lg-9, .col-lg-3, .col-lg-7, .col-lg-5, .col-lg-8, .col-lg-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .section-divider {
        flex-direction: column;
    }

    .map-container {
        height: 300px;
        margin-bottom: 15px;
    }

    .map-info-panel {
        display: none;
    }

    .map-legend {
        bottom: 10px;
        left: 10px;
        padding: 10px;
        font-size: 11px;
    }

    /* Tab buttons mobile */
    .tab-btn {
        padding: 8px 12px;
        font-size: 11px;
        margin-right: 3px;
    }

    /* Charts height on tablet */
    #histogramChart, #comparisonChart {
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        gap: 0;
    }

    .navbar-brand {
        justify-content: flex-start;
        flex: 1;
    }

    .navbar-brand img {
        height: 35px;
    }

    .navbar-brand-title {
        font-size: 12px;
    }

    .navbar-brand-subtitle {
        font-size: 9px;
        display: none;
    }

    /* Show hamburger toggle on mobile */
    .navbar-toggle {
        display: flex;
    }

    /* Show overlay on mobile */
    .navbar-overlay {
        display: block;
        pointer-events: none;
    }

    .navbar-overlay.active {
        pointer-events: auto;
    }

    /* Mobile slide-out menu */
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #1a5276 0%, #0e3d5a 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 30px 0;
        gap: 0;
        z-index: 9999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 25px;
        font-size: 14px;
        border-radius: 0;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
    }

    .navbar-menu li a:hover,
    .navbar-menu li a.active {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        padding-left: 30px;
    }

    .navbar-menu li a i {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }

    .navbar-spacer {
        height: 60px;
    }

    .filter-box {
        padding: 15px;
        margin: 0 5px 15px 5px;
        width: calc(100% - 10px);
        box-sizing: border-box;
    }

    .filter-box .row {
        display: flex;
        flex-direction: column;
        margin: 0;
        width: 100%;
    }

    .filter-box .col-md-3,
    .filter-box .col-6,
    .filter-box [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 12px;
        padding: 0 !important;
    }

    .filter-box .dx-selectbox,
    .filter-box .dx-widget {
        width: 100% !important;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .map-container {
        height: 300px;
    }

    .info-card {
        padding: 10px;
    }

    .info-card .value {
        font-size: 18px;
    }

    .pricelist {
        width: calc(50% - 6px);
        height: 110px;
    }

    .pricelistcontainer {
        justify-content: space-between;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .level-legend {
        padding: 15px;
        margin: 0 10px 15px 10px;
    }
}

@media (max-width: 576px) {
    .pricelist {
        width: 100%;
        height: 100px;
    }

    .sparkline-container {
        width: 80px;
        height: 40px;
    }

    .map-container {
        height: 250px;
    }

    .map-legend, .map-info-panel {
        font-size: 11px;
        padding: 10px;
    }

    #gridHarga {
        height: 250px !important;
    }

    .t3-footer p {
        font-size: 11px;
    }
}

/* =====================================================
   ENHANCED MOBILE RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 480px) {
    /* Container adjustments */
    .container {
        padding: 0 10px !important;
    }

    /* Title section */
    section#content h2 {
        font-size: 18px !important;
        padding: 0 10px;
    }

    section#content > .container > .text-center p {
        font-size: 12px !important;
    }

    /* Filter box mobile */
    .filter-box {
        padding: 12px !important;
        margin: 0 5px 15px 5px !important;
        border-radius: 8px;
        width: calc(100% - 10px) !important;
        box-sizing: border-box !important;
    }

    .filter-box label {
        font-size: 12px !important;
        margin-bottom: 5px;
        display: block;
    }

    .filter-box .row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .filter-box .row > div,
    .filter-box .col-md-3,
    .filter-box .col-6,
    .filter-box [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
    }

    .filter-box .dx-selectbox,
    .filter-box .dx-widget,
    .filter-box .dx-texteditor {
        width: 100% !important;
        min-width: 100% !important;
    }

    .filter-box .btn {
        padding: 10px !important;
        font-size: 13px !important;
        width: 100% !important;
    }

    /* Map and sidebar section */
    .col-lg-7, .col-lg-5, .col-lg-8, .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 5px !important;
    }

    /* Map container mobile */
    .map-container {
        height: 220px !important;
        margin-bottom: 15px;
    }

    #leafletMap {
        border-radius: 8px;
    }

    /* Map controls mobile */
    .map-mode-toggle {
        top: 10px;
        left: 10px;
    }

    .map-mode-toggle button {
        padding: 6px 10px;
        font-size: 10px;
    }

    .map-legend {
        bottom: 10px;
        left: 10px;
        padding: 8px 10px;
        font-size: 10px;
        max-width: calc(100% - 20px);
    }

    .map-legend h5 {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .map-legend-item {
        margin: 5px 0;
    }

    .map-legend-color {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    /* Info cards row mobile */
    .info-card {
        padding: 8px !important;
        margin-bottom: 8px;
    }

    .info-card h4 {
        font-size: 10px !important;
    }

    .info-card .value {
        font-size: 16px !important;
    }

    .info-card .label {
        font-size: 9px !important;
    }

    /* Daftar Harga section mobile */
    #gridHarga {
        height: 280px !important;
    }

    /* Search input */
    #searchHarga {
        padding: 10px 15px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }

    /* Price cards section mobile */
    .pricelistcontainer {
        padding: 0 5px;
    }

    .pricelist {
        width: 100% !important;
        height: 90px !important;
        margin: 4px 0 !important;
        border-radius: 8px;
    }

    .pricelist > div {
        padding: 10px !important;
    }

    .pricelist > div > div:first-child {
        font-size: 12px !important;
    }

    .pricelist > div > div:nth-child(2) {
        font-size: 16px !important;
    }

    .pricelist .level-badge {
        padding: 3px 8px !important;
        font-size: 9px !important;
    }

    /* Section headings mobile */
    h3 {
        font-size: 16px !important;
        padding: 0 5px;
    }

    /* Modal mobile styles */
    .modal-content {
        padding: 15px !important;
        margin: 10px;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-content h3 {
        font-size: 16px !important;
        padding-bottom: 10px !important;
        margin-bottom: 15px !important;
    }

    .modal-content h5 {
        font-size: 13px !important;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    #modalChart, #modalComparisonChart {
        height: 200px !important;
    }

    #modalInfo .info-card {
        padding: 12px !important;
    }

    #modalInfo .info-card h4 {
        font-size: 13px !important;
    }

    #modalInfo .info-card p {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    /* Charts section mobile */
    #histogram {
        height: 180px !important;
    }

    /* Footer mobile */
    .t3-footer {
        padding: 10px 5px;
    }

    .t3-copyright {
        font-size: 10px;
        padding: 3px 0;
    }

    /* DevExtreme grid mobile adjustments */
    .dx-datagrid-headers .dx-row > td {
        padding: 6px 4px !important;
    }

    .dx-datagrid-rowsview .dx-row > td {
        padding: 6px 4px !important;
    }

    /* SelectBox mobile */
    .dx-selectbox {
        height: 38px !important;
    }

    .dx-texteditor-input {
        font-size: 13px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    section#content h2 {
        font-size: 16px !important;
    }

    .navbar-brand-title {
        font-size: 11px !important;
    }

    .navbar-menu li a {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }

    .pricelist {
        height: 85px !important;
    }

    .info-card .value {
        font-size: 14px !important;
    }

    .modal-content {
        padding: 12px !important;
    }
}

/* =====================================================
   MODAL RESPONSIVE IMPROVEMENTS
   ===================================================== */
@media (max-width: 768px) {
    .commodity-detail-modal {
        padding: 10px;
    }

    .modal-content {
        padding: 15px !important;
        margin: 5px;
        width: calc(100% - 10px) !important;
        max-width: 100% !important;
        border-radius: 12px;
    }

    .modal-content .row {
        margin: 0 -5px;
    }

    .modal-content .col-md-6,
    .modal-content .col-md-4,
    .modal-content .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 5px;
        margin-bottom: 15px;
    }

    .modal-close {
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 10001;
        background: rgba(255,255,255,0.9);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    #modalChart {
        height: 220px !important;
        margin-bottom: 15px;
    }

    #modalComparisonChart {
        height: 200px !important;
        margin-bottom: 15px;
    }

    #modalInfo {
        margin-top: 10px;
    }

    #modalInfo .info-card {
        padding: 12px !important;
    }

    #modalInfo .info-card p {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
}

/* =====================================================
   LEVEL LEGEND RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .level-legend {
        padding: 12px;
        margin: 0 5px 15px 5px;
    }

    .level-legend h5 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .legend-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .legend-item-ews {
        padding: 10px;
    }

    .legend-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .legend-text strong {
        font-size: 12px;
    }

    .legend-text span {
        font-size: 10px;
    }
}

/* =====================================================
   DATAGRID TABLE RESPONSIVE
   ===================================================== */
@media (max-width: 576px) {
    .dx-datagrid .dx-datagrid-headers {
        font-size: 11px !important;
    }

    .dx-datagrid .dx-datagrid-content {
        font-size: 11px !important;
    }

    .dx-datagrid-headers .dx-row > td {
        padding: 5px 3px !important;
    }

    .dx-datagrid-rowsview .dx-row > td {
        padding: 5px 3px !important;
    }

    /* Hide some columns on very small screens */
    .dx-datagrid .dx-column-indicators {
        display: none;
    }
}

/* =====================================================
   TABLE PAGE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .table-container {
        padding: 10px !important;
        margin: 0 5px;
    }

    #tabelHarga {
        height: 400px !important;
    }
}

/* =====================================================
   CHART PAGE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .chart-card {
        padding: 12px !important;
        margin-bottom: 15px;
    }

    .chart-card h4 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    #lineChart {
        height: 250px !important;
    }

    #pieChart {
        height: 220px !important;
    }

    #barChart, #topChart {
        height: 220px !important;
    }
}

/* =====================================================
   TENTANG PAGE RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .content-card {
        padding: 15px !important;
        margin-bottom: 15px;
    }

    .content-card h4 {
        font-size: 15px !important;
    }

    .content-card p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .content-card ul {
        font-size: 12px !important;
        padding-left: 15px !important;
    }

    .content-card ul li {
        margin-bottom: 5px !important;
    }

    .content-card h5 {
        font-size: 13px !important;
    }

    .content-card h6 {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 12px !important;
    }

    .content-card h4 {
        font-size: 14px !important;
    }

    .content-card p {
        font-size: 12px !important;
    }

    .content-card ul {
        font-size: 11px !important;
    }
}

/* =====================================================
   BANNER SLIDER TPID - SLICK CAROUSEL
   ===================================================== */
.banner-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: rgba(44, 62, 80, 0.95);
    height: 400px;
}

.banner-slider-slick {
    height: 100%;
    width: 100%;
}

.slickwrap {
    position: relative;
    height: 400px;
    display: flex !important;
    align-items: center;
    width: 100%;
}

.homeimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.homeimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hometext {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 40px;
}

.hometext__inner {
    max-width: 600px;
}

.hometitle {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.homesummary {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.homelink a {
    display: inline-block;
    padding: 10px 25px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.homelink a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.banner-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.banner-placeholder h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-placeholder p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    color: white;
    padding: 30px 40px 20px;
    z-index: 2;
}

.banner-caption h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-caption p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.banner-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.banner-dot.active {
    background: white;
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.3);
}

/* Responsive Berita Cards */
.berita-card {
    transition: all 0.3s ease;
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25) !important;
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .berita-card img,
    .berita-card > div:first-child {
        height: 160px !important;
    }

    .berita-card h4 {
        font-size: 14px !important;
    }

    .berita-card p {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .berita-card {
        margin-bottom: 15px;
    }

    .berita-card img,
    .berita-card > div:first-child {
        height: 140px !important;
    }

    .berita-card h4 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .berita-card p {
        font-size: 12px !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 2 !important;
    }

    .btn-berita {
        width: 100%;
        padding: 8px 15px !important;
        font-size: 12px !important;
    }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
    .berita-card {
        margin-bottom: 15px;
    }

    .berita-card img,
    .berita-card > div:first-child {
        height: 180px !important;
    }

    .berita-card > div:last-child {
        padding: 12px !important;
    }

    .berita-card h4 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2 !important;
    }

    .berita-card p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 3 !important;
    }

    .btn-berita {
        width: 100%;
        padding: 10px 15px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
    .berita-card img,
    .berita-card > div:first-child {
        height: 150px !important;
    }

    .berita-card h4 {
        font-size: 14px !important;
    }

    .berita-card p {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
    }
}

/* Responsive Banner Slider */
@media (max-width: 992px) {
    .banner-slider-container {
        height: 350px;
        margin: 0 0 15px 0;
    }

    .slickwrap {
        height: 350px;
    }

    .hometext {
        padding: 30px 20px;
    }

    .hometitle {
        font-size: 24px;
    }

    .homesummary {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .banner-slider-container {
        height: 280px;
        margin: 0 0 15px 0;
        box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    }

    .slickwrap {
        height: 280px;
    }

    .banner-slider {
        height: 280px;
    }

    .hometext {
        padding: 25px 15px;
        background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    }

    .hometitle {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .homesummary {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .homelink a {
        padding: 8px 20px;
        font-size: 13px;
    }

    .banner-caption h4 {
        font-size: 18px;
    }

    .banner-caption p {
        font-size: 12px;
    }

    .banner-placeholder h3 {
        font-size: 22px;
    }

    .banner-placeholder p {
        font-size: 14px;
    }

    .banner-nav {
        width: 35px;
        height: 35px;
    }

    .banner-prev {
        left: 10px;
    }

    .banner-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .banner-slider-container {
        height: 220px;
        margin: 0 0 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .slickwrap {
        height: 220px;
    }

    .banner-slider {
        height: 220px;
    }

    .homeimg img {
        object-fit: cover;
        object-position: center;
    }

    .hometext {
        padding: 20px 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    }

    .hometext__inner {
        max-width: 100%;
    }

    .hometitle {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .homesummary {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .homelink a {
        padding: 6px 15px;
        font-size: 12px;
    }

    .banner-caption {
        padding: 20px 15px 15px;
    }

    .banner-caption h4 {
        font-size: 16px;
    }

    .banner-caption p {
        font-size: 11px;
    }

    .banner-placeholder {
        padding: 20px;
    }

    .banner-placeholder i {
        font-size: 48px;
    }

    .banner-placeholder h3 {
        font-size: 18px;
    }

    .banner-placeholder p {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .banner-slider-container {
        height: 200px;
    }

    .slickwrap {
        height: 200px;
    }

    .banner-slider {
        height: 200px;
    }

    .hometitle {
        font-size: 14px;
    }

    .homesummary {
        font-size: 11px;
    }

    .homelink a {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* Responsive Title Section */
@media (max-width: 768px) {
    #content .text-center h2 {
        font-size: 20px !important;
    }

    #content .text-center p {
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    #content .text-center h2 {
        font-size: 18px !important;
        line-height: 1.3;
    }

    #content .text-center p {
        font-size: 12px !important;
    }

    #content .container {
        padding: 0 10px !important;
    }
}

@media (max-width: 375px) {
    #content .text-center h2 {
        font-size: 16px !important;
    }

    #content .text-center p {
        font-size: 11px !important;
    }
}
