/* Route Service - Dark Blue, Dark Gray, Silver Color Scheme */

:root {
    --route-primary: #1e3a5f;
    --route-secondary: #2d2d2d;
    --route-accent: #c0c0c0;
    --route-light: #f8f9fa;
    --route-border: #e0e0e0;
    --route-success: #2ecc71;
    --route-warning: #f39c12;
    --route-danger: #e74c3c;
}

/* Typography */
.route-heading {
    color: var(--route-primary);
    font-weight: 700;
}

.route-subheading {
    color: var(--route-secondary);
    font-weight: 600;
}

/* Hero Section */
.route-hero {
    background: linear-gradient(135deg, var(--route-primary) 0%, var(--route-secondary) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.route-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(192, 192, 192, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.route-hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.route-hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Cards */
.route-card {
    background: white;
    border: 2px solid var(--route-accent);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.15);
    border-color: var(--route-primary);
}

.route-card h3 {
    color: var(--route-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.route-card p {
    color: var(--route-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Statistics Cards */
.route-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--route-accent);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.route-stat-card:hover {
    background: rgba(192, 192, 192, 0.15);
    border-color: white;
}

.route-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--route-accent);
    margin-bottom: 10px;
}

.route-stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Buttons */
.route-btn {
    background-color: var(--route-accent);
    color: var(--route-primary);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1em;
}

.route-btn:hover {
    background-color: #e8e8e8;
    text-decoration: none;
    color: var(--route-secondary);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
    transform: translateY(-2px);
}

.route-btn:active {
    transform: translateY(0);
}

.route-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.route-btn-primary {
    background-color: var(--route-primary);
    color: white;
}

.route-btn-primary:hover {
    background-color: var(--route-secondary);
    color: var(--route-accent);
}

.route-btn-secondary {
    background-color: var(--route-secondary);
    color: white;
}

.route-btn-secondary:hover {
    background-color: var(--route-primary);
}

.route-btn-success {
    background-color: var(--route-success);
    color: white;
}

.route-btn-success:hover {
    background-color: #27ae60;
}

.route-btn-warning {
    background-color: var(--route-warning);
    color: white;
}

.route-btn-warning:hover {
    background-color: #e67e22;
}

.route-btn-danger {
    background-color: var(--route-danger);
    color: white;
}

.route-btn-danger:hover {
    background-color: #c0392b;
}

/* Form Elements */
.route-form-group {
    margin-bottom: 25px;
}

.route-form-group label {
    color: var(--route-secondary);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.route-form-group input,
.route-form-group select,
.route-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--route-border);
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.route-form-group input:focus,
.route-form-group select:focus,
.route-form-group textarea:focus {
    outline: none;
    border-color: var(--route-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.route-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.route-form-group.error input,
.route-form-group.error select {
    border-color: var(--route-danger);
}

.route-form-group.error input:focus,
.route-form-group.error select:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Radio/Checkbox Options */
.route-option-card {
    border: 2px solid var(--route-border);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.route-option-card input[type="radio"],
.route-option-card input[type="checkbox"] {
    display: none;
}

.route-option-card input[type="radio"]:checked ~ label,
.route-option-card input[type="checkbox"]:checked ~ label {
    color: white;
}

.route-option-card:has(input[type="radio"]:checked),
.route-option-card:has(input[type="checkbox"]:checked) {
    background-color: var(--route-primary);
    border-color: var(--route-primary);
    color: white;
}

.route-option-card label {
    cursor: pointer;
    margin: 0;
    font-weight: bold;
}

.route-option-card p {
    font-size: 0.9em;
    margin: 8px 0 0 0;
}

/* Photo Upload */
.route-photo-upload {
    border: 2px dashed var(--route-accent);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--route-light);
}

.route-photo-upload:hover {
    border-color: var(--route-primary);
    background-color: rgba(30, 58, 95, 0.02);
}

.route-photo-upload i {
    font-size: 2em;
    color: var(--route-primary);
    display: block;
    margin-bottom: 10px;
}

.route-photo-upload span {
    display: block;
    color: var(--route-secondary);
}

/* Info Boxes */
.route-info {
    background-color: var(--route-light);
    border-left: 4px solid var(--route-primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.route-info h3 {
    color: var(--route-primary);
    margin-bottom: 10px;
}

.route-info ul {
    list-style: none;
    padding-left: 0;
}

.route-info li {
    padding: 8px 0;
    color: var(--route-secondary);
}

.route-info li:before {
    content: "✓ ";
    color: var(--route-primary);
    font-weight: bold;
    margin-right: 8px;
}

/* Alerts */
.route-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.route-alert-info {
    background-color: #ecf0f1;
    border-left-color: var(--route-primary);
    color: var(--route-primary);
}

.route-alert-success {
    background-color: #d4edda;
    border-left-color: var(--route-success);
    color: #155724;
}

.route-alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--route-warning);
    color: #856404;
}

.route-alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--route-danger);
    color: #721c24;
}

/* Verification Level Display */
.route-verification-level {
    background-color: var(--route-light);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.route-verification-level h4 {
    color: var(--route-primary);
    margin-bottom: 15px;
}

.route-level-indicator {
    display: flex;
    gap: 10px;
}

.route-level-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    background-color: var(--route-border);
    color: var(--route-secondary);
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.route-level-item.active {
    background-color: var(--route-primary);
    color: white;
}

/* Menu */
.route-menu {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.route-menu-header {
    background: linear-gradient(135deg, var(--route-primary) 0%, var(--route-secondary) 100%);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.route-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.route-menu li {
    border-bottom: 1px solid var(--route-border);
}

.route-menu li:last-child {
    border-bottom: none;
}

.route-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--route-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.route-menu a:hover {
    background-color: var(--route-light);
    color: var(--route-primary);
    font-weight: 500;
    padding-left: 25px;
}

.route-menu a.active {
    background-color: var(--route-accent);
    color: var(--route-primary);
    font-weight: bold;
    border-left: 4px solid var(--route-primary);
    padding-left: 16px;
}

/* Content Section */
.route-content-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-content-section h2 {
    color: var(--route-primary);
    border-bottom: 2px solid var(--route-accent);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Empty State */
.route-empty-state {
    text-align: center;
    padding: 40px;
    color: var(--route-secondary);
}

.route-empty-state i {
    font-size: 3em;
    color: var(--route-accent);
    margin-bottom: 15px;
    display: block;
}

.route-empty-state p {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .route-hero h1 {
        font-size: 1.8em;
    }

    .route-hero p {
        font-size: 1em;
    }

    .route-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .route-stat-card {
        padding: 15px;
    }

    .route-stat-number {
        font-size: 2em;
    }

    .route-level-indicator {
        flex-direction: column;
    }

    .route-form-group input,
    .route-form-group select,
    .route-form-group textarea {
        font-size: 16px; /* Prevents iOS zoom-on-focus */
    }
}

/* Print Styles */
@media print {
    .route-btn,
    .route-menu,
    .route-actions {
        display: none;
    }

    .route-card,
    .route-content-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
.route-btn:focus,
.route-form-group input:focus,
.route-form-group select:focus,
.route-form-group textarea:focus {
    outline: 2px solid var(--route-primary);
    outline-offset: 2px;
}

/* Loading State */
.route-loading {
    opacity: 0.6;
    pointer-events: none;
}

.route-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--route-accent);
    border-top-color: var(--route-primary);
    border-radius: 50%;
    animation: route-spin 0.8s linear infinite;
}

@keyframes route-spin {
    to {
        transform: rotate(360deg);
    }
}
