@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    --color-white: #fffffe;
    --color-navy: #31328d;
    --color-yellow: #dee20e;
    --color-blue: #04a3e8;
    --color-periwinkle: #b8cbe6;
    --color-slate: #7d7fb8;

    --ocean-deep: #31328d;
    --ocean-primary: #31328d;
    --ocean-blue: #04a3e8;
    --ocean-light: #04a3e8;
    --ocean-sky: #b8cbe6;
    --ocean-cyan: #04a3e8;
    --ocean-teal: #7d7fb8;
    --ocean-accent: #dee20e;
    --wave-gradient: linear-gradient(135deg, #31328d 0%, #04a3e8 50%, #dee20e 100%);
    --glass-bg: rgba(49, 50, 141, 0.08);
    --glass-border: rgba(184, 203, 230, 0.3);
    --text-primary: #fffffe;
    --text-secondary: #b8cbe6;
    --shadow-glow: 0 8px 32px rgba(4, 163, 232, 0.25);
    --shadow-strong: 0 20px 60px rgba(49, 50, 141, 0.35);
}


/* Base Styles */

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff !important;
    position: relative;
    overflow-x: hidden;
    color: #1e293b;
}


/* Animated Ocean Wave Background */

body::before { display: none !important; 
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 30%, rgba(25, 118, 210, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 80%, rgba(0, 119, 182, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: oceanPulse 20s ease-in-out infinite;
    transform: translateZ(0);
    will-change: opacity;
}

body::after { display: none !important; 
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 77, 143, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
}

@keyframes oceanPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}


/* Header Enhanced Styles */

header.header-gradient {
    background: linear-gradient(135deg, rgba(0, 77, 143, 0.15) 0%, rgba(0, 119, 182, 0.12) 25%, rgba(0, 180, 216, 0.1) 50%, rgba(25, 118, 210, 0.12) 75%, rgba(0, 77, 143, 0.15) 100%);
    position: relative;
}

header.header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.logo-container {
    position: relative;
}

.logo-pulse {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 180, 216, 0.3), 0 0 60px rgba(25, 118, 210, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.8), 0 0 60px rgba(0, 180, 216, 0.5), 0 0 80px rgba(25, 118, 210, 0.3);
    }
}

.garuda-emblem {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.6));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* Footer Enhanced Styles */

.footer-enhanced {
    position: relative;
    margin-top: 4rem;
}

.footer-wave { display: none !important; 
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(30, 136, 229, 0.2)'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    pointer-events: none;
}

footer {
    color: var(--text-secondary);
    position: relative;
}

footer .glass {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.96) 0%,
            /* Dark slate */
            rgba(15, 23, 42, 0.92) 30%,
            /* Slate 900 */
            rgba(30, 41, 59, 0.90) 60%,
            /* Slate 800 */
            rgba(51, 65, 85, 0.88) 100%
            /* Slate 700 */
        );
    backdrop-filter: blur(35px);
    border: 1.5px solid rgba(100, 181, 246, 0.35);
    /* box-shadow removed */, 0 -6px 30px rgba(30, 136, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

footer h3 {
    text-shadow: 0 2px 15px rgba(100, 181, 246, 0.7), 0 0 25px rgba(66, 165, 245, 0.5);
}

footer a {
    position: relative;
    overflow: hidden;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(66, 165, 245, 1), rgba(100, 181, 246, 1));
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer .glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 -15px 60px rgba(30, 136, 229, 0.5), 0 -8px 35px rgba(66, 165, 245, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


/* Glass Morphism Effect - Ocean Style */

.glass {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.14) 0%, rgba(0, 180, 216, 0.1) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1.5px solid rgba(100, 181, 246, 0.25);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(25, 118, 210, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover::before {
    left: 100%;
}

.glass:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 16px 56px rgba(0, 180, 216, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 217, 255, 0.15);
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.18) 0%, rgba(0, 180, 216, 0.14) 100%);
}


/* Glow Effect - Ocean Blue */

.glow {
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 40px rgba(0, 180, 216, 0.3), 0 0 60px rgba(25, 118, 210, 0.2);
    animation: oceanGlow 3s ease-in-out infinite;
}

