* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252d3d;
    --bg-card: #1e2532;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 15px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding: 30px 20px;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 12px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

main {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: clamp(20px, 5vw, 40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.search-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

#regNumber {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#regNumber::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

#regNumber:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#searchBtn {
    padding: 16px 36px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

#searchBtn:active {
    transform: translateY(0);
}

#searchBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: var(--danger);
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: none;
    font-size: 0.95rem;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading p {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 0.95rem;
}

.spinner {
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: clamp(20px, 4vw, 28px);
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.card:hover {
    border-left-color: var(--accent-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 2pxmin(100%, 260px), 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.info-item:hover {
    background: var(--bg-secondary);
    border-color: rgba(59, 130, 246, 0.3);
}

.info-item .label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-item .value {
    color: #ef4444;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    font-size: 0.95rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radiuvar(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.status-indicator {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-indicator::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.valid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.status-indicator.valid::before {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-indicator.expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 2px solid rgba(239, 68, 68, 0.4);
}
var(--bg-tertiary);
    border-radius: 12px;
    padding: clamp(16px, 4vw, 22px);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.mot-test:hover {
    border-left-color: var(--accent-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mot-test h3 {
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    font-weight: 600;
}

.mot-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mot-result::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mot-result.pass {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.mot-result.pass::before {
    background: var(--success);
}

.mot-result.fail {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px s6px;
}

.defects-section h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.defect-item {
    background: var(--bg-secondary);
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--warning);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.defect-item:hover {
    background: var(--bg-card);
    transform: translateX(4px);
}

.defect-item strong {
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 4px;
}

.defect-item.dangerous {
    border-left-color: var(--danger);
    backgrovar(--text-secondary);
    margin-top: 40px;
    padding: 24px 20px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .logo {
        max-width: 250px;
    }
    
    header {
        padding: 20px 10px;
        margin-bottom: 20px;
    }
    
    main {
        padding: 20px;
        border-radius: 12px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #regNumber, #searchBtn {
        width: 100%;
    }
    
    .card {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .info-item .value {
        text-align: left;
    }
    
    .status-details p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mot-details p {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .card h2 {
        font-size: 1.15rem;
    }
    
    .mot-test h3 {
        font-size: 1rem;
    }
    
    .status-indicator {
        font-size: 1rem;
        padding: 14px 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);

.status-details strong {
    color: #333;
}

.mot-test {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.mot-test h3 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mot-result {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.mot-result.pass {
    background: #d4edda;
    color: #155724;
}

.mot-result.fail {
    background: #f8d7da;
    color: #721c24;
}

.mot-details {
    margin-top: 15px;
}

.mot-details p {
    padding: 5px 0;
    color: #555;
}

.defects-section {
    margin-top: 15px;
}

.defects-section h4 {
    color: #666;
    margin-bottom: 10px;
}

.defect-item {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
}

.defect-item.dangerous {
    border-left-color: #dc3545;
}

.defect-item.major {
    border-left-color: #fd7e14;
}

.defect-item.minor {
    border-left-color: #ffc107;
}

.defect-item.advisory {
    border-left-color: #17a2b8;
}

footer {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
    padding: 24px 20px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.usage-stats {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.usage-item {
    margin-bottom: 12px;
}

.usage-item:last-child {
    margin-bottom: 0;
}

.usage-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.usage-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-left: 8px;
}

.usage-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.usage-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.usage-bar-fill.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.usage-bar-fill.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Design */
    header h1 {
        font-size: 1.8em;
    }
    
    main {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
