/* ========== Root & Reset ========== */
:root {
    --bs-primary: #ff805d;
    --bs-primary-rgb: 255, 128, 93;
    --primary: #ff805d;
    --primary-light: #ffefea;
    --bg: #ffffff;
    --text: #222;
    --subtext: #555;
    --border: #e0e0e0;
    --input-bg: #f9f9f9;
}

/* Solid Primary Button */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: #e6724d;
    --bs-btn-hover-border-color: #e6724d;
    --bs-btn-active-bg: #cc6342;
    --bs-btn-active-border-color: #cc6342;
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}

/* Outline Primary Button */
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}

/* Check button styles */
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Focus states */
.btn-primary:focus,
.btn-outline-primary:focus {
    /*box-shadow: 0 0 0 0.25rem rgba(255, 128, 93, 0.25);*/
}

body.dark {
    --bg: #1e1e1e;
    --text: #f2f2f2;
    --subtext: #bdbdbd;
    --border: #333;
    --input-bg: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
   
}

/* ========= Global Reset ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--primary-light) !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #004aad;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

/* Reset browser default styling */
input[type="date"],
input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--input-bg) !important;
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
}

.bg-light {
    background-color: var(--input-bg) !important;
}

.input-group-text {
    background-color: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}

/* Optional: placeholder style */
input[type="date"]::placeholder,
input[type="time"]::placeholder {
    color: var(--text);
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
}

/* Focus style */
input[type="date"]:focus,
input[type="time"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Remove link styles */
a {
    text-decoration: none !important;
    outline: none !important;
    color: inherit;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: inherit;
}

/* Buttons reset */
button {
    outline: none !important;
    box-shadow: none !important;
    border: none;
    background: transparent;
}

button:focus,
button:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Input and textarea reset */
input,
textarea,
select {
    outline: none !important;
    box-shadow: none !important;
    border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--primary);
}

/* List reset */
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Headings and paragraphs */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

.no-scroll {
    overflow: hidden;
}
.accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}
.accordion-block {
    border-bottom: 1px solid #ececed;
}
.accordion-header {
    border: none;
    background-color: #fff;
    cursor: pointer;
    text-align: left;
    padding: 16px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 38px;
}
.accordion-header span {
    font-size: 20px;
    font-weight: 900;
    line-height: 30px;
    letter-spacing: 2%;
}
@media screen and (max-width: 767px) {
    .accordion-header span {
        font-size: 16px;
        font-weight: 700;
        line-height: 28px;
        letter-spacing: 0;
    }
}
.accordion-header.active {
    padding-bottom: 0;
    background-color: #fff7f5;
}
.accordion-content {
    background-color: #fff7f5;
    padding: 16px 16px 24px;
}
.accordion-content p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #475467;
}
@media screen and (max-width: 767px) {
    .accordion-content p {
        font-size: 14px;
        line-height: 20px;
    }
}
.error {
    padding: 150px 25px 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.error-img {
    margin-bottom: 88px;
}
@media screen and (max-width: 767px) {
    .error-img {
        width: 200px;
        margin-bottom: 80px;
    }
}
.error-text_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 594px;
    margin-bottom: 64px;
}
@media screen and (max-width: 767px) {
    .error-text_wrapper {
        gap: 16px;
        margin-bottom: 48px;
    }
}
.error-text_wrapper h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 38px;
}
@media screen and (max-width: 767px) {
    .error-text_wrapper h1 {
        font-size: 24px;
        line-height: 32px;
    }
}
.error-text_wrapper p {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}
@media screen and (max-width: 767px) {
    .error-text_wrapper p {
        font-size: 16px;
        line-height: 24px;
    }
    .error-cta {
        width: 100%;
    }
}
.page-wrapper {
    min-height: 750px;
}
.button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Remove focus ring globally for non-keyboard navigation */
:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.mt-2 {
    margin-top: 2rem;
}

