:root {
    /* Color Palette */
    --primary-red: #C00000;
    /* Main brand red */
    --dark-red: #8E1616;
    /* Darker red for accents */
    --light-red: #FFE5E5;
    /* Very light red for backgrounds */
    --pure-black: #000000;
    /* True black for text */
    --dark-gray: #1D1616;
    /* Dark gray (almost black) */
    --pure-white: #FFFFFF;
    /* Pure white */
    --light-gray: #F8F9FA;
    /* Off-white for subtle backgrounds */

    /* Gradients */
    --bg-gradient: linear-gradient(to bottom, var(--dark-red), var(--pure-white));
}

/* Base Styles */
body {
    background: var(--bg-gradient);
    color: var(--pure-black);
    font-family: 'Segoe UI', sans-serif;
}

/* Text Colors */
.text-red {
    color: var(--primary-red) !important;
}

.text-black {
    color: var(--pure-black) !important;
}

.text-white {
    color: var(--pure-white) !important;
}

/* Buttons */
.btn-theme {
    background-color: var(--primary-red);
    color: var(--pure-white);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-theme:hover,
.btn-theme:active,
.btn-theme.active,
.dropdown-menu.dropdown-menu-dark.show:hover {
    background-color: var(--dark-red);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.dropdown-menu.dropdown-menu-dark.show {
    background-color: var(--primary-red);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card-box {
    background-color: var(--pure-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.card-box h5 {
    color: var(--primary-red) !important;
    font-weight: 600;
}

.car-card {
    background-color: var(--dark-gray) !important;
    color: var(--pure-white) !important;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.car-card .card-body {
    background-color: var(--dark-gray);
}

.car-card h6 {
    color: var(--pure-white) !important;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 8px;
    display: inline-block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pure-black);
    line-height: 1.2;
}

.hero img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--pure-white);
}

/* Section Titles */
.section-title {
    color: var(--pure-black);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Navbar (add to your navbar component) */
.navbar {
    background-color: var(--primary-red) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
    color: var(--pure-white) !important;
}

/* Footer (add to your footer component) */
.footer {
    background-color: var(--dark-gray);
    color: var(--pure-white);
    padding: 40px 0;
}

.footer h5 {
    color: var(--pure-white);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    display: inline-block;
}

/* Add to your main.css */
.token-modal {
    background-color: var(--pure-white);
    border: 2px solid var(--primary-red);
    border-radius: 10px;
    color: var(--pure-white);
}

.token-modal .modal-header {
    background: var(--primary-red);
    color: white;
    border-bottom: 2px solid var(--primary-red);
    padding: 15px 20px;
}

.token-modal .modal-title {
    color: var(--pure-white);
    font-weight: 600;
}

.token-modal .model-label {
    color: var(--primary-red);
}

.token-modal .modal-footer {
    border-top: 2px solid var(--primary-red);
    padding: 15px 20px;
}

.token-input {
    background-color: var(--pure-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    color: var(--dark-gray);
    padding: 15px;
    font-family: monospace;
    border-radius: 5px;
    resize: vertical;
}

.token-input:focus {
    background-color: var(--pure-white);
    color: var(--dark-gray);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(192, 0, 0, 0.25);
}

.token-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.token-modal .btn-close:hover {
    opacity: 1;
}

.msarweb {
    color: #FE6C00;
}

/* Toastr-like styles adapted for your Bootstrap toast */

#liveToast {
    width: 300px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-color: #fff;
}

#liveToast .toast-header {
    font-weight: 700;
    font-size: 1rem;
    border-bottom: none;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#liveToast .toast-title {
    flex-grow: 1;
}

#liveToast .toast-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 10px;
}

#liveToast .btn-close {
    opacity: 0.7;
}

#liveToast .btn-close:hover {
    opacity: 1;
}

#liveToast .toast-body {
    padding: 0.75rem 0.75rem;
    border-left: 5px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
}

/* Toast types */

#liveToast.success .toast-header {
    background-color: #51a351;
    color: white;
}

#liveToast.success .toast-body {
    border-left-color: #3b773b;
    background-color: #dff0d8;
    color: #3c763d;
}

#liveToast.danger .toast-header {
    background-color: #bd362f;
    color: white;
}

#liveToast.danger .toast-body {
    border-left-color: #942a25;
    background-color: #f2dede;
    color: #a94442;
}

#liveToast.warning .toast-header {
    background-color: #f89406;
    color: black;
}

#liveToast.warning .toast-body {
    border-left-color: #c67605;
    background-color: #fcf8e3;
    color: #8a6d3b;
}

#liveToast.info .toast-header {
    background-color: #2f96b4;
    color: white;
}

#liveToast.info .toast-body {
    border-left-color: #26748f;
    background-color: #d9edf7;
    color: #31708f;
}








/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero img {
        margin-top: 20px;
    }

    .card-box {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {

    /* Hero section adjustments */
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero img {
        max-width: 90%;
        margin-top: 20px;
    }

    /* Button sizing */
    .btn-theme {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* Card adjustments */
    .card-box {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    /* Car cards grid */
    .car-card {
        margin-bottom: 15px;
    }

    /* Section title */
    h4.text-black {
        font-size: 1.3rem;
        text-align: center;
    }

    /* Improve touch targets */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Very small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .card-box {
        padding: 15px 10px;
    }

    .car-card .card-body {
        padding: 15px;
    }

    .car-card h6 {
        font-size: 0.9rem;
    }

    .car-card p {
        font-size: 0.8rem;
    }
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 15px;
    }

    .navbar .dropdown-menu {
        width: 100%;
        text-align: center;
    }

    .navbar .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    #settingsDropdownContainer {
        margin-bottom: 8px;
    }
}

/* Ensure navbar stays on top */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}