@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 {
    --ocean-deep: #001e3c;
    --ocean-primary: #0a4d8f;
    --ocean-blue: #1976d2;
    --ocean-light: #42a5f5;
    --ocean-sky: #64b5f6;
    --ocean-cyan: #00b4d8;
    --ocean-teal: #0077b6;
    --ocean-accent: #00d9ff;
    --wave-gradient: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #0096c7 100%);
    --glass-bg: rgba(25, 118, 210, 0.08);
    --glass-border: rgba(100, 181, 246, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #b3d9ff;
    --shadow-glow: 0 8px 32px rgba(0, 180, 216, 0.25);
    --shadow-strong: 0 20px 60px rgba(0, 119, 182, 0.35);
}


/* Base Styles */

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #001e3c 0%, #002a4d 25%, #003d5c 50%, #004a6e 75%, #005782 100%);
    position: relative;
    overflow-x: hidden;
}


/* Animated Ocean Wave Background */

body::before {
    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;
}

body::after {
    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;
}

@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 {
    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.95) 0%, /* Dark slate */
    rgba(15, 23, 42, 0.90) 30%, /* Slate 900 */
    rgba(30, 41, 59, 0.88) 60%, /* Slate 800 */
    rgba(51, 65, 85, 0.85) 100%/* Slate 700 */
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(100, 181, 246, 0.35);
    box-shadow: 0 -10px 50px rgba(25, 118, 210, 0.4), 0 -5px 25px rgba(30, 136, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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.12) 0%, rgba(0, 180, 216, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(100, 181, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(25, 118, 210, 0.05);
    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.05) 50%, transparent 100%);
    transition: left 0.7s ease;
}

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

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


/* 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: 1.5rem !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.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: 1.5rem;
}

@media (max-width: 1024px) {
    .grid {
        gap: 1rem;
    }
    .card-lg {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .grid-cols-12>div {
        grid-column: span 12 !important;
    }
    .card-lg {
        min-height: 200px;
    }
}


/* Card Animation */

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

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

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

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

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

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

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

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

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

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

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

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


/* 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.95rem;
    font-weight: 600;
    color: var(--ocean-accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-bottom: 1rem;
}

.card-title i {
    font-size: 1rem;
    filter: drop-shadow(0 0 8px currentColor);
    margin-right: 0.5rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--wave-gradient);
    border-radius: 1px;
}


/* 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.15);
    transition: all 0.3s ease;
}

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


/* 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 4px 12px rgba(0, 119, 182, 0.2));
}


/* Button Enhancements */

.chart-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.15) 0%, rgba(0, 180, 216, 0.1) 100%);
    border: 1px solid rgba(100, 181, 246, 0.25);
    color: #b3d9ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.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.2), transparent);
    transition: left 0.5s ease;
}

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

.chart-filter-btn:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.25) 0%, rgba(25, 118, 210, 0.2) 100%);
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.3);
}

.chart-filter-btn.active {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    border-color: #00d9ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}


/* 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 {
    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: 0 -10px 50px rgba(25, 118, 210, 0.5), 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;
}

@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: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 40s linear infinite;
    color: var(--text-primary);
    font-weight: 500;
}

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

.animate-marquee span {
    transition: all 0.3s ease;
}

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


/* 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);
}


/* 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);
}


/* 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-column: span 12 !important;
    }
    .ticker-lg {
        font-size: 0.875rem;
    }
    .text-xs {
        font-size: 0.6rem;
    }
    #mapIndonesia {
        min-height: 300px;
    }
}


/* 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);
}