﻿:root {
    --primary-blue: #3a8abf;
    --dark-blue: #1a3a5c;
    --light-blue: #7ecfff;
    --border-color: #2a5a8c;
    --text-muted: #6a8fa8;
    --background-light: #112233;
}

html {
    position: relative;
    min-height: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 10pt;
    background: #0d1b2a;
    color: #e0e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #1a2d3d;
    flex: 1;
    height: 100%;
}

header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    line-height: 40px;
    background: #112233;
    padding: 10px 16px;
    border-bottom: 2px solid #1a3a5c;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px 12px;
    z-index: 999999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #7ecfff;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

header span {
    margin-left: 30px;
    font-size: 0.82rem;
    color: #6a8fa8;
}


header a {
    margin-right: 12px;
}

a {
    text-decoration: none;
/*    font-weight: 600;*/
/*    font-variant:small-caps;*/
    color: #ecf3fbff;
    font-size: 1.02em;
    
}
a:is(:hover) {
    text-decoration-line: underline;
    text-decoration-style: wavy;
}

/* AIS Status indicator */
#ais-status {
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 999999999;
    -webkit-tap-highlight-color: transparent;
}

#ais-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
    animation: pulse 1.6s infinite;
}

#ais-status .dot.disconnected {
    background: #e74c3c;
    box-shadow: 0 0 6px #e74c3c;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #112233, 0 0 0 0.25rem #3a8abf;
}



/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #112233;
}

::-webkit-scrollbar-thumb {
    background: #3a6a9c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a7a9c;
}
