/* assets/css/custom.css - Vahanam Light Automotive SaaS Theme */

:root {
    --bs-body-bg: #f8fafc;
    --bs-body-color: #1e293b;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #64748b;
    --bs-success: #059669;
    --bs-info: #0284c7;
    --bs-warning: #d97706;
    --bs-danger: #dc2626;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --card-border-color: #e2e8f0;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

/* Sidebar Styling */
.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--card-border-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--card-border-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.sidebar-brand i {
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all 0.15s ease;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 1.25rem;
    color: #64748b;
    transition: color 0.15s ease;
}

.sidebar-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.sidebar-link:hover i {
    color: var(--bs-primary);
}

.sidebar-link.active {
    background-color: #eff6ff;
    color: var(--bs-primary);
    font-weight: 600;
}

.sidebar-link.active i {
    color: var(--bs-primary);
}

/* Main Content Area */
.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar Styling */
.app-topbar {
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--card-border-color);
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 990;
}

.topbar-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.content-wrapper {
    padding: 1.75rem;
    flex-grow: 1;
}

/* Modern Card Styling */
.card {
    background: #ffffff;
    border: 1px solid var(--card-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.card-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Metrics & Stats Card */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--card-border-color);
    border-radius: 0.75rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Vehicle Badge Chips */
.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
}

.spec-chip i {
    color: #64748b;
}

.price-customer {
    color: #059669;
    font-weight: 700;
    font-size: 1.2rem;
}

.price-dealer {
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
}

.price-tag-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.dealer-tag-badge {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Car Gallery & Images */
.car-card-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f1f5f9;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.car-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .car-card-img {
    transform: scale(1.03);
}

.car-badge-top-left {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.car-badge-top-right {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1090;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .app-main {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 1rem;
    }
}