/* ========== Layout ========== */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ===== Left Side ===== */
.login-left {
    flex: 0.7;
    padding: 3rem 8rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* ===== Sign upLeft Side ===== */
.signup-left {
    flex: 0.7;
    padding: 3rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.brand {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.text-brand {
    color: var(--primary);
    margin-right: 0.2rem;
    font-size: 1rem;
}

.brand img {
    width: 113.14px;
    height: auto;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
}

/* ===== Content ===== */
.login-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.login-text {
    color: var(--text);
    margin-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.terms {
    padding: 1.2rem;
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    margin-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px; /* Adjust size as needed */
    width: 20px; /* Adjust size as needed */
    background-color: #eee; /* Default background color */
    border-radius: 3px; /* Optional: rounded corners */
    border: 1px solid #ccc; /* Optional: border */
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none; /* Hidden by default */
}

.custom-checkbox-container input:checked ~ .checkmark:after {
    display: block; /* Show when checked */
    left: 7px; /* Adjust position */
    top: 3px; /* Adjust position */
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container:hover input ~ .checkmark {
    background-color: #ccc; /* Hover effect */
}

.custom-checkbox-container input:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.5); /* Focus indicator */
}

/* ===== Form ===== */
.login-form label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text);
}

/* selects and inputs */

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border 0.3s;
}

./* focus */
.login-form input:focus,
.login-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(255, 128, 93, 0.08);
}

/* hint / small text */
.login-form .help {
    font-size: 0.85rem;
    color: var(--subtext);
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.view-password {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-40%);
    cursor: pointer;
    color: var(--subtext);
    font-size: 0.95rem;
}

/* agreement box */
.agreement {
    display: block;
    background: var(--muted-bg);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--subtext);
    margin-top: 8px;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login {
    display: inline-block;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    transition: all 0.2s ease-in-out;
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 140, 66, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;

    cursor: pointer;
}
.btn-outline:hover {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
}

.forgot {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.signup-text {
    margin-top: 2rem;
    font-size: 0.95rem;
}

.signup-text a {
    color: var(--primary);
    text-decoration: none;
}

/* ===== Right Side ===== */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-right img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
/* ========== Smaller UI touches ========== */
select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'14'%20height%3D'10'%20viewBox%3D'0%200%2014%2010'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M7%2010L0%200h14L7%2010z'%20fill%3D'%23999'%20/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 40px;
}

/* ===== Responsive ===== */

@media screen and (max-width: 991px) {
    .login-left {
        padding: 2.5rem 2rem;
        flex: 1;
    }
    .login-right {
        display: none;
    }
    .login-container {
        flex-direction: column;
    }
    .login-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 767px) {
    .login-left {
        padding: 1.5rem;
    }
    .form-buttons {
        flex-direction: column;
    }
    .form-buttons .btn {
        width: 100%;
    }
    .progress-step {
        gap: 8px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 767px) {
    .login-container {
        flex-direction: column;
    }

    .login-right {
        display: none;
    }

    .login-left {
        width: 100%;
        padding: 2rem;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-text {
        font-size: 0.9rem;
    }
}

/* ========== Signup Page Styles ========== */

/* ========== Progress / Steps ========== */
.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
    color: var(--subtext);
    font-size: 0.92rem;
}

/* Each step group */
.progress-step .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* small connector line between steps */
.progress-step .line {
    height: 2px;
    width: 48px;
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    opacity: 0.2;
}

/* icons inside step - style */
.progress-step .step i {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--border);
}

/* active/complete states */
.progress-step .step:first-child i,
.progress-step .step.active i {
    color: var(--primary);
    filter: none;
}
.progress-step .step:first-child span,
.progress-step .step.active span {
    color: var(--primary);
}

/* ===== Steps Section ===== */
.steps {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--subtext);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.step i {
    color: var(--border);
    transition: color 0.3s;
}

.step.active {
    color: var(--primary);
    font-weight: 600;
}

.step.active i {
    color: var(--primary);
}

