/* Color Scheme Variables */
:root {
    /* Primary Brand Colors */
    --primary-deep-teal: #1a5f5f;
    --primary-light-teal: #2d7a7a;
    --primary-dark-teal: #0d4444;
    
    /* Secondary Colors */
    --secondary-coral: #ff6b4a;
    --secondary-light-coral: #ff8567;
    --secondary-dark-coral: #e5472b;
    
    /* Supporting Colors */
    --accent-emerald: #34d399;
    --accent-light-emerald: #6ee7b7;
    --accent-dark-emerald: #10b981;
    
    /* Neutral Colors */
    --neutral-dark-gray: #1f2937;
    --neutral-light-gray: #f9fafb;
    --neutral-gray-100: #f3f4f6;
    --neutral-gray-200: #e5e7eb;
    --neutral-gray-300: #d1d5db;
    --neutral-gray-600: #4b5563;
    --neutral-gray-800: #1f2937;
    
    /* Status Colors */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;
    --status-info: #3b82f6;
}

/* Override Bootstrap Primary Color */
.bg-primary {
    background-color: var(--primary-deep-teal) !important;
}

.btn-primary {
    background-color: var(--primary-deep-teal);
    border-color: var(--primary-deep-teal);
}

.btn-primary:hover {
    background-color: var(--primary-dark-teal);
    border-color: var(--primary-dark-teal);
}

.btn-secondary {
    background-color: var(--secondary-coral);
    border-color: var(--secondary-coral);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark-coral);
    border-color: var(--secondary-dark-coral);
}

.text-primary {
    color: var(--primary-deep-teal) !important;
}

.text-secondary {
    color: var(--secondary-coral) !important;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--neutral-gray-800);
    background-color: var(--neutral-light-gray);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light-teal) 0%, var(--primary-deep-teal) 50%, var(--primary-dark-teal) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 95, 95, 0.1) 0%, rgba(45, 122, 122, 0.1) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Logo Text Styling */
.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none !important;
}

.logo-pilots {
    background: linear-gradient(135deg, #ffffff 0%, #ff8567 70%, #ff6b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.logo-ampersand {
    color: #ff6b4a;
    font-weight: 900;
    margin: 0 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-permits {
    background: linear-gradient(135deg, #ffffff 0%, #ff8567 70%, #ff6b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .logo-pilots {
        color: #ffffff;
    }
    .logo-permits {
        color: #ffffff;
    }
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light-teal);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 95, 0.25);
}

/* Alerts */
.alert-success {
    background-color: var(--accent-light-emerald);
    border-color: var(--accent-emerald);
    color: var(--neutral-dark-gray);
}

.alert-warning {
    background-color: #fef3c7;
    border-color: var(--status-warning);
    color: var(--neutral-dark-gray);
}

.alert-danger {
    background-color: #fee2e2;
    border-color: var(--status-danger);
    color: var(--neutral-dark-gray);
}

/* Status Badges */
.badge-pending {
    background-color: var(--status-warning);
}

.badge-assigned {
    background-color: var(--status-info);
}

.badge-in-progress {
    background-color: var(--primary-light-teal);
}

.badge-delivered {
    background-color: var(--status-success);
}

.badge-cancelled {
    background-color: var(--neutral-gray-600);
}

/* Tables */
.table {
    background-color: white;
}

.table-hover tbody tr:hover {
    background-color: var(--neutral-gray-100);
}

/* Map Container */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* Location Sharing */
.location-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.location-status.active {
    color: var(--status-success);
}

.location-status.inactive {
    color: var(--neutral-gray-600);
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-deep-teal);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--neutral-gray-600);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    color: var(--primary-deep-teal);
}

/* Service Checkboxes */
.service-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--neutral-gray-300);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.service-checkbox:hover {
    border-color: var(--primary-light-teal);
    background-color: var(--neutral-gray-100);
}

.service-checkbox input[type="checkbox"]:checked + label {
    color: var(--primary-deep-teal);
    font-weight: 500;
}

/* Rating Stars */
.rating-stars {
    color: var(--status-warning);
}

.rating-stars .empty {
    color: var(--neutral-gray-300);
}

/* Footer */
footer {
    background-color: var(--neutral-dark-gray) !important;
}

footer a:hover {
    color: white !important;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-deep-teal) 0%, var(--primary-light-teal) 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* CTA Buttons */
.btn-cta {
    background-color: var(--secondary-coral);
    border-color: var(--secondary-coral);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--secondary-dark-coral);
    border-color: var(--secondary-dark-coral);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

/* Order Form Styling */
.order-form {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.order-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-gray-200);
}

.order-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-form .form-section h4 {
    color: var(--primary-deep-teal);
    margin-bottom: 1rem;
}

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

::-webkit-scrollbar-track {
    background: var(--neutral-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-gray-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-gray-800);
}
