/* SupplyGridz Main Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* Cards and Components */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Statistics Cards */
.stat-card {
    padding: 1rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Dashboard Specific */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Vehicle Status Badges */
.badge {
    font-size: 0.75em;
    font-weight: 600;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
    font-size: 0.875rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Map Styles */
.map-container {
    height: 500px;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.leaflet-container {
    height: 100%;
    width: 100%;
}

/* Vehicle Cards */
.vehicle-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.vehicle-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Contract Cards */
.contract-card {
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
}

.contract-card:hover {
    border-left-color: var(--warning-color);
    transform: translateX(5px);
}

.contract-priority-urgent {
    border-left-color: var(--danger-color) !important;
}

.contract-priority-high {
    border-left-color: var(--warning-color) !important;
}

.contract-priority-normal {
    border-left-color: var(--info-color) !important;
}

.contract-priority-low {
    border-left-color: var(--success-color) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Animations */
.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jumbotron {
        text-align: center;
    }
    
    .jumbotron .display-4 {
        font-size: 2rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Vehicle Type Icons */
.vehicle-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.vehicle-icon.land { color: var(--success-color); }
.vehicle-icon.sea { color: var(--info-color); }
.vehicle-icon.air { color: var(--warning-color); }
.vehicle-icon.space { color: var(--danger-color); }

/* Game UI Elements */
.game-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.currency {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color), #3498db);
}