/* ========== Form Section ========== */
.form-section {
    margin-top: 6px;
}

.form-section-header {
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.line-separator {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

/* Hover & Active State */

/* Buttons alignment */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Steps container */
.steps {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
    color: var(--subtext);
    font-weight: 500;
}

/* Step */
.steps .step {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    white-space: nowrap;
}

/* REMOVE underline system */
.steps .step::after {
    display: none !important;
}

/* Desktop: Connector line BETWEEN steps */
.steps .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 0.5rem);
    width: 3rem; /* line length */
    height: 1px;
    background: #dcdcdc;
    transform: translateY(-50%);
}

/* Active desktop colors */
.steps .step.active {
    color: var(--primary);
    font-weight: 600;
}

.steps .step.active:not(:last-child)::before {
    background: var(--primary);
}

.steps .step.active i {
    color: var(--primary);
}

@media screen and (max-width: 767px) {
    /* center everything */
    .steps {
        justify-content: center;
        gap: 2.5rem;
        font-size: 0.73rem;
    }

    /* stack icon above text */
    .steps .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.3rem;
    }

    /* REMOVE connecting line on mobile */
    .steps .step::before {
        display: none !important;
    }

    /* spacing for icon */
    .steps .step i {
        margin-bottom: 3px;
    }
}

/* ========== Signup Page Enhancements ========== */

/* Adjust signup layout */
.signup-left {
    flex: 0.7;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== Signup Page Enhancements ========== */

/* Adjust signup layout */
.signup-left {
    flex: 0.7;
    padding: 3rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 138vh;
}

.signup-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 142vh;
}

.signup-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inputs and labels spacing tweaks */
.login-form label {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    transition: border-color 0.3s ease;
}

.login-form input:focus,
.login-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 128, 93, 0.15);
}

/* Password toggle fix */
.form__password {
    position: relative;
}