@keyframes oceanGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 40px rgba(0, 180, 216, 0.3), 0 0 60px rgba(25, 118, 210, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 180, 216, 0.6), 0 0 60px rgba(0, 180, 216, 0.4), 0 0 80px rgba(25, 118, 210, 0.3);
    }
}


/* Ocean depth effect */

@keyframes oceanDepth {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

footer .glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(66, 165, 245, 0.08) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: oceanDepth 10s ease infinite;
    pointer-events: none;
    opacity: 0.6;
}


/* Line Clamp Utility */

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* News Card Styles */

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--wave-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover::after {
    transform: scaleX(1);
}

.news-card h3 {
    min-height: 3.5rem;
    color: var(--ocean-accent);
    font-weight: 600;
}

.news-card p {
    flex-grow: 1;
    color: var(--text-secondary);
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 119, 182, 0.4), 0 0 0 1px rgba(0, 217, 255, 0.3);
}


/* Command Center Title Sizes */

.cc-title {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    background: linear-gradient(135deg, #64b5f6 0%, #00d9ff 50%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
}

.cc-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 12px;
}


/* Card Enhancements */

.card-lg {
    padding: 0.875rem !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.map-card {
    min-height: 450px !important;
    max-height: none !important;
}

.map-card #mapIndonesia {
    border-radius: 0.75rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

/* 4 card baris bawah: Prediksi Pasar, Realisasi Impor, Konsumsi Provinsi, Top Negara */
.row-card-bottom {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow: hidden !important;
}

/* Tabel di dalam row-card-bottom: non-scrollable, pas 5 baris */
.row-card-bottom table {
    table-layout: fixed;
}

.row-card-bottom table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.row-card-bottom table tbody tr {
    height: 32px;
}

/* Chart canvas di row-card-bottom ikut tinggi container */
.row-card-bottom canvas {
    max-height: 100% !important;
}

@media (max-width: 1024px) {
    .row-card-bottom {
        height: auto !important;
        min-height: 220px !important;
        max-height: 300px !important;
    }
}

@media (max-width: 768px) {
    .row-card-bottom {
        height: auto !important;
        max-height: none !important;
        min-height: 200px !important;
    }
}

.card-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wave-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-lg:hover::before {
    opacity: 1;
}

.card-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.3), 0 0 0 1px rgba(0, 217, 255, 0.2);
}


/* Grid Layout Improvements */

.grid {
    gap: 0.85rem;
}

@media (max-width: 1024px) {
    .grid {
        gap: 0.75rem;
    }

    .card-lg {
        min-height: 170px;
    }
}

@media (max-width: 768px) {

    .grid-cols-12>div,
    .grid-cols-12>a {
        grid-column: span 12 !important;
        grid-row: span 1 !important;
    }

    .card-lg {
        min-height: 160px;
        max-height: none;
    }
}


/* Card Animation */

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-lg {
    animation: cardFadeIn 0.35s ease-out forwards;
}

.card-lg:nth-child(1) {
    animation-delay: 0.03s;
}

.card-lg:nth-child(2) {
    animation-delay: 0.06s;
}

.card-lg:nth-child(3) {
    animation-delay: 0.09s;
}

.card-lg:nth-child(4) {
    animation-delay: 0.12s;
}

.card-lg:nth-child(5) {
    animation-delay: 0.15s;
}

.card-lg:nth-child(6) {
    animation-delay: 0.18s;
}

.card-lg:nth-child(7) {
    animation-delay: 0.21s;
}

.card-lg:nth-child(8) {
    animation-delay: 0.24s;
}

.card-lg:nth-child(9) {
    animation-delay: 0.27s;
}

.card-lg:nth-child(10) {
    animation-delay: 0.30s;
}


/* Enhanced Glass Effect */

.glass {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.15) 0%, rgba(0, 180, 216, 0.1) 50%, rgba(0, 77, 143, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(100, 181, 246, 0.25);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(25, 118, 210, 0.08);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    transition: left 0.8s ease;
}

.glass:hover::before {
    left: 100%;
}

.glass:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 16px 48px rgba(0, 180, 216, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(0, 217, 255, 0.15);
    transform: translateY(-4px) scale(1.01);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Title Enhancements */

.card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ocean-accent);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 8px rgba(0, 217, 255, 0.3);
    display: flex;
    align-items: center;
}

