/* Police Dispatch Game - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #fff;
    overflow-x: hidden;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 1.1em;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tab Styles */
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1e3c72;
    border-bottom: 2px solid #1e3c72;
}

.tab-btn:hover {
    color: #1e3c72;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Styles */
.auth-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e3c72;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #2a5298;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-dispatch {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-dispatch:hover {
    background-color: #c82333;
}

/* Demo Info */
.demo-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.demo-info h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.demo-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* Dashboard Styles */
.dashboard-page {
    background-color: #0a0a0a;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    color: #fff;
    overflow-x: hidden;
}

.dashboard-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #00ff00;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,255,0,0.2);
    border-bottom: 2px solid #00ff00;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 1.5em;
    font-weight: 600;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank {
    background-color: rgba(0,255,0,0.2);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #00ff00;
}

.username {
    font-weight: 500;
    color: #00ff00;
}

.credits {
    background-color: rgba(255,215,0,0.2);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 600;
    border: 1px solid #ffd700;
}

/* Dashboard Container */
.dashboard-container {
    padding: 15px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    min-height: calc(100vh - 80px);
    display: block;
    width: 100%;
}

/* Status Bar */
.status-bar {
    display: flex !important;
    justify-content: space-around;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.status-item {
    text-align: center;
    color: #00ff00;
    position: relative;
}

.status-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #00ff00;
    opacity: 0.5;
}

.status-item:last-child::after {
    display: none;
}