.form__toggle {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-40%);
    cursor: pointer;
    color: var(--subtext);
    font-size: 0.95rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-40%);
    cursor: pointer;
    color: var(--subtext);
    font-size: 0.95rem;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-buttons .btn {
    flex: 1;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .signup-left {
        padding: 2.5rem;
    }
    .signup-right {
        display: none;
    }
    .steps {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

.dashboard {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard .content {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

.dropdown-menu {
    min-width: 120px;
    border-radius: 8px;
    font-size: 14px;
}

.dropstart .dropdown-toggle::before {
    display: inline-block;
    margin-right: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 240px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

/* Add spacing above the first sidebar item */
.sidebar nav li:first-child {
    margin-top: 45px;
}

.sidebar .brand {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.2rem;
}
.sidebar .brand img {
    margin-left: 13px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav li {
    margin-bottom: 25px;
}

.sidebar nav a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
    justify-content: flex-start; /* ensures icon and text align left */
}

.sidebar nav a i {
    width: 20px;
    text-align: center;
}

.sidebar nav a:hover:not(.active),
.sidebar nav a:hover:not(.active) i {
    color: var(--primary);
}

.sidebar nav a.active,
.sidebar nav a.active i {
    background: var(--primary);
    color: #fff;
}

.bottom {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-top: 18px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.bottom a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    justify-content: flex-start;
    transition: 0.3s;
}

.bottom a:hover:not(.active),
.bottom a :not(.active) i {
    color: var(--primary);
}

.bottom a.active,
.bottom a.active i {
    background: var(--primary);
    color: #fff;
}

.bottom a i {
    width: 20px;
    text-align: center;
}

.help,
.logout {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ===== Top Nav ===== */

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-initial:hover {
    transform: scale(1.05);
    background-color: none;
}

/* Dropdown styling */
.user-info .dropdown-menu {
    border-radius: 0.75rem;
    min-width: 160px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.user-email {
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions button {
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-actions button:hover {
    background: var(--hover);
}

.logout-btn {
    background: #c33;
    color: #fff;
}

.logout-btn:hover {
    background: #a22;
}

.menu-btn {
    display: none;
}

/* ===== Main Content ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 10px;
}
header h5 {
    padding: 0 5px;
}
header .gap-3 {
    padding: 0 20px;
}

.main-header {
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
    margin-bottom: 20px;
}

.create-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
}
.create-btn:hover {
    background: #ffefea;
    color: var(--primary);
}

/* Tabs Container */
.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: visible; /* ← Add this */
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    overflow: visible; /* ← Changed from scrollbar-width: none */
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}
/* Tabs span + dropdown toggle */
.tabs span,
.tabs .dropdown-toggle {
    font-size: 1rem;
    color: var(--subtext);
    padding: 6px 0 10px 0;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}
/* Dropdown styling reset (Bootstrap safe) */
.tabs .dropdown {
    position: relative;
    overflow: visible; /* ← Ensure this is set */
}

.tabs .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

.tabs .dropdown-menu {
    margin-top: 6px !important;
    z-index: 1055;
    min-width: 180px;
    position: absolute !important; /* ← Force absolute positioning */
    left: 0 !important; /* ← Align to left on mobile */
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .tabs {
        gap: 1.5rem; /* Reduce gap on mobile */
    }

    .tabs .dd-menu {
        left: auto !important;
        right: 0 !important; /* Align to right edge on mobile if needed */
        transform: none !important;
    }

    /* Alternative: Make dropdown full width on mobile */
    .tabs .dropdown-menu {
        min-width: 200px;
        max-width: 90vw; /* Prevent overflow beyond viewport */
    }
}

/* Hover and active states */
.tabs span:hover,
.tabs .dropdown-toggle:hover {
    color: var(--primary);
}

.tabs span.active,
.tabs .dropdown-toggle.active {
    color: var(--primary);
    font-weight: 600;
}

.tabs span.active::after,
.tabs .dropdown-toggle.active::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .tabs {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .tabs {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
        overflow: visible;
    }

    .filter {
        align-self: flex-end;
    }

    .tabs .dropdown-menu {
        position: absolute;
        left: 0;
        right: auto;
    }
}

@media (max-width: 480px) {
    .tabs span,
    .tabs .dropdown-toggle {
        font-size: 0.9rem;
    }

    .tabs {
        gap: 1rem;
    }
}

/* Filter (Right Side) */
.filter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--subtext);
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter i {
    font-size: 1rem;
    color: var(--primary);
}

.filter:hover {
    color: var(--primary);
}

/* Event Card (light/dark adaptive) */
.event-card {
    background-color: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px !important;
    min-height: 180px;
    box-shadow: 0 1px 3px 0 rgba(16, 24, 40, 0.1);
    transition: all 0.3s ease;
}

.event-card .event-icon i:hover {
    color: var(--primary) !important;
}
.event-card .fa-ticket {
    color: var(--primary);
}

.event-card .col-md-3 {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/*.event-card:hover {*/
/*    transform: translateY(-3px);*/
/*    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);*/
/*}*/

.event-card img {
    width: 160px;
}

/* Event Image */
.event-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 2px;
}

/* Badge (event type) */
.event-type {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    background: var(--input-bg) !important;
    color: var(--primary) !important;
}

.event-type h6,
.event-type p {
    color: var(--primary) !important;
}

/* Ticket row at the bottom */
.event-card .text-muted i {
    color: var(--primary);
}

/* No Event Card */
.no-event-card {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    gap: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.no-event-card .icon-lg {
    color: var(--primary);
}

.icon-lg {
    font-size: clamp(3rem, 6vw, 4rem);
    opacity: 0.85;
}

/* Responsive tweaks */
@media screen and (max-width: 767px) {
    .event-img {
        height: 160px;
    }
    .event-card {
        padding: 1rem;
        min-height: 200px;
    }
    .cursor-pointer {
        font-size: 1.2rem;
    }
}
/* Hover effects for icons */
.cursor-pointer {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.cursor-pointer:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Responsive tweaks */
@media screen and (max-width: 767px) {
    .event-img {
        height: 160px;
    }
    .event-card {
        padding: 1rem;
        min-height: 200px;
    }
    .cursor-pointer {
        font-size: 1.2rem;
    }
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.bottom-nav a {
    color: var(--subtext);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

.bottom-nav a i {
    font-size: 1.2rem;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--primary);
}

/* ===== Responsive ===== */
@media screen and (max-width: 1000px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 200;
    }

    .sidebar.show {
        left: 0;
        background: var(--bg);
    }

    .menu-btn {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .bottom-nav {
        display: flex;
    }

    .main {
        padding-bottom: 70px;
    }
}

/* Core Layout Tweaks */
.dashboard-content {
    color: var(--text);
}

.balance-card {
    background: var(--primary);
    color: var(--text);
}

.balance-card {
    border-radius: 0.6rem;
    color: #fff;
    min-height: 130px;
}

@media (max-width: 768px) {
    .balance-card {
        padding: 1.25rem;
    }

    /* Keep top row horizontal & spaced on mobile */
    .balance-card > .d-flex:first-child {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    /* Balance label smaller for mobile fit */
    .balance-card h6 {
        font-size: 0.89rem;
    }

    .balance-card a {
        font-size: 0.7rem;
    }

    .balance-card h3 {
        font-size: 1.5rem;
    }
}

/* --- Portfolio Overview --- */
.portfolio-card {
    background-color: var(--input-bg);
    color: var(--text);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* --- Stat Cards --- */
.stat-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card h6 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--subtext);
    margin-bottom: 0.25rem;
}

.stat-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: auto;
}
.stat-card:hover {
    transform: translateY(-3px);
}

/* Pay Zero Fees Card */
.pay-zero-card {
    background-color: var(--input-bg);
    color: var(--text);
}
.pay-zero-card .fa-percent {
    color: var(--primary);
}

/* Long Term Investment Card */
.longterm-card {
    background-color: var(--input-bg);
    color: var(--text);

    min-height: 320px;
}

/* Support Card */
.support-card {
    background-color: var(--input-bg);
    color: var(--text);
}

/* Buttons */
.btn-warning {
    background: var(--primary) !important;
    border: none;
    color: #fff;
    padding: 0.45rem 1rem;
}
.btn-warning:hover {
    background: #e36b4a !important;
}

/* Clean discount table styling */
.discount-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.table > :not(caption) > * > * {
    background-color: transparent;
}

/* Header */
.discount-table thead {
    background-color: #f7f7f7;
    border-bottom: 1px solid var(--border);
}

.discount-table th {
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
}

/* Rows */
.discount-table td {
    font-size: 0.9rem;
    padding: 1rem;
    border: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.discount-table tbody tr:last-child td {
    border-bottom: none;
}

/* Hover */
.discount-table tbody tr:hover {
    background-color: var(--input-bg);
    transition: background 0.2s ease;
}

/* Status badges */
.status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.active {
    background: #e9f8ef;
    color: #18864b;
}

.status.expired {
    background: #fdecea;
    color: #b42525;
}

.status.draft {
    background: #fff7e6;
    color: #b17800;
}

.status.pending {
    background: #fff4e5;
    color: #b17800;
}

.status.failed {
    background: #fdecea;
    color: #b42525;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.27rem 0.6rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bg-success {
    background-color: #e9f8ef !important;
    color: #18864b !important;
}

.bg-danger {
    background-color: #fdecea !important;
    color: #b42525 !important;
}

.bg-draft {
    background-color: #fff7e6 !important;
    color: #b17800 !important;
}

.bg-warning {
    background-color: #fff4e5 !important;
    color: #b17800 !important;
}

/* Compact Table Styling */
.compact-table th,
.compact-table td {
    font-size: 0.875rem; /* smaller font for desktop/mobile */
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
}

.compact-table th {
    background-color: var(--bs-light);
    color: #555;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-bs-theme="dark"] .compact-table th {
    background-color: #1f1f1f;
    color: var(--border);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Softer row borders */
.compact-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-bs-theme="dark"] .compact-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Smaller icons */
.compact-table i {
    font-size: 0.9rem;
}

/* Button reset for tighter layout */
.compact-table .btn-link {
    padding: 0.25rem 0.4rem;
}
.compact-table .btn-link i {
    color: var(--text);
}

/* Status Badges */
.status {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 30px;
    font-weight: 500;
}

.status.active {
    background: #e8f8f1;
    color: #0f5132;
}

.status.pending {
    background: #fff4e5;
    color: #b17800;
}

.status.failed {
    background: #fdecea;
    color: #b42525;
}

/* Mobile optimization */
@media screen and (max-width: 767px) {
    .compact-table th,
    .compact-table td {
        font-size: 0.8rem;
        padding: 0.45rem 0.5rem;
    }
    .compact-table i {
        font-size: 0.8rem;
    }
}

/* Buttons */
.btn-link {
    text-decoration: none !important;
    outline: none !important;
}

.btn-link i {
    font-size: 1rem;
    color: #666;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-link:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    overflow-y: auto;
    width: 240px;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

/* ===== Top Navigation ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 70px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-nav h5 {
    margin-left: 1rem;
}

/* ===== Main Section ===== */
.main {
    margin-left: 240px;
    margin-top: 70px;
    padding: 20px;
    transition: margin 0.3s ease;
    min-width: 0;
    overflow-x: hidden;
}

/* ===== Mobile/Tablet View ===== */
@media screen and (max-width: 991px) {
    .sidebar {
        left: -260px;
        transition: left 0.3s ease;
    }
    .sidebar.show {
        left: 0;
    }

    .top-nav {
        left: 0;
    }

    .main {
        margin-left: 0;
        margin-top: 70px;
        padding: 10px;
    }

    .content {
        padding: 5px;
        overflow-x: auto;
    }
}

/* ===== Extra Small Devices ===== */
@media screen and (max-width: 767px) {
    .main {
        margin-left: 0;
        margin-top: 70px;
    }

    .content {
        padding: 5px;
        overflow-x: auto;
    }

    .top-nav h5 {
        margin-left: 0;
    }

    .sidebar {
        left: -260px;
    }
    .sidebar.show {
        left: 0;
    }

    /* Sidebar scroll bar */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }
    .sidebar::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 10px;
    }

    .cursor-pointer {
        cursor: pointer;
    }
}

/* --- Portfolio Overview --- */
.portfolio-card {
    background-color: var(--input-bg);
    color: var(--text);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* --- Stat Cards --- */
.stat-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card h6 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--subtext);
    margin-bottom: 0.25rem;
}

.stat-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: auto;
}

/* --- Layout Fix for Right Sidebar --- */
@media screen and (min-width: 991px) {
    /* Reduce left column width slightly to allow right sidebar to fit */
    .main-content .col-lg-8 {
        flex: 0 0 66%;
        max-width: 66%;
    }

    .main-content .col-lg-4 {
        flex: 0 0 34%;
        max-width: 34%;
    }
}

/* --- Keep All Cards Same Height --- */
.portfolio-card .row > [class*="col-"] {
    display: flex;
}

.portfolio-card .stat-card {
    flex-grow: 1;
}

/* --- Responsive Behavior --- */
@media screen and (max-width: 991px) {
    .portfolio-card {
        margin-bottom: 1rem;
    }

    .stat-card {
        min-height: auto;
    }
}

.card:hover {
    background-color: none;
    transform: none;
}

/* ========== Event Setup Form Styling ========== */
.event-setup .card {
    background: var(--bg);
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-setup .form-control,
.event-setup .form-select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: 0.2s ease;
    color: var(--text);
}

.event-setup .form-control:focus,
.event-setup .form-select:focus,
.event-setup .form-date:focus {
    border-color: var(--primary);
    /* box-shadow: var(--box-shadow); */
}

.event-setup .form-check-input.large-switch {
    width: 2.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.event-setup .btn-outline-dark {
    border-color: var(--border);
    color: var(--text);
    transition: 0.3s ease;
}

.bg-body {
    opacity: 1;
    background-color: var(--input-bg) !important;
    border-radius: 4px;
}

.event-setup .btn-outline-dark:hover {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: var(--box-shadow);
}

.event-setup .input-icon {
    position: relative;
}

.event-setup .input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
}

.event-setup .input-icon input {
    padding-left: 2.5rem !important;
}

/* Button transitions */
.event-setup .btn-primary {
    background: var(--primary);
    border: none;
    transition: 0.3s ease;
}

.event-setup .btn-primary:hover {
    background: #ff6b45;
    box-shadow: var(--box-shadow);
}

/* Larger toggle switch */
.large-switch {
    transform: scale(1.3);
    cursor: pointer;
}

/* Button hover subtle primary color */
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    transition: all 0.2s ease-in-out;
}

/* Hide extra categories initially */
.hidden-cat {
    display: none;
}

/* Social input icons */
.social-inputs .input-group-text {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
}

.social-inputs .input-group-text i {
    color: var(--primary);
}

/* Dark mode text adjustment */
[data-theme="dark"] .form-label,
[data-theme="dark"] h5,
[data-theme="dark"] p {
    color: var(--text);
}

/* Smooth category toggle */
#category-container {
    transition: max-height 0.4s ease;
}

/* Responsive tweaks */
@media screen and (max-width: 767px) {
    .event-setup .btn {
        /* width: 100% !important; */
        cursor: pointer;
    }
}

/* Account Details */
.account-details {
    cursor: pointer;
}
/* Account Details */
.acc-card {
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;

    transition: all 0.3s ease;
}

.acc-card .btn-outline-dark {
    border-color: var(--border);
    color: var(--text);
    transition: 0.3s ease;
}

.acc-card .btn-outline-dark:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 128, 93, 0.25);
}

.acc-card .btn-primary {
    background: var(--primary);
    border: none;
    transition: 0.3s ease;
}

.acc-card .form-control,
.acc-card .form-select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: 0.2s ease;
    color: var(--text);
}

.acc-card .form-control:focus,
.acc-card .form-select:focus,
.acc-card .form-date:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 128, 93, 0.15);
}