.card-title i {
    font-size: 0.85rem;
    filter: drop-shadow(0 0 10px currentColor) brightness(1.2);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card-title:hover i {
    filter: drop-shadow(0 0 15px currentColor) brightness(1.4);
    transform: scale(1.1);
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--wave-gradient);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title:hover::after {
    width: 60px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}


/* Responsive Adjustments */

@media (max-width: 1024px) {
    .cc-title {
        font-size: 1.8rem;
    }

    .cc-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .cc-title {
        font-size: 1.5rem;
    }

    .cc-subtitle {
        font-size: 0.7rem;
    }

    .ticker-lg {
        font-size: 0.8rem;
    }

    #mapIndonesia {
        min-height: 300px;
    }
}


/* Enhanced Table Styling */

table tbody tr {
    border-bottom: 1px solid rgba(100, 181, 246, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(25, 118, 210, 0.12) 100%);
    transform: translateX(8px);
    box-shadow: -8px 0 0 0 var(--ocean-accent), 0 8px 24px rgba(0, 119, 182, 0.3);
    border-bottom-color: rgba(0, 217, 255, 0.4);
}


/* Chart Container Enhancement */

.chart-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 6px 16px rgba(0, 119, 182, 0.25));
    transition: filter 0.4s ease;
}

canvas:hover {
    filter: drop-shadow(0 10px 28px rgba(0, 119, 182, 0.4));
}


/* Button Enhancements */

.chart-filter-btn {
    padding: 0.3rem 0.75rem;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.16) 0%, rgba(0, 180, 216, 0.12) 100%);
    border: 1.5px solid rgba(100, 181, 246, 0.3);
    color: #b3d9ff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.chart-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.25), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-filter-btn:hover::before {
    left: 100%;
}

.chart-filter-btn:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.3) 0%, rgba(25, 118, 210, 0.25) 100%);
    border-color: rgba(0, 217, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 119, 182, 0.4);
    color: #e0f2ff;
}

.chart-filter-btn.active {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    border-color: #00d9ff;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 217, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}


/* News Card Enhancement */

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(0, 180, 216, 0.08) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--wave-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover::after {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.4), 0 0 0 1px rgba(0, 217, 255, 0.3);
}


/* Sentiment Bars Enhancement */

.sentiment-bar {
    height: 8px;
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

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


/* AI Insight Enhancement */

#aiInsightList li {
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

#aiInsightList li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--ocean-accent);
    font-weight: bold;
}

#aiInsightList li:hover {
    color: var(--ocean-accent);
    transform: translateX(4px);
}


/* Footer Enhancement */

.footer-enhanced {
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
}

.footer-wave { display: none !important; 
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(30, 136, 229, 0.25)'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    pointer-events: none;
    animation: waveFloat 6s ease-in-out infinite;
}

@keyframes waveFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

footer .glass {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.95) 30%, rgba(30, 41, 59, 0.92) 60%, rgba(51, 65, 85, 0.9) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(100, 181, 246, 0.4);
    /* box-shadow removed */, 0 -5px 25px rgba(30, 136, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

footer h3 {
    text-shadow: 0 2px 15px rgba(100, 181, 246, 0.8), 0 0 25px rgba(66, 165, 245, 0.6);
}

footer a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(66, 165, 245, 1), rgba(100, 181, 246, 1));
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer a:hover {
    color: var(--ocean-accent);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

footer .glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 -15px 60px rgba(30, 136, 229, 0.6), 0 -8px 35px rgba(66, 165, 245, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}


/* Loading States */

.loading-skeleton {
    background: linear-gradient(90deg, rgba(100, 181, 246, 0.1) 25%, rgba(0, 217, 255, 0.1) 50%, rgba(100, 181, 246, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* Accessibility Improvements */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* High Contrast Mode */

@media (prefers-contrast: high) {
    .glass {
        background: rgba(0, 30, 60, 0.9);
        border: 2px solid #00d9ff;
    }

    .card-title {
        color: #ffffff;
        text-shadow: 0 0 10px #00d9ff;
    }
}


/* Text Size Utilities */

.text-xs {
    font-size: 0.65rem;
}

.text-sm {
    font-size: 0.8rem;
}


/* Canvas Responsiveness */

canvas {
    max-height: 100% !important;
}


/* Ticker Styles */

.ticker-lg {
    font-size: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.15) 0%, rgba(0, 180, 216, 0.1) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.ticker-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, 0.1) 50%, transparent 100%);
    animation: tickerShine 3s linear infinite;
}


/* Category title and data transition */

.ticker-category-title span,
#priceTicker {
    transition: opacity 0.15s ease;
}

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

    100% {
        left: 200%;
    }
}


