:root {
    --vos-primary: #2563eb;
    --vos-primary-hover: #1d4ed8;
    --vos-secondary: #64748b;
    --vos-success: #10b981;
    --vos-warning: #f59e0b;
    --vos-danger: #ef4444;
    --vos-bg: #ffffff;
    --vos-bg-secondary: #f8fafc;
    --vos-border: #e2e8f0;
    --vos-text: #1e293b;
    --vos-text-muted: #64748b;
}

* {
    box-sizing: border-box;
}

.vos-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: var(--vos-text);
}

.vos-header {
    margin-bottom: 30px;
    text-align: center;
}

.vos-header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: var(--vos-text);
}

.vos-privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--vos-text-muted);
    font-size: 0.9rem;
}

.vos-onboarding {
    background: var(--vos-primary);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vos-onboarding-content h3 {
    margin-top: 0;
}

.vos-onboarding-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.vos-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .vos-main-layout {
        grid-template-columns: 1fr;
    }
}

.vos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vos-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vos-vehicle-item {
    background: var(--vos-bg);
    border: 1px solid var(--vos-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.vos-vehicle-item:hover {
    border-color: var(--vos-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vos-vehicle-item.active {
    border-color: var(--vos-primary);
    background: #eff6ff;
}

.vos-vehicle-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.vos-vehicle-actions {
    display: flex;
    gap: 4px;
}

.vos-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.vos-btn-primary {
    background: var(--vos-primary);
    color: white;
}

.vos-btn-primary:hover {
    background: var(--vos-primary-hover);
}

.vos-btn-secondary {
    background: var(--vos-secondary);
    color: white;
}

.vos-btn-secondary:hover {
    background: #475569;
}

.vos-btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vos-btn-icon {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--vos-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.vos-btn-icon:hover {
    background: var(--vos-bg-secondary);
    color: var(--vos-text);
}

.vos-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vos-badge-lg {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.vos-status-ok {
    background: #d1fae5;
    color: #065f46;
}

.vos-status-due-soon {
    background: #fef3c7;
    color: #92400e;
}

.vos-status-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.vos-badge-service {
    background: #dbeafe;
    color: #1e40af;
}

.vos-badge-oil_change {
    background: #fce7f3;
    color: #9f1239;
}

.vos-badge-other {
    background: #e0e7ff;
    color: #4338ca;
}

.vos-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--vos-text-muted);
}

.vos-empty-state svg {
    opacity: 0.5;
    margin-bottom: 20px;
}

.vos-vehicle-detail {
    background: var(--vos-bg);
    border: 1px solid var(--vos-border);
    border-radius: 8px;
    padding: 24px;
}

.vos-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--vos-border);
}

.vos-detail-header h2 {
    margin: 0 0 4px 0;
}

.vos-vehicle-subtitle {
    color: var(--vos-text-muted);
    margin: 0;
}

.vos-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vos-form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vos-form-section h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--vos-text);
}

.vos-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.vos-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vos-form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--vos-text);
}

.vos-form-group input,
.vos-form-group select,
.vos-form-group textarea {
    padding: 10px;
    border: 1px solid var(--vos-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.vos-form-group input:focus,
.vos-form-group select:focus,
.vos-form-group textarea:focus {
    outline: none;
    border-color: var(--vos-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vos-form-group small {
    color: var(--vos-text-muted);
    font-size: 0.85rem;
}

.vos-calculations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.vos-calc-card {
    border: 2px solid var(--vos-border);
    border-radius: 8px;
    padding: 20px;
}

.vos-calc-card.vos-status-ok {
    border-color: var(--vos-success);
    background: #f0fdf4;
}

.vos-calc-card.vos-status-due-soon {
    border-color: var(--vos-warning);
    background: #fffbeb;
}

.vos-calc-card.vos-status-overdue {
    border-color: var(--vos-danger);
    background: #fef2f2;
}

.vos-calc-card h4 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
}

.vos-calc-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--vos-border);
}

.vos-calc-item:last-child {
    border-bottom: none;
}

.vos-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vos-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vos-log-item {
    background: var(--vos-bg-secondary);
    border: 1px solid var(--vos-border);
    border-radius: 6px;
    padding: 12px;
}

.vos-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vos-log-date {
    color: var(--vos-text-muted);
    font-size: 0.9rem;
}

.vos-log-details {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--vos-text-muted);
}

.vos-log-notes {
    margin: 8px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--vos-border);
    font-size: 0.9rem;
}

.vos-no-logs {
    text-align: center;
    color: var(--vos-text-muted);
    padding: 20px;
}

.vos-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.vos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.vos-modal-content {
    background: var(--vos-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.vos-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--vos-border);
}

.vos-modal-header h3 {
    margin: 0;
}

.vos-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--vos-text-muted);
    line-height: 1;
}

.vos-modal-close:hover {
    color: var(--vos-text);
}

.vos-modal-body {
    padding: 20px;
}

.vos-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-width: 400px;
}

.vos-notification-success {
    background: var(--vos-success);
    color: white;
}

.vos-notification-error {
    background: var(--vos-danger);
    color: white;
}

.vos-notification-info {
    background: var(--vos-primary);
    color: white;
}
