/* 1. Global Setup & Box Sizing */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
    width: 100%; 
    overflow-x: hidden; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #f8fafc; 
    color: #1e293b; 
    padding: 10px; 
}

/* 2. Main Container */
.container { 
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto; 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* 3. Premium Navigation Menu */
.top-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px 0;
    margin-bottom: 30px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.top-nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.top-nav a:hover { color: #c5a059; }

/* 4. Vehicle Cards */
.vehicle-card { 
    padding: 20px; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 20px; 
    border-radius: 10px; 
    background: #ffffff; 
    width: 100%; 
}

.card-row { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center; 
    gap: 15px; 
}

/* 5. Progress Bar (MOT) - Forced Visibility */
.bar-bg { 
    background-color: #e2e8f0 !important; 
    height: 14px !important; 
    width: 120px !important; 
    border-radius: 7px !important; 
    display: inline-block !important; 
    vertical-align: middle !important; 
    overflow: hidden !important; 
}

.bar-fill { height: 100% !important; display: block !important; }

/* 6. Buttons & Links */
.btn-primary { 
    background: #c5a059; 
    color: white; 
    padding: 10px 15px; 
    border-radius: 5px; 
    text-decoration: none; 
    text-align: center; 
    font-size: 0.9rem;
    display: inline-block;
}

.btn-add { background: #10b981; }

.edit-btn { text-decoration: none; color: #c5a059; font-size: 1.2rem; margin-left: 8px; }

/* 7. Tables */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px; 
    font-size: 0.9rem; 
    display: block; 
    overflow-x: auto; 
    white-space: nowrap; 
}

th, td { 
    text-align: left; 
    padding: 10px; 
    border-bottom: 1px solid #f1f5f9; 
}

/* 8. Print Styles */
@media print {
    nav, .no-print, .btn-primary, button { display: none !important; }
    .container { box-shadow: none; border: none; width: 100%; }
}

/* 9. Mobile Responsiveness */
@media (max-width: 600px) {
    .top-nav { gap: 10px; font-size: 0.75rem; }
}