/* General Styles */
:root {
    --primary-color: #DA291C;  /* PMS 485 C */
    --secondary-color: #A7A9AC;  /* Brand standard gray */
    --dark-color: #000000;  /* PMS Warm Black */
    --light-bg: #f8f9fa;
    --button-blue: #0056b3;  /* Blue color for buttons */
    
    /* Typography Scale */
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.75rem;
    --h4-size: 1.5rem;
    --h5-size: 1.25rem;
    --h6-size: 1rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    
    /* Line heights */
    --heading-line-height: 1.2;
    --body-line-height: 1.5;
}

/* Import fonts */
@import url('fonts.css');

html {
    scroll-padding-top: 80px; /* For smooth scrolling with fixed header */
}

body {
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Adjust based on your navbar height */
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    opacity: 1;
    transition: opacity 0.05s ease-in-out !important;
}

body.page-transition {
    opacity: 0.98;
}

/* Top Header Styles */
.top-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    height: 80px; /* match header height for vertical centering */
}

.logo img {
    height: 60px;
    width: auto;
    margin-top: 8px; /* push logo down a bit */
    display: block;
}

.main-menu {
    margin-right: auto;
}

.main-menu ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    display: inline-block;
}

.main-menu a {
    color: #222;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}

.main-menu a:hover {
    color: #dc3545;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.phone-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.phone-link i {
    color: var(--primary-color);
}

.portal-buttons {
    display: flex;
    gap: 1rem;
}

.btn-portal {
    background-color: var(--button-blue);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
}

.btn-portal:hover {
    background-color: #004494;
    color: white !important;
    transform: translateY(-2px);
}

/* Management Button */
.btn-portal.management {
    background-color: var(--button-blue);
    color: white !important;
    text-decoration: none;
}

.btn-portal.management:hover {
    background-color: #004494;
    color: white !important;
    text-decoration: none;
}

/* Launch Portal Section */
.launch-portal-header .hero-buttons .btn-portal {
    color: white !important;
    background-color: var(--button-blue);
}

.launch-portal-header .hero-buttons .btn-portal:hover {
    background-color: #004494;
    color: white !important;
}

/* Portal Buttons in Hero Section */
.dealer-portal-btn,
.management-btn {
    background-color: var(--button-blue);
    color: white !important;
    padding: 0.75rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.dealer-portal-btn:hover,
.management-btn:hover {
    background-color: #004494;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Header */
@media (max-width: 1200px) {
    .main-menu ul {
        gap: 1.5rem;
    }
    
    .header-right {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .phone-link span {
        display: none;
    }
    
    .main-menu ul {
        gap: 1rem;
    }
    
    .btn-portal {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    .portal-buttons {
        gap: 0.5rem;
    }
    
    .btn-portal {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    padding: 0;
    background: #fff;
}

.image-collage {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.collage-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #DA291C;
    border-color: #DA291C;
}

.hero-content .btn:hover {
    background-color: hsl(0, 87%, 24%);
    border-color: hsl(0, 87%, 24%);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* Card Styles */
.card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 150px;
    object-fit: contain;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 0;
    margin-top: 0;
}

.footer-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 0;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
    display: inline-block;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    font-size: 0.8rem;
    padding: 5px 0;
}

.footer-bottom span {
    display: inline-block;
    vertical-align: middle;
}

.social-links {
    margin: 0 3px;
}

.social-link {
    color: white;
    font-size: 1.1rem;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-bottom span {
        display: block;
        margin: 3px 0;
    }
    .footer-bottom span.divider {
        display: none;
    }
}

/* Partner Logos */
#partners img {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#partners img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Brands Section */
#brands {
    padding: 5rem 0;
    background-color: #fff;
}

#brands h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
}

.brands-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.brands-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.brands-container[style*="display: none"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.brand-item {
    flex: 0 1 auto;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #999;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments for brands section */
@media (max-width: 992px) {
    .brands-container {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .brand-item {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .brand-item {
        max-width: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.1s ease-in !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Detail Section */
.brand-detail {
    position: relative;
}

.brand-detail .row {
    min-height: 600px;
}

.brand-content {
    display: flex;
    align-items: center;
    padding: 4rem;
}

.blue-bg {
    background-color: #DA291C;
    color: white;
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.brand-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.brand-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.brand-content .btn-outline-light {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}

.brand-content .btn-outline-light:hover {
    background-color: hsl(0, 87%, 24%);
    border-color: hsl(0, 87%, 24%);
}

.brand-image {
    height: 100%;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for brand detail */
@media (max-width: 992px) {
    .brand-content {
        padding: 3rem 2rem;
    }
    
    .brand-detail .row {
        min-height: auto;
    }
    
    .brand-image {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .brand-content {
        padding: 2rem 1.5rem;
    }
    
    .brand-content h2 {
        font-size: 2rem;
    }
    
    .brand-image {
        min-height: 300px;
    }
}

/* Brand Cards Section */
#brand-cards {
    background-color: #fff;
    padding: 4rem 0;
}

.brand-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.brand-card .brand-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.brand-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-card:hover .card-img {
    transform: scale(1.05);
}

.brand-card .brand-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand-card .brand-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.brand-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.brand-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.brand-card .btn {
    align-self: flex-start;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive adjustments for brand cards */
@media (max-width: 992px) {
    .brand-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .brand-card .brand-image {
        height: 180px;
    }
}

/* Dealer Portal Section */
#dealer-portal {
    position: relative;
}

#dealer-portal .row {
    display: flex;
    margin: 0;
}

#dealer-portal .col-lg-6 {
    padding: 0;
}

.portal-image {
    width: 100%;
    display: block;
}

.portal-content {
    background-color: #2b2a2a;  /* Grey background only on the content side */
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Changed from center to flex-start */
}

.portal-content .content-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;  /* Changed from center to left */
    padding: 2rem;
}

.portal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.portal-content p {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.portal-content .btn-outline-light {
    border: 2px solid white;
    padding: 0.5rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.portal-content .btn-outline-light:hover {
    background-color: hsl(0, 87%, 24%);
    color: white;
}

@media (max-width: 992px) {
    #dealer-portal .row {
        flex-direction: column;
    }
    
    .portal-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .portal-content h2 {
        font-size: 1.75rem;
    }
    
    .portal-content p {
        font-size: 1rem;
    }
}

/* Blog Section */
#blog {
    padding: 5rem 0;
    background-color: #fff;
}

.blog-title {
    color: hsl(0, 87%, 24%);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-subtitle {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.blog-btn {
    background-color: hsl(0, 87%, 24%);
    color: white;
    padding: 0.8rem 3rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.blog-btn:hover {
    background-color: hsl(0, 87%, 24%);
    border-color: hsl(0, 87%, 24%);
    transform: translateY(-2px);
}

/* Responsive adjustments for blog section */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
}

/* Locations Section */
.location-banner {
    position: relative;
    background: url('../images/location-storefront.jpg') no-repeat center center;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.location-banner h2 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.location-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.location-btn {
    background-color: hsl(0, 87%, 24%);
    color: white;
    padding: 0.8rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.location-btn:hover {
    background-color: hsl(0, 87%, 24%);
    border-color: hsl(0, 87%, 24%);
    transform: translateY(-2px);
}

/* Responsive adjustments for locations section */
@media (max-width: 768px) {
    .location-banner h2 {
        font-size: 2.5rem;
    }
    
    .location-banner p {
        font-size: 1rem;
    }
}

/* Partners Section */
#partners {
    padding: 5rem 0;
    background-color: #fff;
}

#partners h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
}

.partners-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.partners-container[style*="display: none"] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.partner-item {
    flex: 0 1 auto;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments for partners section */
@media (max-width: 992px) {
    .partners-container {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .partner-item {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .partner-item {
        max-width: 200px;
    }
}

/* Contact Section */
.contact-banner {
    position: relative;
    background-image: url('../images/dealership-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    color: white;
}

.contact-overlay {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 0;
}

.contact-banner h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-banner p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-btn {
    margin-top: 1rem;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #DA291C;
    border: none;
}

.contact-btn:hover {
    background-color: hsl(0, 87%, 24%);
    border-color: hsl(0, 87%, 24%);
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    background-color: var(--dark-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: white;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 1rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
}

/* Corporate Address */
.corporate-address {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.corporate-address p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .contact-banner h2 {
        font-size: 2.5rem;
    }
    
    .contact-overlay {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .contact-banner h2 {
        font-size: 2rem;
    }
    
    .contact-banner p {
        font-size: 1rem;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.login-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.login-box h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 500;
}

.login-form {
    text-align: left;
    padding: 0 1rem;
}

.login-form h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    height: 50px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 41, 28, 0.25);
}

.login-btn {
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 1rem;
}

.login-btn:hover {
    background-color: #B22217; /* Darker shade of primary red */
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: #DA291C;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Hide header on login page */
.login-container + .navbar {
    display: none;
}

/* Admin Dashboard Styles */
.admin-container {
    min-height: calc(100vh - 60px); /* Adjust 60px if navbar height changes */
    background-color: #f8f9fa;
}

.admin-header {
    background-color: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #333;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.admin-welcome {
    margin-bottom: 2rem;
}

.admin-welcome h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.admin-welcome p {
    color: #6c757d;
    margin: 0;
}

.admin-cards .admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-cards .admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.admin-card .card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-card .card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.admin-card h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
}

.admin-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.admin-card .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
}

/* Admin Header Styles */
.admin-menu-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
}

.admin-menu-button:hover,
.admin-menu-button:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    background: #DA291C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-name {
    font-size: 0.9375rem;
    font-weight: 500;
}

.dropdown-menu {
    padding: 0.5rem 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    font-size: 0.9375rem;
}

.dropdown-item i {
    width: 16px;
    color: #6c757d;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Admin Base Styles */
.admin-body {
    background-color: #f8f9fa;
    padding-top: 60px;
}

.admin-top-header {
    background: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 60px;
}

.admin-top-header .header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.admin-top-header .logo img {
    height: 32px;
    width: auto;
}

/* Orders Page Styles */
.orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-filter i {
    color: #6c757d;
}

.btn-filter:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.orders-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.orders-table {
    margin: 0;
    white-space: nowrap;
    font-size: 0.875rem;
}

.orders-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
    padding: 1rem;
    border-top: none;
}

.orders-table td {
    padding: 1rem;
    vertical-align: middle;
    color: #333;
}

.order-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.order-link:hover {
    text-decoration: underline;
}

.status-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}

.status-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}

.orders-table tbody tr:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #f8f9fa;
    color: #DA291C;
}

.dropdown-item.active i {
    color: #DA291C;
}

/* Create Order Form Styles */
.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 41, 28, 0.25);
}

select.form-control {
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: #495057;
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

.pricing-info {
    background-color: #f8f9fa;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.price-row label {
    color: #495057;
    margin: 0;
}

.price-row .price {
    font-weight: 500;
    color: #333;
}

.submit-order-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .form-section {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
    }
    
    .form-section h2 {
        font-size: 1.125rem;
    }
}

/* Locations Page Styles */
.locations-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.locations-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.locations-table {
    margin: 0;
}

.locations-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
    padding: 1rem;
    border-top: none;
}

.locations-table td {
    padding: 1rem;
    vertical-align: middle;
    color: #333;
}

.locations-table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-footer {
    padding: 0.75rem 0;
    color: #6c757d;
    font-size: 0.875rem;
}

.table-footer .form-select {
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-color: #dee2e6;
}

.pagination-arrows .btn-link {
    color: #6c757d;
    padding: 0.25rem 0.5rem;
}

.pagination-arrows .btn-link:disabled {
    color: #dee2e6;
}

.btn-link.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-link.text-danger {
    color: #dc3545;
}

.btn-link.text-danger:hover {
    color: #bd2130;
}

/* Sales Reps Section Styles */
.sales-reps-container {
    margin-bottom: 1rem;
}

.sales-rep-row {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.sales-rep-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.remove-sales-rep {
    padding: 0.375rem;
    font-size: 1rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: var(--primary-color);
}

.remove-sales-rep:hover {
    color: #dc3545;
}

.add-sales-rep {
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    padding: 0;
    font-weight: 500;
}

.add-sales-rep:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.add-sales-rep i {
    margin-right: 0.5rem;
}

/* Services Page Styles */
.services-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-box {
    min-width: 300px;
}

.search-box .form-control {
    border-radius: 4px;
    padding-left: 2.5rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 1rem center;
}

.services-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.services-table {
    margin: 0;
}

.services-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
    padding: 1rem;
    border-top: none;
    white-space: nowrap;
}

.services-table th i {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    cursor: pointer;
}

.services-table td {
    padding: 1rem;
    vertical-align: middle;
    color: #333;
}

.services-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Dealer Portal Page Styles */
.dealer-portal-banner {
    background-image: url('../images/dealer-handshake.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dealer-portal-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dealer-portal-banner h1 {
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.launch-portal {
    background-color: #fff;
    padding: 2rem 0;
}

.launch-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0;
}

.dealer-portal-btn {
    background-color: #DA291C;
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.dealer-portal-btn:hover {
    background-color: hsl(0, 87%, 24%);
    color: #fff;
}

.features-section {
    background-color: #fff;
}

.features-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.portal-preview {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    object-fit: cover;
}

.enroll-section {
    background-image: url('../images/dealer-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0;
}

.enroll-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.enroll-section .container {
    position: relative;
    z-index: 1;
}

.enroll-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.enrollment-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 1rem;
    font-size: 1rem;
}

.enrollment-form .btn-primary {
    background-color: #DA291C;
    border: none;
    padding: 0.75rem 3rem;
    font-weight: 800;
}

.support-section {
    background-color: #f8f9fa;
}

.support-text {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-btn {
    background-color: #DA291C;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .dealer-portal-banner h1 {
        font-size: 2rem;
    }
    
    .portal-title {
        font-size: 2rem;
    }
    
    .features-title {
        font-size: 1.75rem;
    }
    
    .enroll-title {
        font-size: 2rem;
    }
    
    .portal-preview {
        margin-top: 2rem;
    }
}

/* Dealer Portal Login Page Styles */
.dealer-portal-login {
    background-color: #fff;
}

.dealer-portal-login .login-box {
    max-width: 600px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dealer-portal-login .login-logo {
    height: 50px;
    margin-bottom: 2rem;
}

.dealer-portal-login h1 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.dealer-portal-login .login-form {
    padding: 0;
}

.dealer-portal-login .login-form h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.dealer-portal-login .form-control {
    height: 45px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.dealer-portal-login .login-btn {
    background-color: var(--primary-color);
    border: none;
    font-weight: 500;
    height: 45px;
    margin-bottom: 1.5rem;
}

.dealer-portal-login .login-btn:hover {
    background-color: #B22217; /* Darker shade of primary red */
}

.dealer-portal-login .login-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.dealer-portal-login .continue-guest {
    display: inline-block;
    background-color: #28a745;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}

.dealer-portal-login .continue-guest:hover {
    background-color: #218838;
    color: white !important;
    text-decoration: none !important;
}

.dealer-portal-login .login-options a:not(.continue-guest) {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.dealer-portal-login .login-options a:not(.continue-guest):hover {
    color: #B22217;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dealer-portal-login .login-box {
        padding: 2rem;
    }
    
    .dealer-portal-login h1 {
        font-size: 1.25rem;
    }
}

/* Work Order Form Styles */
.work-order-form .card {
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.work-order-form .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.work-order-form .card-header h2 {
    margin: 0;
    color: #333;
}

.work-order-form .card-body {
    padding: 1.25rem;
}

.work-order-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.work-order-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 41, 28, 0.25);
}

.work-order-form .form-check {
    margin-bottom: 0.5rem;
}

.work-order-form .form-check-label {
    color: #495057;
    font-size: 0.9rem;
}

.work-order-form .alert-primary {
    background-color: #cce5ff;
    border-color: #b8daff;
    color: #DA291C;
}

.work-order-form .alert-primary .alert-link {
    color: #DA291C;
}

.work-order-form .btn-primary {
    background-color: #DA291C;
    border-color: #DA291C;
    padding: 0.5rem 2rem;
    font-weight: 500;
}

.work-order-form .btn-primary:hover {
    background-color: #B22217; /* Darker shade of primary red */
    border-color: #B22217;
}

/* Create Account Modal Styles */
#createAccountModal .modal-content {
    border-radius: 8px;
    border: none;
}

#createAccountModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

#createAccountModal .modal-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
}

#createAccountModal .modal-body {
    padding: 1rem 1.5rem;
}

#createAccountModal .modal-body p {
    margin-bottom: 0;
    color: #666;
}

#createAccountModal .modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}

#createAccountModal .btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 0.5rem 2rem;
    font-weight: 500;
}

#createAccountModal .btn-secondary:hover {
    background-color: #5a6268;
}

/* Footer Styles */
.footer-bottom {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-color));
    color: white;
    padding: 0.75rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.social-link:hover {
    color: white;
    opacity: 1;
    text-decoration: none;
}

.footer-nav {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-color));
    padding: 1rem 0;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-nav ul {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .footer-nav a {
        font-size: 0.8rem;
    }
}

/* Apply URW Form Extra Bold to specific elements */
.login-box h1,
.admin-header h1,
.dealer-portal-banner h1,
.portal-content h2,
.brand-content h2,
.blog-title,
.location-banner h2,
.contact-banner h2,
.features-title,
.enroll-title,
.portal-title,
.admin-welcome h2,
.form-section h2 {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

/* Apply URW Form Regular to specific elements */
.main-menu a,
.portal-content p,
.brand-content p,
.blog-subtitle,
.location-banner p,
.contact-banner p,
.features-list li,
.support-text,
.contact-info p,
.admin-welcome p,
.form-control,
.btn,
.dropdown-item,
.nav-link {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
    line-height: var(--heading-line-height);
    margin-bottom: 1rem;
}

h1, .h1 { font-size: var(--h1-size); }
h2, .h2 { font-size: var(--h2-size); }
h3, .h3 { font-size: var(--h3-size); }
h4, .h4 { font-size: var(--h4-size); }
h5, .h5 { font-size: var(--h5-size); }
h6, .h6 { font-size: var(--h6-size); }

/* Navigation and Links */
.main-menu a,
.nav-link,
.dropdown-item {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Buttons */
.btn {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

.btn-portal,
.btn-primary {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

/* Form Elements */
.form-control,
.form-label,
.form-check-label {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

label {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

/* Cards and Content */
.card-title {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

.card-text,
.card-body {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Portal Content */
.portal-content h2 {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

.portal-content p {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Admin Dashboard */
.admin-header h1,
.admin-welcome h2,
.form-section h2 {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

.admin-welcome p,
.form-section p {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Table Headers */
th {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

td {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Footer */
.footer-nav a,
.footer-bottom p {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Utility Classes */
.text-bold {
    font-weight: 800 !important;
}

.text-regular {
    font-weight: normal !important;
}

/* Brand Content */
.brand-content h2,
.blog-title,
.location-banner h2,
.contact-banner h2,
.features-title,
.enroll-title {
    font-family: 'URW Form', sans-serif;
    font-weight: 800;
}

.brand-content p,
.blog-subtitle,
.location-banner p,
.contact-banner p,
.features-list li,
.support-text,
.contact-info p {
    font-family: 'URW Form', sans-serif;
    font-weight: normal;
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.5rem;
        --h4-size: 1.25rem;
        --h5-size: 1.125rem;
        --h6-size: 1rem;
        --body-size: 0.9375rem;
    }
}

/* Update text colors */
.text-muted {
    color: var(--secondary-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

/* Update any remaining hardcoded colors */
[class*="btn-primary"] {
    background-color: var(--button-blue);
    border-color: var(--button-blue);
}

[class*="btn-primary"]:hover {
    background-color: #004494;
    border-color: #004494;
}

/* Responsive Admin Styles */
@media (max-width: 992px) {
    .admin-container {
        padding: 0 15px;
    }
    
    .admin-cards .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .admin-cards .col-md-4 {
        padding-right: 10px;
        padding-left: 10px;
        margin-bottom: 20px;
    }
    
    .admin-cards .col-md-4:last-child {
        padding-right: 0;
    }
    
    .admin-top-header .header-content {
        padding: 0 15px;
    }
    
    .table-responsive {
        border: 0;
    }
}

@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-welcome h2 {
        font-size: 1.25rem;
    }
    
    .admin-card h3 {
        font-size: 1.1rem;
    }
    
    .admin-card .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .admin-card .card-icon i {
        font-size: 20px;
    }
    
    .admin-actions {
        margin-left: auto;
    }
    
    .admin-name {
        display: none;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .form-label {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .admin-top-header {
        padding: 0.5rem 0;
    }
    
    .admin-top-header .logo img {
        height: 24px;
    }
    
    .admin-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .admin-body {
        padding-top: 50px;
    }
    
    .admin-container {
        min-height: calc(100vh - 50px);
    }
    
    .admin-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .admin-welcome {
        margin-bottom: 1rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .form-control {
        font-size: 0.9rem;
    }
    
    .scrollable-select {
        height: 150px;
    }
}

/* Responsive table styles for mobile */
@media (max-width: 767px) {
    .table-responsive-mobile {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .table-responsive-mobile thead {
        display: none;
    }
    
    .table-responsive-mobile tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
        border-radius: 4px;
    }
    
    .table-responsive-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem;
        text-align: right;
    }
    
    .table-responsive-mobile tbody td:last-child {
        border-bottom: none;
    }
    
    .table-responsive-mobile tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 0.5rem;
    }
    
    .table-responsive-mobile tbody td .btn-group {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }
}

/* Fix for form layouts on small screens */
@media (max-width: 767px) {
    .row > [class*="col-"] {
        margin-bottom: 15px;
    }
    
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* Custom Styles */
body {
    padding-top: 60px; /* Adjust based on your navbar height */
}

/* Make sure content area fills the space below navbar */
.admin-container {
    min-height: calc(100vh - 60px); /* Adjust 60px if navbar height changes */
}

/* Sidebar specific styles */
.sb-sidenav-dark {
    background-color: #212529;
}

.sb-sidenav-light {
    background-color: #f8f9fa;
}

/* Style for selected dealership in dropdown */
.selected-dealership {
    font-weight: bold;
    color: #0d6efd; /* Bootstrap primary color */
}

/* Page Loading Overlay Styles */
#page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    color: white;
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
    z-index: 1060; /* Higher than navbar/modals */
    font-size: 1.2rem;
    /* display: none; /* Initially hidden - controlled by inline style & JS */
}

#page-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
} 