/* PionMarine Premium Light Theme */

:root {
    --primary: #015196;
    --secondary: #1e293b;
    --accent: #EF4444;
    --cyan: #44c0ec;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --border-soft: #e2e8f0;
}

body {
    background-color: var(--bg-main);
    color: #334155;
}

/* Nav Item Styles */
.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    color: #64748b;
    font-weight: 600;
    position: relative;
}

.nav-item:hover {
    color: var(--primary);
    background-color: #f1f5f9;
}

.nav-item.active {
    background-color: #e0f2fe;
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 25%;
    bottom: 25%;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(1, 81, 150, 0.3);
}

/* Glassmorphism Panels (Light Mode) */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.glass-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    box-shadow: 0 10px 25px rgba(1, 81, 150, 0.08);
    border-color: rgba(1, 81, 150, 0.1);
    transform: translateY(-4px);
}

/* Input Styles */
.marine-input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #1e293b;
}

.marine-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(1, 81, 150, 0.1);
}

.marine-input::placeholder {
    color: #94a3b8;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Heatmap Styles (Light Mode) */
#map {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
}

.leaflet-container {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border-bottom: 1px solid #f1f5f9 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}

.leaflet-bar a:hover {
    background-color: #f8fafc !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 1.25rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-tip-container {
    display: none;
}

/* Custom Div Icon for Vessels */
.vessel-icon-inner {
    width: 28px;
    height: 28px;
    border: 2px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.vessel-icon-inner i {
    transform: rotate(45deg);
    font-size: 12px;
    color: white;
}

.vessel-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: vessel-pulse-anim 2s infinite;
    pointer-events: none;
}

@keyframes vessel-pulse-anim {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Hazard Zone (Polygon) Animation */
.hazard-zone-anim {
    animation: hazard-blink 3s infinite;
}

@keyframes hazard-blink {
    0% { fill-opacity: 0.1; }
    50% { fill-opacity: 0.3; }
    100% { fill-opacity: 0.1; }
}

/* Utility */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