/* Swiper Slide Height */

.swiper-slide {
    height: auto;
}

.leaflet-tooltip.custom-tooltip {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.98) 0%, rgba(0, 77, 143, 0.95) 100%);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.6), 0 0 20px rgba(0, 217, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #e5e7eb;
    font-family: 'Poppins', sans-serif;
    min-width: 150px;
}

.leaflet-tooltip.custom-tooltip::before {
    border-top-color: rgba(0, 217, 255, 0.5);
}

.map-info {
    min-width: 200px;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.95) 0%, rgba(0, 77, 143, 0.9) 100%);
    border: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.5);
    backdrop-filter: blur(15px);
}


/* Map Legend Styles */

.map-legend {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.95) 0%, rgba(0, 77, 143, 0.9) 100%);
    padding: 16px 18px;
    font-size: 11px;
    color: #e5e7eb;
    border-radius: 12px;
    border: 2px solid rgba(0, 180, 216, 0.4);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.5), 0 0 20px rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(15px);
    min-width: 180px;
}

.map-legend b {
    color: #00d9ff;
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.map-legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 10px;
    opacity: 0.95;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-legend div {
    line-height: 20px;
    margin-bottom: 6px;
    font-weight: 500;
}


/* Marquee Animation */

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 80s linear infinite;
    color: var(--text-primary);
    font-weight: 500;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.animate-marquee:hover {
    animation-play-state: paused;
    color: var(--ocean-accent);
}

.animate-marquee span {
    /* No transition here — 'transition: all' was causing constant repaints during marquee */
}

.animate-marquee span:hover {
    color: var(--ocean-accent);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

/* Smooth fade for ticker category rotation */
#priceTicker,
#tickerCategory {
    transition: opacity 0.15s ease;
}


/* Responsive Map Container */

#mapIndonesia {
    box-shadow: inset 0 0 50px rgba(0, 119, 182, 0.2), 0 8px 32px rgba(0, 180, 216, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.2);
    height: 100%;
    min-height: 380px;
}


/* Leaflet Custom Styles */

.leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(0, 77, 143, 0.95) 100%);
    color: #e5e7eb;
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.6);
    backdrop-filter: blur(15px);
    padding: 8px;
}

.leaflet-popup-tip {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(0, 77, 143, 0.95) 100%);
    border: 2px solid rgba(0, 217, 255, 0.4);
    border-right: none;
    border-bottom: none;
}


/* Leaflet Container */

.leaflet-container {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.3) 0%, rgba(0, 77, 143, 0.2) 100%);
    border-radius: 12px;
}


/* Zoom Control Styling */

.leaflet-control-zoom a {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.9) 0%, rgba(0, 77, 143, 0.85) 100%) !important;
    color: #00d9ff !important;
    border: 1px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background: linear-gradient(135deg, rgba(0, 77, 143, 0.95) 0%, rgba(0, 119, 182, 0.9) 100%) !important;
    border-color: rgba(0, 217, 255, 0.6) !important;
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.6), 0 0 20px rgba(0, 217, 255, 0.4);
    transform: scale(1.05);
}

.leaflet-control-attribution {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 77, 143, 0.8) 100%) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    border-radius: 6px 0 0 0 !important;
    padding: 4px 8px !important;
    backdrop-filter: blur(10px);
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #00d9ff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.leaflet-control-attribution a:hover {
    color: #64b5f6 !important;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}


/* Polygon Hover Animation */

.leaflet-interactive:hover {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Province KIM Labels on Map */

.province-kim-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
    text-align: center;
}

.province-kim-label span {
    display: inline-block;
    background: rgba(0, 10, 30, 0.75);
    color: #00d9ff;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(0, 217, 255, 0.35);
    text-shadow: 0 0 4px rgba(0, 217, 255, 0.5);
    white-space: nowrap;
    line-height: 1.4;
}


