
        .alert {
            padding: 15px;
            margin: 20px 0;
            border-radius: 8px;
            font-weight: 500;
        }
        .alert-success {
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }
        .alert-error {
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
        }
        .tracking-info {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white !important;
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }
        
        .tracking-info h3,
        .tracking-info p {
            color: white !important;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
        .tracking-id {
            font-size: 1.5em;
            font-weight: bold;
            margin: 10px 0;
            letter-spacing: 2px;
            color: white !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 20px;
            border-radius: 8px;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        /* Color Legend Styles */
        .color-legend {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
        }

        .legend-title {
            font-size: 14px;
            font-weight: 600;
            color: #495057;
            margin: 0 0 10px 0;
            text-align: center;
        }

        .legend-items {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .color-indicator {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .color-indicator.green {
            background-color: #28a745;
        }

        .color-indicator.orange {
            background-color: #fd7e14;
        }

        .color-indicator.red {
            background-color: #dc3545;
        }

        .color-label {
            font-size: 12px;
            font-weight: 500;
            color: #495057;
        }

        @media (max-width: 768px) {
            .legend-items {
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
        }

        /* Responsive Form Grid System */
        .form-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
        }

        /* Section Icons and Improved Titles */
        .section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            color: #2c3e50;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 10px;
        }

        /* Form Help Text */
        .form-help {
            display: block;
            font-size: 12px;
            color: #6c757d;
            margin-top: 5px;
            font-style: italic;
        }

        /* Mobile Responsive Breakdowns */
        @media (max-width: 768px) {
            .form-grid-2,
            .form-grid-3 {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .section-title {
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .form-section {
                padding: 15px;
            }
            
            .form-grid-2,
            .form-grid-3 {
                gap: 10px;
            }
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
            margin-bottom: 20px;
            transition: color 0.3s ease;
        }
        .back-button:hover {
            color: #5a67d8;
        }
        .emergency-page {
            min-height: 100vh;
            padding: 80px 0 40px;
            background: linear-gradient(135deg, #f8faff 0%, #e6f3ff 100%);
        }
        
        /* Override form styles for better visibility */
        .emergency-form {
            background: lightblue !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
        }
        
        .emergency-form .form-group label {
            color: #374151 !important;
            font-weight: 600;
        }
        
        .emergency-form input,
        .emergency-form select,
        .emergency-form textarea {
            border: 2px solid #ebe5e5ff;
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 14px;
            transition: border-color 0.3s ease;
            background: white;
            width: 100%;
            color: #374151;
            font-family: inherit;
        }
        
        .emergency-form input:focus,
        .emergency-form select:focus,
        .emergency-form textarea:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        .checkbox-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #374151 !important;
            font-weight: 500;
            cursor: pointer;
        }
        
        .checkbox-label input[type="checkbox"] {
            width: auto;
            margin: 0;
        }
        
        .btn-emergency {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            color: white;
            padding: 16px 32px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            margin: 20px 0;
        }
        
        .btn-emergency:hover {
            background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
        }
        
        .emergency-note {
            background: rgba(59, 130, 246, 0.1);
            border-left: 4px solid #3b82f6;
            padding: 16px;
            border-radius: 8px;
            margin-top: 20px;
        }
        
        .emergency-note p {
            color: #1e40af;
            margin: 0;
        }
        
        /* Ensure dropdowns show their selection properly */
        .emergency-form select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 0.5rem center;
            background-repeat: no-repeat;
            background-size: 1.5em 1.5em;
            padding-right: 2.5rem;
            cursor: pointer;
        }
        
        .emergency-form select:invalid {
            color: #9ca3af;
        }
        
        .emergency-form select option {
            color: #374151;
            background: white;
        }
        
        .emergency-form select option:first-child {
            color: #9ca3af;
        }
        
        /* Image Upload Styles */
        .image-upload-container {
            position: relative;
            margin-top: 8px;
        }
        
        .file-input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            z-index: 2;
        }
        
        .file-upload-wrapper {
            border: 2px dashed #d1d5db;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            background: #f9fafb;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .file-upload-wrapper:hover {
            border-color: #3b82f6;
            background: #eff6ff;
        }
        
        .upload-icon {
            font-size: 3em;
            color: #6b7280;
            margin-bottom: 15px;
        }
        
        .upload-text {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .upload-title {
            font-weight: 600;
            color: #374151;
            font-size: 16px;
        }
        
        .upload-subtitle {
            font-size: 14px;
            color: #6b7280;
        }
        
        .image-preview {
            position: relative;
            margin-top: 15px;
        }
        
        .image-preview img {
            max-width: 100%;
            max-height: 300px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .remove-image {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s ease;
        }
        
        .remove-image:hover {
            background: #dc2626;
        }
        
        .form-help {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            font-size: 13px;
            color: #6b7280;
            line-height: 1.4;
        }
        
        .form-help i {
            color: #3b82f6;
            flex-shrink: 0;
        }
        
        /* Auto-Refresh Indicator Styles */
        #autoRefreshIndicator {
            position: relative;
            animation: slideDown 0.3s ease-out;
            border-left: 4px solid #0d6efd;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        #autoRefreshIndicator .fa-sync-alt {
            animation: spin 2s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .last-check-time {
            font-size: 0.85em;
            opacity: 0.8;
        }
        
        /* Update Notification Animation */
        .alert-dismissible {
            animation: slideInRight 0.3s ease-out;
        }
        
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        /* Timeline Styles for Updates */
        .timeline {
            position: relative;
            padding: 20px 0;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, #0d6efd, #6c757d);
        }
        
        .timeline-item {
            position: relative;
            padding-left: 45px;
            margin-bottom: 20px;
        }
        
        .timeline-marker {
            position: absolute;
            left: 8px;
            top: 5px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 0 0 2px currentColor;
        }
        
        .timeline-marker.bg-danger {
            background-color: #dc3545;
            color: #dc3545;
        }
        
        .timeline-marker.bg-primary {
            background-color: #0d6efd;
            color: #0d6efd;
        }
        
        .timeline-content {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .timeline-header .badge {
            font-size: 0.75rem;
        }
        
        .timeline-content p {
            margin: 0;
            color: #495057;
        }
