/* Dashboard Wrapper */
#dashboard-wrapper {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: #08192B;
    padding-top: 20px;
}

.sidebar-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.sidebar ul {
    padding: 0;
    list-style: none;
}

.sidebar ul li {
    padding: 12px 20px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 12px 20px;
    transition: 0.3s ease-in-out;
}

.sidebar ul li a i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: var(--accent-orange);
    color: white;
    border-radius: 8px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    background: #f8f9fa;
    overflow-y: auto;
}

/* SETTINGS MENU */
.settings-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #08192B;
    color: white;
    padding: 20px;
    transition: 0.3s ease-in-out;
    z-index: 1000;
}

.settings-menu.open {
    right: 0;
}

.settings-menu .close-settings {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.settings-menu ul li {
    padding: 10px 0;
}

.settings-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: block;
}

.settings-menu ul li a:hover {
    color: var(--accent-orange);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 10px;
}

/* AJAX Content Container */
#ajax-content {
    min-height: 500px;
    padding: 20px;
    width: 100%;
    background: #f8f9fa;
}

/* Leads & Forms Styling */
.lead-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: 0.3s ease-in-out;
}

.lead-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Form Styling */
.card-form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Mobile Styles */
@media (max-width: 991px) {
    /* Make Sidebar Collapsible on Mobile */
    .sidebar {
        position: fixed;
        left: -250px; /* Hide sidebar by default */
        width: 250px;
        height: 100vh;
        background: #08192B;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .sidebar.show {
        left: 0; /* Show sidebar when toggled */
    }

    /* Make Dashboard Content Full Width */
    .main-content {
        margin-left: 0 !important;
        padding: 15px;
        width: 100%;
    }

    /* Fix Account Button Alignment */
    .navbar .dropdown {
        flex-grow: 1;
        text-align: right;
    }

    /* Improve Card Layout for Mobile */
    .dashboard-card {
        padding: 15px;
        margin-bottom: 15px;
        text-align: center;
    }

    .dashboard-card h3 {
        font-size: 1.8rem;
    }

    /* Reduce Sidebar Link Padding */
    .sidebar ul li a {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Make Cards More Compact */
    .row .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Button Spacing */
    .btn {
        margin-bottom: 15px;
    }
}


/* === THEME: DARK === */
body.theme-dark {
    background-color: #121212;
    color: #f5f5f5;
}

body.theme-dark .sidebar,
body.theme-dark .settings-menu {
    background: #1e1e1e;
    color: #f5f5f5;
}

body.theme-dark .sidebar a,
body.theme-dark .settings-menu a {
    color: #f5f5f5;
}

body.theme-dark .sidebar a:hover,
body.theme-dark .sidebar a.active,
body.theme-dark .settings-menu a:hover {
    background: var(--accent-orange);
    color: #fff;
}

body.theme-dark .main-content,
body.theme-dark #ajax-content,
body.theme-dark .card-form,
body.theme-dark .lead-card,
body.theme-dark .dashboard-card {
    background-color: #1e1e1e;
    color: #f5f5f5;
    border: 1px solid #333;
}

/* === THEME: BLUE === */
body.theme-blue {
    background-color: var(--primary-blue);
    color: white;
}

body.theme-blue .sidebar,
body.theme-blue .settings-menu {
    background-color: #0056b3;
    color: white;
}

body.theme-blue .sidebar a,
body.theme-blue .settings-menu a {
    color: white;
}

body.theme-blue .sidebar a:hover,
body.theme-blue .sidebar a.active,
body.theme-blue .settings-menu a:hover {
    background-color: var(--accent-orange);
    color: white;
}

body.theme-blue .main-content,
body.theme-blue #ajax-content,
body.theme-blue .card-form,
body.theme-blue .lead-card,
body.theme-blue .dashboard-card {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================= LIGHT THEME ================= */
.theme-light {
    background: #f8f9fa !important;
    color: #333 !important;
}

.theme-light .navbar,
.theme-light .sidebar,
.theme-light .settings-menu {
    background-color: #cecece !important;
    color: #333 !important;
}

.theme-light .navbar .nav-link {
    color: #333 !important;
}

.theme-light .navbar .nav-link:hover,
.theme-light .navbar .nav-link.active {
    color: #007bff !important;
}

.theme-light .dashboard-card,
.theme-light .lead-card,
.theme-light .card-form {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ccc;
}

/* LIGHT THEME — Sidebar Font Dark */
.theme-light .sidebar a,
.theme-light .sidebar li,
.theme-light .sidebar h4 {
    color: #222 !important;
}

/* LIGHT THEME — Top Menu Dropdown Dark */
.theme-light .dropdown-menu {
    background-color: #1e1e1e !important;
    color: #fff !important;
    border: none;
}

.theme-light .dropdown-menu .dropdown-item {
    color: #fff !important;
}

.theme-light .dropdown-menu .dropdown-item:hover,
.theme-light .dropdown-menu .dropdown-item:focus {
    background-color: #333 !important;
    color: #ffcc00 !important; /* Optional highlight */
}

/* LIGHT THEME — Fix Account Button Styling */
.theme-light .dropdown-toggle {
    background-color: #333 !important;   /* Darker button */
    color: #fff !important;              /* White text */
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
}

.theme-light .dropdown-toggle:hover,
.theme-light .dropdown-toggle:focus {
    background-color: #555 !important;
    color: #fff !important;
}

/* LIGHT THEME — Dropdown Menu */
.theme-light .dropdown-menu {
    background-color: #1e1e1e !important;
    border: none;
    border-radius: 6px;
}

.theme-light .dropdown-menu .dropdown-item {
    color: #fff !important;
    padding: 10px 15px;
}

.theme-light .dropdown-menu .dropdown-item:hover {
    background-color: #333 !important;
    color: #ffcc00 !important;
}


/* ================= DARK THEME ================= */
.theme-dark {
    background: #1e1e1e !important;
    color: #f1f1f1 !important;
}

.theme-dark .navbar,
.theme-dark .sidebar,
.theme-dark .settings-menu {
    background-color: #1e1e1e !important;
    color: #f1f1f1 !important;
}

.theme-dark .navbar-brand,
.theme-dark .navbar .nav-link {
    color: #cfcfcf !important;
}

.theme-dark .navbar .nav-link:hover,
.theme-dark .navbar .nav-link.active {
    color: #fff !important;
}

.theme-dark .dashboard-card,
.theme-dark .lead-card,
.theme-dark .card-form {
    background: #2c2c2c !important;
    color: #f1f1f1 !important;
    border: 1px solid #444;
}


/* ================= BLUE THEME ================= */
.theme-blue {
    background: #e8f0ff !important;
    color: #003366 !important;
}

.theme-blue .navbar-brand {
    color: #fff !important;
}

.theme-blue .navbar,
.theme-blue .sidebar,
.theme-blue .settings-menu {
    background-color: #0056b3 !important;
    color: #ffffff !important;
}

.theme-blue .navbar .nav-link {
    color: #ffffff !important;
}

.theme-blue .navbar .nav-link:hover,
.theme-blue .navbar .nav-link.active {
    color: #ffcc00 !important; /* Yellow contrast on hover/active */
}

.theme-blue h3 {
    color: #003366 !important;
}

.theme-blue .dashboard-card,
.theme-blue .lead-card,
.theme-blue .card-form {
    background: #ffffff !important;
    color: #003366 !important;
    border: 2px solid #007bff !important;
}

/* Dropdown Indicator */
.theme-dark .dropdown-toggle::after,
.theme-blue .dropdown-toggle::after {
    color: #fff !important;
}

.theme-light .dropdown-toggle::after {
    color: #000000 !important;
}