/* Chart Container Optimization */

.card-lg canvas {
    width: 100% !important;
    height: auto !important;
}


/* Scrollbar Styling - Ocean Blue */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 30, 60, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0077b6 0%, #00b4d8 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 30, 60, 0.3);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00b4d8 0%, #00d9ff 100%);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}


/* Table Styling */

table {
    border-collapse: collapse;
}

table thead tr {
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.2) 0%, rgba(0, 180, 216, 0.15) 100%);
}

table thead th {
    color: var(--ocean-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

table tbody tr {
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(25, 118, 210, 0.1) 100%);
    transform: translateX(4px);
    box-shadow: -4px 0 0 0 var(--ocean-accent);
}

table tbody td {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Alert Box Animation */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-box {
    animation: slideInRight 0.5s ease-out;
}


/* Pulse Animation for Status Indicator */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* Fullscreen Button Hover Effect */

#toggleFullscreen {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

#toggleFullscreen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#toggleFullscreen:hover::before {
    width: 300px;
    height: 300px;
}

#toggleFullscreen:hover {
    transform: scale(1.05);
    color: var(--ocean-accent);
    border-color: var(--ocean-accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

#toggleFullscreen i {
    position: relative;
    z-index: 1;
}


/* Grid Gap Responsive */

@media (max-width: 1024px) {
    .grid {
        gap: 1rem;
    }

    .cc-title {
        font-size: 1.5rem;
    }

    .cc-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {

    .grid-cols-12>div,
    .grid-cols-12>a {
        grid-column: span 12 !important;
        grid-row: span 1 !important;
    }

    /* Reset negative margins that cause overlap when cards stack */
    .overlap-card {
        margin-top: 0 !important;
        min-height: 260px !important;
    }

    /* Constrain map height on mobile */
    .map-card {
        min-height: 300px !important;
        max-height: 340px !important;
    }

    #mapIndonesia {
        min-height: 280px;
        max-height: none;
    }

    .ticker-lg {
        font-size: 0.875rem;
    }

    .text-xs {
        font-size: 0.6rem;
    }
}


/* Print Styles */

@media print {
    body {
        background: white;
        color: black;
    }

    .glass {
        background: white;
        border: 1px solid #ccc;
    }

    #toggleFullscreen {
        display: none;
    }

    footer {
        display: block;
    }
}


/* Loading Animation */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Tooltip Custom Styles */

.tooltip {
    position: absolute;
    background: rgba(2, 6, 23, 0.95);
    color: #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 1000;
}


/* Status Badge Styles */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: #22c55e;
    color: white;
}

.status-badge.warning {
    background: #eab308;
    color: white;
}

.status-badge.danger {
    background: #ef4444;
    color: white;
}


/* Progress Bar Animation */

.progress-bar {
    transition: width 0.6s ease;
}


/* Card Hover Effect */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Gradient Text */

.gradient-text {
    background: linear-gradient(135deg, #64b5f6 0%, #00d9ff 50%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Chart Legend Custom */

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}


/* Wave Decoration */

.wave-decoration {
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,180,216,0.1)'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.5;
}


/* Floating Animation */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}


/* Ripple Effect */

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:hover::after {
    width: 500px;
    height: 500px;
}


/* Icon Glow Effect */

.icon-glow {
    filter: drop-shadow(0 0 8px currentColor);
    transition: all 0.3s ease;
}

.icon-glow:hover {
    filter: drop-shadow(0 0 15px currentColor);
    transform: scale(1.1) rotate(5deg);
}


/* Shimmer Effect */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, 0.2) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}


/* Bubble Background Effect */

.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.3), rgba(0, 180, 216, 0.1));
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }

    50% {
        transform: translateX(100px);
    }

    100% {
        bottom: 110vh;
        transform: translateX(-100px);
    }
}


/* Data Visualization Enhancements */

canvas {
    filter: drop-shadow(0 4px 12px rgba(0, 119, 182, 0.3));
}

