* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-radius: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 500px;
}

/* Loading State */
.loading {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Error State */
.error {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error h2 {
    font-size: 24px;
    color: var(--danger-color);
    margin-bottom: 12px;
}

.error p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* Vehicle Info */
.vehicle-info {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.vehicle-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.license-plate {
    display: inline-block;
    background: white;
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Documents Section */
.documents {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--text-secondary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.document-card.valid {
    border-left-color: var(--success-color);
}

.document-card.expired {
    border-left-color: var(--danger-color);
}

.document-card.expiring-soon {
    border-left-color: var(--warning-color);
}

.document-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.document-icon {
    font-size: 24px;
}

.document-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.document-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.valid {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.expiring-soon {
    background: #fef3c7;
    color: #92400e;
}

.status-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Additional Info */
.additional-info {
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Footer */
.footer {
    background: var(--bg-color);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .license-plate {
        font-size: 18px;
        padding: 6px 16px;
    }

    .documents {
        padding: 20px;
        gap: 12px;
    }

    .document-card {
        padding: 16px;
    }

    .additional-info {
        padding: 0 20px 20px;
    }

    .footer {
        padding: 16px 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
    }

    .document-card {
        break-inside: avoid;
    }
}

