/**
 * Public-facing styles for Transfer Requests App
 * Mobile-first, responsive design
 */

/* Additional mobile-specific styles */
.has-video {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.has-video .camera-icon {
    color: #28a745;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

/* Vehicle and driver info boxes */
.vehicle-info {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bee5eb;
}

.vehicle-info h3 {
    color: #0c5460;
    margin-bottom: 10px;
}

.driver-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.driver-info h3 {
    color: #155724;
    margin-bottom: 10px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .inspection-container {
        padding: 10px;
    }
    
    .inspection-header {
        padding: 15px 0;
    }
    
    .inspection-header h1 {
        font-size: 20px;
    }
    
    .step {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin: 0 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .video-upload-area {
        padding: 20px;
    }
    
    .camera-icon {
        font-size: 36px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .inspection-header {
        padding: 10px 0;
    }
    
    .step-indicator {
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .inspection-container {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .inspection-container {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
     
        border-color: #555;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #007cba;
    }
    
    .video-upload-area {
        background: #353535;
        border-color: #007cba;
    }
    
    .vehicle-info,
    .driver-info {
       
        color: black;
        border-color: #555;
    }
    
    .vehicle-info h3 {
        color: #64b5f6;
    }
    
    .driver-info h3 {
        color: #81c784;
    }
    
    .alert-info {
        background: #1e3a4a;
        color: #b8dde6;
        border-color: #2c5970;
    }
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .form-step,
    .spinner,
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navigation-buttons,
    .step-indicator,
    .btn {
        display: none;
    }
    
    .inspection-container {
        box-shadow: none;
        background: white;
        color: black;
    }
    
    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}

button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover
{
    color:white !important;
}