.sentiment-positive {
    background: linear-gradient(90deg, #00d9ff 0%, #0077b6 100%);
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
}

.sentiment-neutral {
    background: linear-gradient(90deg, #64b5f6 0%, #42a5f5 100%);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.4);
}

.sentiment-negative {
    background: linear-gradient(90deg, #1976d2 0%, #0a4d8f 100%);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}


/* PROFESSIONAL RECENT NEWS CARD STYLES */

.news-item-card {
    display: flex;
    flex-direction: column;
    padding: 1.1rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.12) 0%, rgba(0, 180, 216, 0.08) 100%);
    border: 1.5px solid rgba(100, 181, 246, 0.18);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: newsSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes newsSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d9ff 0%, #0077b6 100%);
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-item-card:hover {
    border-color: rgba(0, 217, 255, 0.45);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.18) 0%, rgba(0, 180, 216, 0.15) 100%);
    transform: translateY(-6px) translateX(4px);
    box-shadow: 0 16px 40px rgba(0, 119, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.news-item-card:hover::before {
    width: 8px;
}

.news-item-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1));
    transition: width 0.4s ease;
    pointer-events: none;
}

.news-item-card:hover .news-item-overlay {
    width: 100%;
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.news-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
    flex-shrink: 0;
}

.date-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.date-month {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.news-source-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1.2px solid rgba(34, 197, 94, 0.4);
    border-radius: 22px;
    font-size: 0.72rem;
    font-weight: 750;
    color: #86efac;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    white-space: nowrap;
    margin-left: auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.news-item-card:hover .news-source-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(16, 185, 129, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.news-item-content {
    flex: 1;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.news-title {
    font-size: 0.9rem;
    font-weight: 750;
    color: #00d9ff;
    line-height: 1.45;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s ease;
    text-shadow: 0 1px 4px rgba(0, 217, 255, 0.2);
}

.news-item-card:hover .news-title {
    color: #64b5f6;
    text-shadow: 0 2px 8px rgba(100, 181, 246, 0.4);
}

.news-summary {
    font-size: 0.82rem;
    color: #a0aec0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.4s ease;
    font-weight: 400;
}

.news-item-card:hover .news-summary {
    color: #cbd5e1;
}

.news-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(100, 181, 246, 0.1);
}

.news-category-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(96, 165, 250, 0.15) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: capitalize;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.01em;
}

.news-item-card:hover .news-category-tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(96, 165, 250, 0.3) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    transform: scale(1.05);
}

.news-time-ago {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.news-item-card:hover .news-time-ago {
    color: #9ca3af;
}


/* News Container Scrollbar */

#recentNewsContainer {
    scroll-behavior: smooth;
}

#recentNewsContainer::-webkit-scrollbar {
    width: 7px;
}

#recentNewsContainer::-webkit-scrollbar-track {
    background: rgba(0, 30, 60, 0.3);
    border-radius: 10px;
}

#recentNewsContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0077b6 0%, #00b4d8 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

#recentNewsContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00b4d8 0%, #00d9ff 100%);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.8);
    width: 8px;
}


/* Responsive News Card */

@media (max-width: 768px) {
    .news-item-card {
        padding: 0.875rem;
        margin-bottom: 0.65rem;
    }

    .news-title {
        font-size: 0.8rem;
    }

    .news-summary {
        font-size: 0.75rem;
    }

    .news-source-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
}


/* ============================================
   PROFESSIONAL POLISH & FINISHING TOUCHES
   ============================================ */


/* Enhanced card container styling */

.card-lg {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-lg:hover {
    transform: translateY(-4px);
}


/* Smooth transitions for all interactive elements */

button,
input,
select,
textarea,
.chart-filter-btn,
table tbody tr,
.glass,
.news-item-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}


/* Enhanced text rendering for better quality */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* Professional shadow enhancements */

.glass {
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(25, 118, 210, 0.08);
}


/* Enhanced focus states for accessibility */

button:focus,
input:focus,
select:focus {
    outline: 2px solid rgba(0, 217, 255, 0.4);
    outline-offset: 2px;
}


/* Smooth loader animation */

