/* Vanderhall Owner Portal - Global Styles */

:root {
    --accent: #E87722;
    --accent-dark: #c96818;
    --accent-light: #fef3e8;
    --gray: #f8f9fa;
    --border: #dee2e6;
    --dark-gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
}

/* Base */
html {
    -webkit-background-size: cover;
    background-size: cover;
}

body {
    font-family: 'Abel', Helvetica, Arial, sans-serif;
    margin: 0;
    padding-top: 60px;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 300; }
h2 { font-size: 2rem; font-weight: 300; }
h3 { font-size: 1.5rem; font-weight: 400; }

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Header */
#header_div {
    width: 100%;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

#header_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-sizing: border-box;
}

#header_logo {
    height: 22px;
    width: auto;
    display: block;
    cursor: pointer;
    flex-shrink: 0;
}

#header_nav {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 60px;
}

#header_nav li a,
#header_nav li .nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 60px;
    font-family: 'Abel', Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    box-sizing: border-box;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
}

#header_nav li a:hover,
#header_nav li .nav-btn:hover,
#header_nav li a.active {
    color: #fff;
    border-bottom-color: var(--accent);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 7px 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    align-items: center;
    transition: border-color 0.2s, color 0.2s;
}

.hamburger:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hamburger .material-icons { font-size: 20px; line-height: 1; }
.closeIcon { display: none; }

/* Mobile slide-down menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mobile-menu.showMenu { display: block; }

.mobile-menu a {
    display: block;
    padding: 14px 24px;
    color: rgba(255,255,255,0.7);
    font-family: 'Abel', Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fff;
    background: rgba(255,255,255,0.04);
    border-left-color: var(--accent);
}

/* Mobile divider */
.mobile-menu .divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 4px 24px;
}

/* Main Content */
.main-content {
    padding: 2.5rem 0;
    min-height: calc(100vh - 120px);
    background-color: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: #fafbfc;
}

.card-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #fafbfc;
    border-top: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
}

/* Vehicle Cards */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vehicle-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.vehicle-image {
    width: 100%;
    height: 200px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.vehicle-details { padding: 1.5rem; }

.vehicle-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.vehicle-info {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.vehicle-info p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.vehicle-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Abel', Helvetica, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border);
    color: #666;
}

.btn-secondary:hover {
    background-color: var(--gray);
    color: #333;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Abel', Helvetica, Arial, sans-serif;
    color: #333;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

input:read-only {
    background-color: var(--gray);
    color: var(--dark-gray);
}

/* Notifications / Flash messages */
.notification-item {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 6px 6px 0;
}

.notification-item.high  { border-left-color: var(--danger); }
.notification-item.medium { border-left-color: var(--warning); }
.notification-item.low    { border-left-color: var(--success); }

.notification-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Footer */
#footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 16px;
    font-size: 12px;
}

#footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

#footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    #header_nav { display: none; }
    .hamburger { display: flex; }

    .vehicle-grid { grid-template-columns: 1fr; gap: 1rem; }
    .vehicle-actions { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 2rem; }
    .main-content { padding: 1.5rem 0; }
}

@media (max-width: 480px) {
    .vehicle-image { height: 150px; font-size: 2rem; }
    .card-body { padding: 1rem; }
    .btn { width: 100%; margin-bottom: 0.5rem; }
}

/* Utilities */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.text-primary   { color: var(--accent); }
.text-secondary { color: var(--dark-gray); }
.text-success   { color: var(--success); }
.text-warning   { color: var(--warning); }
.text-danger    { color: var(--danger); }