/* @media screen and (max-width: 767px) {
 .acc-card .create-btn{
  padding: 0.2rem 0.4rem;
  font-size: 10px;
  
}
 .acc-card .small{
  
  font-size: 13px;
  
} */

/* ===== Account Type Cards ===== */
.account-type-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    text-align: center;
}

.account-card {
    flex: 1 1 48%;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--input-bg);
    transition: all 0.3s ease;
}

/* Inner padding */
.account-card .card-content {
    padding: 1.5rem;
}

.account-card .icon {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0;
}

.account-card h4 {
    font-size: 1.1rem;
    margin: 0.8rem auto;
}

.account-card p {
    font-size: 0.9rem;
    color: var(--subtext);
    line-height: 1.4;
    margin: 0.5rem auto;
}

/* Highlight active card */
.account-card.active {
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.25);
}

/* Safari-safe radio styling */
.account-radio {
    display:flex;
    width: 25px;            
    height: 25px;
    accent-color: var(--primary);
align-self: center !important;
    /* Safari alignment fixes */
    vertical-align: middle;   
    margin: 0;
    padding: 0;
    display: inline-block;
    -webkit-appearance: none;
    appearance: auto;         
}


/* ======= General Modal Styling ======= */
.modal-content {
    border: none;
    border-radius: 20px;
    background-color: var(--input-bg);
    color: var(--text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 80vh;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.form-control,
.form-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    transition: 0.2s ease !important;
    color: var(--text) !important;
}

.form-control:focus,
.form-select:focus,
.form-date:focus {
    border-color: var(--primary) !important;
    /*box-shadow: 0 0 0 2px rgba(255, 128, 93, 0.15) !important;*/
}
/* style placeholder so it is visible on dark and light mode */
.form-control::placeholder {
    /* muted text */
    color: var(--subtext) !important;
}

.modal-content .form-control,
.modal-content .form-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    transition: 0.2s ease !important;
    color: var(--text) !important;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus,
.modal-content .form-date:focus {
    border-color: var(--primary) !important;
    /*box-shadow: 0 0 0 2px rgba(255, 128, 93, 0.15) !important;*/
}

.modal-body {
    overflow-y: auto !important;
    padding: 2.5rem 2.1rem !important;
}

.modal-body-wrapper {
    max-height: 70vh; /* adjust as needed */
    overflow-y: auto;
}

.position-relative span {
    font-weight: 600;
}

.modal-header,
.modal-footer {
    border: none !important;
    flex-shrink: 0;
    padding: 1rem 2.1rem;
    position: sticky;
    z-index: 10;
}

.more-settings-section {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.more-settings-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.more-settings-toggle.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.discount-fixed-input {
    display: none;
    transition: all 0.3s ease;
}

.discount-fixed-input.active {
    display: block;
}

/* ======= Typography ======= */
.modal-content h5,
.modal-content h6 {
    color: var(--text);
}

.modal-content p {
    color: var(--text);
    line-height: 1.6;
}

.modal-header {
    top: 0;
}

.modal-footer {
    bottom: 0;
    padding-top: 1rem;
}

/* ======= Icon Section ======= */

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--marriott-medium-gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--marriott-dark);
}