@keyframes smoothPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.pulse-smooth {
    animation: smoothPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* Card entrance animation enhancement */

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-entrance {
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Professional hover text shadow */

h1:hover,
h2:hover,
h3:hover,
h4:hover,
h5:hover,
h6:hover {
    text-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}


/* Data visualization enhancement */

canvas {
    image-rendering: crisp-edges;
}


/* Smooth scrolling behavior */

html {
    scroll-behavior: smooth;
}


/* Professional link styling */

a {
    transition: all 0.2s ease;
}


/* Enhanced list styling */

ul,
ol {
    list-style-position: inside;
}

li {
    transition: transform 0.3s ease, color 0.3s ease;
}

li:hover {
    transform: translateX(4px);
    color: #00d9ff;
}


/* Professional table enhancements */

table {
    border-collapse: collapse;
}

table th {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.15) 0%, rgba(0, 180, 216, 0.1) 100%);
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    color: #00d9ff;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
    text-shadow: 0 1px 4px rgba(0, 217, 255, 0.2);
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(100, 181, 246, 0.12);
}


/* Icon polish */

i.fa-solid,
i.fa-regular,
i.fa-brands {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Badge styling */

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(25, 118, 210, 0.1) 100%);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00d9ff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.badge:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.3) 0%, rgba(25, 118, 210, 0.2) 100%);
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}


/* Scorecard Layout Enhancements */

#consumptionScorecard,
#eximScorecard {
    overflow: visible;
}

#consumptionScorecard .grid,
#eximScorecard .grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* Responsive Grid for Scorecard */

@media (max-width: 1024px) {

    #consumptionScorecard .grid,
    #eximScorecard .grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {

    #consumptionScorecard .grid,
    #eximScorecard .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    #consumptionScorecard .grid>div,
    #eximScorecard .grid>div {
        font-size: 0.75rem;
    }

    #consumptionScorecard .grid>div .text-xs,
    #eximScorecard .grid>div .text-xs {
        font-size: 0.65rem;
    }

    #consumptionScorecard .grid>div .text-sm,
    #eximScorecard .grid>div .text-sm {
        font-size: 0.8rem;
    }
}


/* Fullscreen Enhancement */

body.fullscreen-mode {
    overflow-y: auto;
}

body.fullscreen-mode section {
    max-height: none;
    overflow-y: auto;
}

body.fullscreen-mode .grid {
    overflow: visible;
}

body.fullscreen-mode .card-lg {
    min-height: auto;
    max-height: none;
}


/* Ensure cards don't get clipped in fullscreen */

body.fullscreen-mode {
    padding-bottom: 2rem;
}


/* ============================================
   PREDIKSI PASAR JANGKA PENDEK CARD STYLING
   ============================================ */

.prediksi-pasar-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(25, 118, 210, 0.12) 50%, rgba(6, 182, 212, 0.08) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15), 0 0 60px rgba(6, 182, 212, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prediksi-pasar-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4), rgba(139, 92, 246, 0.4));
    background-size: 400% 400%;
    border-radius: 0.75rem;
    z-index: -1;
    opacity: 0;
    animation: gradientFlow 8s ease infinite;
    transition: opacity 0.5s ease;
}

.prediksi-pasar-card:hover::before {
    opacity: 0.3;
}

.prediksi-pasar-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.25), 0 0 80px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


/* Filter Button Enhanced for Prediksi Card */

.prediksi-pasar-card .chart-filter-btn {
    font-size: 0.625rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prediksi-pasar-card .chart-filter-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.prediksi-pasar-card .chart-filter-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(6, 182, 212, 0.8) 100%);
    border-color: rgba(139, 92, 246, 1);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


/* Trend Indicator Animation */

#trendIndicator {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.1);
    }

    50% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    }
}


/* Trend Status Styles */

#trendStatus.trend-up {
    color: #10b981;
}

#trendStatus.trend-down {
    color: #ef4444;
}

#trendStatus.trend-stable {
    color: #f59e0b;
}


/* Chart Container Glow */

.prediksi-pasar-card canvas {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.1));
}


/* Prediksi Filter Buttons - New Style */

.prediksi-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6rem;
    padding: 0.35rem 0.6rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    white-space: nowrap;
}

.prediksi-filter-btn i {
    font-size: 0.55rem;
    opacity: 0.8;
}

.prediksi-filter-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
}

.prediksi-filter-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(6, 182, 212, 0.85) 100%);
    border-color: rgba(139, 92, 246, 1);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.prediksi-filter-btn.active i {
    opacity: 1;
}


/* Chart Loading Overlay */

#chartLoading {
    backdrop-filter: blur(4px);
    z-index: 10;
}

#chartLoading.hidden {
    display: none !important;
}
