/* Shared site styles — extracted from includes/header.php (was inline on every page). */
/* Loaded via includes/assets.php → hwe_asset('css/app.css') with an mtime cache-buster. */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    min-height: calc(100vh - 80px);
    border-radius: 0;
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    text-decoration: none;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

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

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar {
    background: var(--gradient-primary);
    min-height: 100vh;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 15px 20px;
    margin: 4px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.sidebar .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.2);
}

.sidebar .nav-link.active {
    color: var(--dark-color);
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        box-shadow: none;
    }
    
    .sidebar .nav-link {
        padding: 12px 16px;
        margin: 2px 8px;
        font-size: 0.9rem;
    }
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending { background-color: #fff3cd; color: #856404; }
.status-assigned { background-color: #cce5ff; color: #004085; }
.status-in_progress { background-color: #d1ecf1; color: #0c5460; }
.status-completed { background-color: #d4edda; color: #155724; }
.status-cancelled { background-color: #f8d7da; color: #721c24; }

.priority-low { border-left: 4px solid #28a745; }
.priority-medium { border-left: 4px solid #ffc107; }
.priority-high { border-left: 4px solid #fd7e14; }
.priority-urgent { border-left: 4px solid #dc3545; }

.notification-bell {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.worker-card {
    border-left: 4px solid var(--success-color);
}

.worker-card.offline {
    border-left-color: #6c757d;
}

.stats-card {
    background: linear-gradient(135deg, var(--secondary-color), #74b9ff);
    color: white;
}

.performance-bar {
    height: 8px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.performance-progress {
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Enhanced Mobile Styles */
.mobile-optimized {
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    margin: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Responsive Font Sizes */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.2rem !important; }
    h5 { font-size: 1.1rem !important; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Smooth Animations */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}
/* Ultra-compact worker-only styles (mobile app-like, low-space) */