/* ======= Buttons ======= */
.modal-content .btn {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
}

.modal-content .btn-primary {
    background-color: var(--primary);
    border: none;
}

.modal-content .btn-primary:hover {
    background-color: var(--primary);
}

.modal-content .btn-outline-dark {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
}

.modal-content .btn-outline-dark:hover {
    background-color: #ececec;
}

/* ======= Responsive Centering ======= */
.modal-dialog {
    max-width: 500px;
    width: 90%;
    margin: auto;
}

/* ======= Smooth Show Animation ======= */
.modal.fade .modal-dialog {
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-backdrop.show {
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 100%;
}

/* ======= Responsiveness ======= */
@media (max-width: 767px) {
    .modal-body {
        padding: 2rem 1rem;
    }

    .modal-backdrop.show {
        backdrop-filter: blur(2px);
        background-color: rgba(0, 0, 0, 0.55);
        width: 100%;
        height: 100%;
    }
}
.dropdown-custom {
    position: relative;
    display: inline-block;
}

.dropdown-toggle-custom {
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.dropdown-toggle-custom:hover {
    color: var(--primary);
}

.dropdown-toggle-custom i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.rotate-icon {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    background-color: #fff;
    border-radius: 0.5rem;
    list-style: none;
}

.dropdown-menu-custom li {
    margin: 0;
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem;
    font-weight: 400;
    color: #212529;
    text-decoration: none;
    background-color: transparent;
    border: 0;
    transition: all 0.15s ease;
}

.text-muted {
    color: #6c757d !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

/* active */
.dropdown-item.active {
    background-color: #f8f9fa;
    color: var(--primary);
}

/* .dropdown-item i {
    width: 20px;
} */

.pb-10 {
    padding-bottom: 3rem;
}

.ticket-card {
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.ticket-card.active {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(255, 128, 93, 0.3);
    transform: translateY(-3px);
}

.ticket-card:hover {
    transform: translateY(-3px);
}

.ticket-card .icon {
    font-size: 1.5rem;
}
.pb-10 {
    padding-bottom: 2rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 16px;
    color: #333;
}
.pagination .page-item .page-link {
    border-radius: 6px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
}
/* add space between page page-item */
.pagination .page-item {
    margin-right: 0.5rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: #fff;
}

/* Loading overlay */
.pagination-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.pagination-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 3px;
}
