* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tahoma', 'Verdana', 'Trebuchet MS', 'Arial', sans-serif;
    background-color: #0d1b2a;
    color: #000000;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tickers (Top News & Airport Clocks - Y2K Style) */
.ticker-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: bold;
    border-bottom: 2px outset #ffffff;
    z-index: 1001;
}

.news-ticker-wrapper {
    background: #000055;
    color: #ffff00;
    height: 24px;
    font-family: 'Courier New', monospace;
}

.airport-ticker-wrapper {
    background: #001020;
    color: #00ffcc;
    height: 22px;
    font-family: 'Courier New', monospace;
}

.ticker-label {
    padding: 0 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-label {
    background: #cc0000;
    color: #ffffff;
    border-right: 2px solid #ffffff;
    text-shadow: 1px 1px 0px #000;
}

.airport-label {
    background: #004080;
    color: #ffffff;
    border-right: 2px solid #ffffff;
    text-shadow: 1px 1px 0px #000;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Continuous Loop Tickers */
.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}

.scrolling-news-track {
    animation: ticker-seamless 200s linear infinite; /* User set 200s duration */
}

.scrolling-airport-track {
    animation: ticker-seamless 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-seamless {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-block {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Header - Early 2000s Web Portal Style */
header {
    background: linear-gradient(180deg, #0a246a 0%, #0a52be 50%, #002255 100%);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px ridge #a6caf0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

header h1 {
    font-family: 'Trebuchet MS', 'Tahoma', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffff00;
    text-shadow: 2px 2px 0px #000000, 0 0 6px #ff8800;
    letter-spacing: 0.02em;
}

header p {
    font-size: 0.72rem;
    color: #d0e4ff;
    font-style: italic;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gps-btn {
    background: linear-gradient(180deg, #ff9900 0%, #cc5500 100%);
    color: #ffffff;
    border: 2px solid;
    border-color: #ffdd99 #883300 #883300 #ffdd99;
    padding: 6px 14px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.8rem;
    font-family: 'Tahoma', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
    box-shadow: 2px 2px 0px #000000;
    text-shadow: 1px 1px 0px #000000;
}

.gps-btn:hover {
    background: linear-gradient(180deg, #ffaa11 0%, #dd6600 100%);
}

.gps-btn:active {
    border-color: #883300 #ffdd99 #ffdd99 #883300;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.gps-btn.disabled {
    background: #808080;
    border-color: #c0c0c0 #404040 #404040 #c0c0c0;
    cursor: not-allowed;
    opacity: 0.8;
}

.gps-btn.pulse {
    animation: Y2K-pulse-glow 1.5s infinite;
}

@keyframes Y2K-pulse-glow {
    0% { outline: 2px solid rgba(255, 204, 0, 0.9); }
    50% { outline: 2px solid rgba(255, 204, 0, 0.2); }
    100% { outline: 2px solid rgba(255, 204, 0, 0.9); }
}

.header-stats {
    font-size: 0.78rem;
    background: #00102b;
    padding: 5px 10px;
    border: 2px inset #ffffff;
    color: #00ff66;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* HOT Rant Banner - Y2K Style */
.hot-rant-bar {
    background: linear-gradient(90deg, #990000 0%, #ff3300 50%, #990000 100%);
    color: #ffff00;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 2px ridge #ffcc00;
    z-index: 1000;
    font-weight: bold;
}

.hot-rant-bar.hidden {
    display: none;
}

.hot-badge {
    background: #ffff00;
    color: #cc0000;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    border: 1px solid #000000;
    box-shadow: 1px 1px 0px #000;
}

.hot-text {
    flex: 1;
    margin: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    text-shadow: 1px 1px 0px #000000;
}

.hot-view-btn {
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    color: #cc0000;
    border: 2px outset #ffffff;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 0.72rem;
    cursor: pointer;
    box-shadow: 1px 1px 0px #000;
}

.hot-view-btn:hover {
    background: #ffffff;
}

.hot-view-btn:active {
    border-style: inset;
}

.main-container {
    flex: 1;
    position: relative;
    display: flex;
}

#map {
    width: 100%;
    height: 100%;
    background: #081226;
}

/* Window Style Panels & Modals (Windows XP / Y2K Style) */
.panel {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 390px;
    max-height: calc(100% - 24px);
    background: #ece9d8;
    color: #000000;
    border: 3px outset #ffffff;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-radius: 0;
}

.panel.hidden {
    transform: translateX(430px);
    opacity: 0;
    pointer-events: none;
}

.window-titlebar {
    background: linear-gradient(90deg, #0a246a 0%, #3a93d8 100%);
    color: #ffffff;
    padding: 5px 8px;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #001133;
    user-select: none;
}

.titlebar-text {
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 0px #000000;
}

.close-btn {
    background: linear-gradient(180deg, #e1654c 0%, #c0280f 100%);
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    line-height: 14px;
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 1px 1px 0px #000000;
    padding: 0;
}

.close-btn:hover {
    background: #ff0000;
}

.close-btn:active {
    border-style: inset;
}

.window-body {
    padding: 12px;
    background: #ece9d8;
    color: #000000;
}

.badge {
    background: #0a246a;
    color: #ffff00;
    font-size: 0.7rem;
    padding: 1px 6px;
    font-weight: bold;
    border: 1px solid #000000;
    box-shadow: 1px 1px 0px #fff;
}

.panel-section {
    margin-bottom: 14px;
}

.panel-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0a246a;
    margin-bottom: 6px;
    font-weight: bold;
    border-bottom: 1px solid #b0b0b0;
    padding-bottom: 2px;
}

.active-message-box {
    background: #ffffff;
    padding: 10px 12px;
    border: 2px inset #d4d0c8;
    border-left: 5px solid #008000;
    margin-bottom: 12px;
}

blockquote {
    font-size: 0.88rem;
    line-height: 1.4;
    font-style: normal;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
}

.translated-box {
    background: #ffffdd;
    border: 2px inset #d4d0c8;
    padding: 8px;
    font-size: 0.82rem;
    color: #000080;
    margin-bottom: 8px;
    font-weight: bold;
}

.translated-box.hidden {
    display: none;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #555555;
    margin-bottom: 8px;
    font-weight: bold;
}

.top-actions-bar {
    display: flex;
    gap: 6px;
}

.top-actions-bar.hidden {
    display: none;
}

.vote-btn {
    background: linear-gradient(180deg, #ffffff 0%, #d4d0c8 100%);
    border: 2px outset #ffffff;
    color: #000080;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 1px 1px 0px #000000;
    padding: 3px 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.vote-btn:hover {
    background: #ffffff;
}

.vote-btn:active {
    border-style: inset;
}

.action-btn {
    background: linear-gradient(180deg, #ffffff 0%, #d4d0c8 100%);
    color: #000000;
    border: 2px outset #ffffff;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 1px 1px 0px #000000;
    padding: 3px 8px;
}

.action-btn:hover {
    background: #ffffff;
}

.action-btn:active {
    border-style: inset;
}

.report-btn:hover {
    background: #cc0000;
    color: #ffffff;
}

.candidate-item {
    background: #ffffff;
    padding: 8px 10px;
    border: 2px inset #d4d0c8;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.candidate-text {
    font-size: 0.82rem;
    color: #000000;
    font-weight: normal;
}

.candidate-text p {
    font-weight: bold;
}

.candidate-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.panel-footer-note {
    font-size: 0.72rem;
    color: #555555;
    border-top: 1px solid #b0b0b0;
    padding-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Modals - Windows XP Dialog Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.gps-modal-content {
    background: #ece9d8;
    border: 3px outset #ffffff;
    width: 460px;
    max-width: 92%;
    position: relative;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.8);
    border-radius: 0;
}

.legal-modal-content {
    width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.legal-text-body {
    background: #ffffff;
    border: 2px inset #d4d0c8;
    padding: 12px;
    overflow-y: auto;
    font-size: 0.78rem;
    color: #000000;
    line-height: 1.5;
    flex: 1;
    max-height: 60vh;
    font-family: 'Tahoma', 'Verdana', sans-serif;
}

.legal-text-body pre {
    white-space: pre-wrap;
    font-family: inherit;
}

.modal-subtext {
    font-size: 0.78rem;
    color: #333333;
    margin-bottom: 10px;
    font-weight: bold;
}

.gps-status-banner {
    background: #ffffff;
    border: 2px inset #d4d0c8;
    padding: 8px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.gps-status-banner.success {
    border-color: #008000;
    color: #006600;
}

.anti-bot-box {
    background: #ffffff;
    border: 2px inset #d4d0c8;
    padding: 8px;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    font-size: 0.78rem;
    color: #000000;
    margin-bottom: 4px;
    font-weight: bold;
}

input[type="text"], input[type="number"], textarea {
    width: 100%;
    background: #ffffff;
    border: 2px inset #808080;
    color: #000000;
    padding: 6px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 0.85rem;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
    outline: 1px solid #0a246a;
}

.word-counter {
    font-size: 0.72rem;
    text-align: right;
    color: #000080;
    margin-top: 3px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.word-counter.exceeded {
    color: #cc0000;
}

.btn.primary {
    width: 100%;
    background: linear-gradient(180deg, #0a52be 0%, #0a246a 100%);
    color: #ffffff;
    border: 2px outset #a6caf0;
    padding: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    font-family: 'Tahoma', sans-serif;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    text-shadow: 1px 1px 0px #000000;
}

.btn.primary:hover {
    background: linear-gradient(180deg, #1062de 0%, #0a328a 100%);
}

.btn.primary:active {
    border-style: inset;
}

.btn.danger {
    width: 100%;
    background: linear-gradient(180deg, #e1654c 0%, #cc0000 100%);
    color: #ffffff;
    border: 2px outset #ffffff;
    padding: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    font-family: 'Tahoma', sans-serif;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    text-shadow: 1px 1px 0px #000000;
}

.btn.danger:hover {
    background: #ff0000;
}

.btn.danger:active {
    border-style: inset;
}

.form-status {
    font-size: 0.78rem;
    margin-top: 8px;
    text-align: center;
    font-weight: bold;
}

.form-status.success { color: #008000; }
.form-status.error { color: #cc0000; }

/* Footer - Early 2000s Style */
footer {
    background: #d4d0c8;
    border-top: 3px groove #ffffff;
    padding: 6px 12px;
    font-size: 0.72rem;
    color: #333333;
    text-align: center;
    z-index: 1000;
    font-family: 'Tahoma', sans-serif;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: bold;
}

.footer-links a {
    color: #0000cc;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #ff0000;
}

.footer-divider {
    color: #808080;
}

.footer-subtext {
    font-size: 0.68rem;
    color: #666666;
    margin-top: 3px;
    font-style: italic;
}


.lang-dropdown {
    background: #00102b;
    color: #ffff00;
    border: 2px inset #ffffff;
    padding: 5px 8px;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-weight: bold;
    font-size: 0.78rem;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    box-shadow: 1px 1px 0px #000000;
}

.lang-dropdown option {
    background: #00102b;
    color: #ffffff;
}


/* Clean Unobtrusive Corner Map Ad Box */
.map-corner-ad-box {
    position: absolute;
    bottom: 26px;
    left: 12px;
    z-index: 990;
    width: 212px;
    background: #ece9d8;
    border: 2px inset #716f64;
    padding: 6px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.map-corner-ad-box .ad-label {
    font-size: 0.65rem;
    color: #666666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-weight: bold;
}
