/* Legacy EPT Driver App - Black & Gold Theme */

/* CSS Variables for Theme Colors */
:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --dark-gold: #B8860B;
    --black-primary: #000000;
    --black-secondary: #1a1a1a;
    --black-tertiary: #2a2a2a;
    --black-quaternary: #2d2d2d;
    --gray-light: #cccccc;
    --gray-medium: #888888;
    --gray-dark: #444444;
    --success-green: #27ae60;
    --error-red: #e74c3c;
    --warning-orange: #f39c12;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-secondary) 50%, var(--black-primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container Styles */
.container {
    background: linear-gradient(145deg, var(--black-secondary) 0%, var(--black-quaternary) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Logo Styles */
.logo {
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--primary-gold);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.logo p {
    color: var(--gray-light);
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-dark);
    border-radius: 10px;
    font-size: 16px;
    background: var(--black-tertiary);
    color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.form-group input::placeholder {
    color: var(--gray-medium);
}

/* PIN Input Styles */
.pin-input {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pin-input input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--black-primary);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-btn {
    background: linear-gradient(135deg, #666666 0%, #888888 100%);
    margin-right: 10px;
    width: auto;
    padding: 10px 20px;
    color: #ffffff;
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* Step Navigation */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-dark);
    margin: 0 5px;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Typography */
h2 {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

p {
    color: var(--gray-light);
    margin-bottom: 30px;
}

/* Messages */
.error-message {
    color: var(--error-red);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.success-message {
    color: var(--success-green);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Loading Animation */
.loading {
    display: none;
    margin-top: 20px;
}

.spinner {
    border: 3px solid var(--gray-dark);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* App Download Section */
.app-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,215,0,0.3);
}

.app-buttons h3 {
    color: var(--primary-gold);
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.app-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 10px;
    background: var(--black-tertiary);
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-btn:hover {
    border-color: var(--primary-gold);
    background: rgba(255,215,0,0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,215,0,0.2);
}

.app-btn:last-child {
    margin-bottom: 0;
}

.app-icon {
    font-size: 18px;
}

/* Install Prompt */
.install-prompt {
    display: none;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.install-prompt.show {
    display: block;
}

.install-prompt h4 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 14px;
}

.install-prompt p {
    color: var(--gray-light);
    font-size: 12px;
    margin-bottom: 10px;
}

.install-instructions {
    font-size: 11px;
    color: var(--gray-light);
    text-align: left;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.install-instructions ol {
    margin: 0;
    padding-left: 15px;
}

.install-instructions li {
    margin-bottom: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .pin-input input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-btn {
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .pin-input input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 14px;
    }
}

/* Dark Theme Variants */
.theme-dark {
    /* Additional dark theme overrides can go here */
}

.theme-light {
    /* Light theme variant (if needed in future) */
    --primary-gold: #B8860B;
    --secondary-gold: #DAA520;
    --black-primary: #ffffff;
    --black-secondary: #f5f5f5;
    --black-tertiary: #e5e5e5;
    --gray-light: #333333;
    --gray-medium: #666666;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid var(--primary-gold);
    }
    
    .btn {
        border: 2px solid var(--black-primary);
    }
    
    .form-group input {
        border-width: 3px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        background: white;
        border: 1px solid black;
        box-shadow: none;
    }
    
    .btn, .app-btn {
        background: white;
        color: black;
        border: 1px solid black;
    }
}
