:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #ddd;
    --error-color: #dc3545;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

nav {
    padding: 1rem 0;
}

nav h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.decoder-section {
    max-width: 800px;
    margin: 0 auto;
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-box h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vin-decoder-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#vin-decoder-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#vin-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#vin-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--primary-dark);
}

.sample-vins {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sample-vins h3 {
    margin-bottom: 1rem;
}

.sample-vins code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

#loading-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vehicle-info {
    margin-top: 1.5rem;
}

.info-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 6px;
}

.info-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.info-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-label {
    font-weight: 500;
    color: #666;
}

.error {
    color: var(--error-color);
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

footer {
    background: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #vin-decoder-form {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}