body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Navigation Bar Styles */
.nav-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-icon {
    font-size: 1.8rem;
}

.nav-title h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.nav-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
}

.container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.battle-marker {
    
}

.controls {
    padding: 1rem;
    background-color: #34495e;
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px
    );
    background-size: 100% 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#map {
    flex-grow: 1;
    height: calc(100vh - 180px);
}

label {
    margin-right: 1rem;
    font-weight: bold;
}

.timeline-container {
    position: relative;
    padding: 15px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    border-radius: 8px;
}

#timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #bdc3c7;
    font-size: 0.85em;
    padding: 0 10px;
}

#timeline-labels div {
    position: relative;
    padding-bottom: 5px;
}

#timeline-labels div::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 5px;
    background-color: #bdc3c7;
}

#current-date {
    text-align: center;
    font-size: 1.2em;
    margin: 5px 0 15px 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Customize the range input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: transparent;
    position: relative;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    margin-top: -8px; /* Centers the thumb on the track */
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #2c3e50;
    border-radius: 2px;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #2c3e50;
    border-radius: 2px;
    cursor: pointer;
}

/* Add hover effect to the slider thumb */
input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #2980b9;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Add active state for the thumb */
input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #2980b9;
}

input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.2);
    background: #2980b9;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-button {
    background: #3498db;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-button:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.control-button:active {
    transform: scale(0.95);
}

.play-icon {
    font-size: 14px;
    margin-left: 2px;
}

.scrubber-container {
    flex-grow: 1;
}

/* Tooltip styles */
.timeline-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 1000;
}

/* Add these to your existing styles */
.battle-popup {
    text-align: center;
    padding: 5px;
}

.tactical-view-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.tactical-view-btn:hover {
    background: #2980b9;
}

.return-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.return-btn:hover {
    background: #c0392b;
}

.unit-popup {
    min-width: 200px;
}

.unit-popup h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

/* Add to your existing styles */
.strategic-view-button {
    background: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: bold;
    display: block;
}

.strategic-view-button:hover {
    background: #f4f4f4;
}

.nato-icon {
    background: none;
    border: none;
}

.nato-icon svg {
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}