/* Rescue Command Theme */
:root {
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --secondary-color: #1e3a5f;
    --accent-color: #f5f5dc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #f8fafc;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text-dark);
}

/* Header mit Rescue Command Branding */
.header {
    background: linear-gradient(135deg, var(--secondary-color), #2563eb);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    gap: 10px;
}

.logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Footer Styles */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: var(--text-dark);
    margin-top: 60px;
    padding: 40px 0 20px 0;
    clear: both;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
    font-size: 12px;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .site-footer {
        padding: 30px 0 15px 0;
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '+';
    color: var(--accent-color);
    font-size: 24px;
    font-weight: bold;
}

.logo-icon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border: 2px solid var(--primary-color);
    border-left: transparent;
    border-bottom: transparent;
    border-radius: 50%;
    opacity: 0.7;
}

/* Buttons im Rescue Command Style */
.btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-emergency {
    background: linear-gradient(135deg, var(--primary-color), #dc2626);
    animation: pulse 2s infinite;
}

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

.btn-green {
    background: var(--success-color);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-blue {
    background: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-orange {
    background: var(--warning-color);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

/* Cards mit professionellem Look */
.card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

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

/* Emergency Status Indicators */
.status-available {
    color: var(--success-color);
    font-weight: bold;
}

.status-busy {
    color: var(--primary-color);
    font-weight: bold;
}

.status-maintenance {
    color: var(--warning-color);
    font-weight: bold;
}

/* Vehicle Type Badges */
.vehicle-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fire {
    background: linear-gradient(135deg, var(--primary-color), #dc2626);
}

.ems {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.police {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* Stats mit Emergency Theme */
.stat {
    background: linear-gradient(135deg, var(--card-bg), #f8fafc);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stat:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Emergency Alerts */
.alert-emergency {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    animation: alertPulse 1.5s infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Incident Cards */
.incident-active {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg), #fef2f2);
}

.incident-completed {
    border-left: 4px solid var(--success-color);
    opacity: 0.8;
}

.incident-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* Professional Form Styling */
input, select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Navigation Enhancement */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Credits Display */
.credits-display {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Vehicle Requirements Styling */
.vehicle-requirement {
    background: linear-gradient(135deg, var(--secondary-color), #1e40af);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin: 2px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.incident-credits {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.time-ago {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Auto-generation indicator */
.auto-generation {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
    animation: pulse 2s infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-requirement {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Vehicle shop and management styles */
.vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.vehicle-item:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.vehicle-item select {
    margin: 0 10px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}

.vehicle-type.fire {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.vehicle-type.ems {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.vehicle-type.police {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Vehicle status indicators */
.status-available {
    color: #059669;
    font-weight: bold;
}

.status-dispatched {
    color: #dc2626;
    font-weight: bold;
}

.status-at_scene {
    color: #ea580c;
    font-weight: bold;
}

.status-returning {
    color: #0ea5e9;
    font-weight: bold;
}

.status-maintenance {
    color: #6b7280;
    font-weight: bold;
}

/* Small button variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-large);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #dc2626;
}

/* Station type badges */
.station-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.station-type.fire {
    background: #fee2e2;
    color: #991b1b;
}

.station-type.ems {
    background: #dcfce7;
    color: #166534;
}

.station-type.police {
    background: #dbeafe;
    color: #1e40af;
}

/* Vehicle list in stations */
.vehicle-list {
    margin: 15px 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.vehicle-list h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 0.9rem;
}

.vehicle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e5e7eb;
}

.vehicle:last-child {
    border-bottom: none;
}

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

/* Status indicators for vehicles in station view */
.status-ready {
    color: #059669;
    font-weight: bold;
    font-size: 0.85rem;
}

.status-busy {
    color: #dc2626;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Responsive vehicle requirement badges */
@media (max-width: 768px) {
    .vehicle-req-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .vehicle-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .vehicle-item > div:last-child {
        text-align: left !important;
    }
}