.status-item strong {
    display: block;
    font-size: 11px;
    margin-bottom: 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-item span {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

/* Main Panels Layout */
.main-panels {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
    width: 100%;
}

.left-column, .right-column {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.center-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Panel Styling */
.panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00ff00;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.15);
    transition: all 0.3s ease;
    min-height: 200px;
    visibility: visible;
    opacity: 1;
}

.panel:hover {
    box-shadow: 0 12px 35px rgba(0, 255, 0, 0.25);
    transform: translateY(-2px);
}

.panel-header {
    background: linear-gradient(135deg, #2a2a4e 0%, #1e3c72 100%);
    padding: 15px 18px;
    border-bottom: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff00, #00ccff, #00ff00);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.panel-header h3 {
    margin: 0;
    color: #00ff00;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px #00ff00;
    font-weight: bold;
}

.status-indicator {
    color: #00ff00;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

.panel-content {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
}

/* Call Queue */
.call-queue {
    max-height: 300px;
    overflow-y: auto;
}

.emergency-call {
    background: linear-gradient(135deg, #2a2a4e 0%, #1e3c72 100%);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.emergency-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #00ff00;
}

.emergency-call.high-priority {
    border-color: #ff4444;
    background: linear-gradient(135deg, #4a2a2a 0%, #3c1e1e 100%);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    animation: urgentBlink 2s ease-in-out infinite;
}

.emergency-call.high-priority::before {
    background: #ff4444;
}

@keyframes urgentBlink {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 68, 68, 0.6); }
}

.emergency-call:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.call-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.call-code {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #00ff00;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
    border: 1px solid #00ff00;
}

.call-priority {
    background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid #ff6666;
}

.call-type {
    font-weight: bold;
    color: #fff;
    margin: 10px 0 8px 0;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.call-info {
    font-size: 13px;
    color: #ccc;
    margin: 4px 0;
    padding-left: 5px;
    border-left: 2px solid #00ff00;
    opacity: 0.9;
}

.accept-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-top: 12px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.accept-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Radio Log */
.radio-log {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.radio-message {
    color: #00ff00;
    margin: 5px 0;
    line-height: 1.5;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #00ff00;
    transition: all 0.2s ease;
}

.radio-message:hover {
    background: rgba(0, 255, 0, 0.1);
    transform: translateX(3px);
}

/* Map Panel */
.map-panel {
    flex: 1;
}

.map-container {
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ff00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 10px #00ff00;
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 0, 0.03) 50%, transparent 51%);
    animation: mapScan 4s linear infinite;
}

@keyframes mapScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Units List */
.units-list {
    max-height: 300px;
    overflow-y: auto;
}

.unit-item {
    background: linear-gradient(135deg, #2a2a4e 0%, #1e3c72 100%);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #00ff00;
}

.unit-item.available {
    border-color: #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.2);
}

.unit-item.available::before {
    background: #28a745;
}

.unit-item.dispatched {
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.unit-item.dispatched::before {
    background: #ffc107;
}

.unit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

.unit-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.unit-status {
    margin-right: 10px;
    font-size: 16px;
}

.unit-name {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.unit-details {
    font-size: 12px;
    color: #ccc;
    opacity: 0.9;
}

.unit-details div {
    margin: 3px 0;
    padding-left: 5px;
    border-left: 2px solid rgba(0, 255, 0, 0.3);
}

/* Resource List */
.resource-list {
    margin-bottom: 20px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #2a2a4e 0%, #1e3c72 100%);
    border: 1px solid #00ff00;
    border-radius: 6px;
    color: #ccc;
    font-size: 13px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0, 255, 0, 0.2);
}

.resource-item span:first-child {
    font-weight: 500;
}

.resource-item span:last-child {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

/* Button Styling */
.btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-small {
    padding: 8px 12px;
    font-size: 11px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-panels {
        grid-template-columns: 280px 1fr 280px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-panels {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-container {
        padding: 10px;
    }
}

.status-label {
    color: #888;
    font-size: 11px;
    font-weight: bold;
}

.status-value {
    color: #00ff00;
    font-weight: bold;
    font-size: 12px;
}

.workstation-grid {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    grid-template-rows: 1fr 200px;
    gap: 10px;
    height: 100%;
}

.panel {
    background: #1a1a2e;
    border: 2px solid #333;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,255,0,0.1);
}

.panel-header {
    background: #0f0f23;
    border-bottom: 1px solid #00ff00;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    color: #00ff00;
    font-size: 12px;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.panel-controls, .map-controls, .radio-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.map-status, .radio-status {
    color: #00ff00;
    font-size: 10px;
    font-weight: bold;
}

/* Call Intake Panel */
.call-intake-panel {
    grid-row: 1 / 2;
}

.call-queue {
    padding: 10px;
    height: calc(100% - 40px);
    overflow-y: auto;
}

.incoming-call {
    background: #2a2a4e;
    border: 1px solid #ff6b6b;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 8px;
    animation: callBlink 2s infinite;
}

.incoming-call.priority-high {
    border-color: #ff0000;
    background: #4a1a1a;
}

.call-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.call-id {
    color: #ffd700;
    font-weight: bold;
    font-size: 11px;
}

.call-code {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 11px;
}

.caller-info {
    color: #ccc;
    font-size: 10px;
    margin-bottom: 5px;
}

.call-description {
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

/* Map Panel */
.map-panel {
    grid-column: 2;
    grid-row: 1;
}

.map-container {
    flex: 1;
    position: relative;
    min-height: 0;
}

#city-map {
    height: 100% !important;
    width: 100% !important;
}

/* Units Panel */
.units-panel {
    grid-column: 3;
    grid-row: 1;
}

.units-list {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.unit-item {
    background: #2a2a4e;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 8px;
    margin-bottom: 6px;
}

.unit-item.available {
    border-color: #00ff00;
}

.unit-item.dispatched {
    border-color: #ffd700;
    background: #3a3a1e;
}

.unit-item.maintenance {
    border-color: #ff6b6b;
    background: #3a1e1e;
}

.unit-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.unit-id {
    color: #00ff00;
    font-weight: bold;
    font-size: 11px;
}

.unit-status {
    font-size: 10px;
    font-weight: bold;
}

.unit-status.available { color: #00ff00; }
.unit-status.dispatched { color: #ffd700; }
.unit-status.maintenance { color: #ff6b6b; }

.unit-details {
    color: #ccc;
    font-size: 10px;
}

/* Radio Panel */
.radio-panel {
    grid-column: 2;
    grid-row: 2;
}

.radio-log {
    padding: 8px;
    overflow-y: auto;
    background: #0a0a1a;
    flex: 1;
    min-height: 0;
}

.radio-message {
    margin: 2px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 2px 4px;
    border-left: 2px solid #333;
}

.radio-time {
    color: #666;
    margin-right: 8px;
}

.radio-content {
    color: #00ff00;
}

.type-emergency {
    border-left-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.type-emergency .radio-content {
    color: #ff4444;
    font-weight: bold;
}

.type-unit {
    border-left-color: #ffff00;
}

/* Resources Panel */
.resources-panel {
    grid-column: 3;
    grid-row: 2;
}

.resources-content {
    padding: 10px;
    flex: 1;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #333;
}

.resource-label {
    color: #888;
    font-size: 11px;
}

.resource-value {
    color: #00ff00;
    font-weight: bold;
    font-size: 11px;
}

/* Animations */
@keyframes callBlink {
    0%, 50% { border-color: #ff6b6b; }
    51%, 100% { border-color: #ff0000; }
}

/* Dashboard Layout - Legacy Support */
.dashboard-container {
    display: none;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
}

.nav-menu {
    margin-bottom: 30px;
}

.nav-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background-color: #1e3c72;
    color: white;
}

/* Quick Stats */
.quick-stats h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #1e3c72;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    color: #1e3c72;
    font-size: 1.8em;
}

/* Mission Styles */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.mission-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.mission-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.mission-card.priority-5 {
    border-left: 5px solid #dc3545;
}

.mission-card.priority-4 {
    border-left: 5px solid #fd7e14;
}

.mission-card.priority-3 {
    border-left: 5px solid #ffc107;
}

.mission-card.priority-2 {
    border-left: 5px solid #20c997;
}

.mission-card.priority-1 {
    border-left: 5px solid #6f42c1;
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mission-header h3 {
    color: #1e3c72;
    font-size: 1.2em;
    margin: 0;
}

.priority-badge {
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mission-details p {
    margin: 8px 0;
    font-size: 14px;
}

.mission-details strong {
    color: #1e3c72;
}

.countdown {
    color: #dc3545;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.mission-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.dispatch-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dispatch-form select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.no-missions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Vehicle Styles */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vehicle-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.vehicle-card.status-available {
    border-left: 5px solid #28a745;
}

.vehicle-card.status-dispatched {
    border-left: 5px solid #dc3545;
}

.vehicle-card.status-maintenance {
    border-left: 5px solid #ffc107;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.vehicle-header h3 {
    color: #1e3c72;
    font-size: 1.2em;
    margin: 0;
}

.vehicle-type {
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.vehicle-details p {
    margin: 8px 0;
    font-size: 14px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge {
    background-color: #28a745;
    color: white;
}

/* Map Styles */
.map-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

#city-map {
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: white;
    height: 600px !important;
    width: 100% !important;
}

/* Leaflet popup styling */
.leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

.map-popup h4 {
    margin: 0 0 8px 0;
    color: #1e3c72;
    font-size: 1.1em;
}

.map-popup p {
    margin: 4px 0;
    font-size: 13px;
}

.map-popup ul {
    margin: 4px 0;
    padding-left: 16px;
}

.map-popup li {
    font-size: 12px;
    margin: 2px 0;
}

.map-popup .btn {
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 12px;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.station {
    background-color: #007bff;
}

.legend-color.mission-high {
    background-color: #dc3545;
}

.legend-color.mission-low {
    background-color: #ffc107;
}

.legend-color.vehicle {
    background-color: #28a745;
}

/* Statistics Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
}

.stat-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .success {
    color: #28a745;
    font-weight: 600;
}

.stat-row .failure {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .missions-grid,
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .dispatch-form {
        flex-direction: column;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
        margin: 10px;
    }
    
    .login-header h1 {
        font-size: 2em;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .mission-card,
    .vehicle-card {
        padding: 15px;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
