@font-face {
    font-family: 'Kia';
    src: url('../assets/fonts/KIAbodyLatinbasic_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Kia';
    src: url('../assets/fonts/KIAbodyLatinbasic_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Kia';
    src: url('../assets/fonts/KIAbodyLatinbasic_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --Kia-black: #05141F;
    --Kia-white: #FFFFFF;
    --Kia-red: #EA0029;
    --Kia-gray: #9EA1A2;
    --Kia-green: #5D7D2B;
    --Kia-yellow: #F3C300;
    --Kia-surface: #F5F7F8;
    --Kia-line: rgba(5, 20, 31, 0.1);
    --Kia-caption: rgba(5, 20, 31, 0.6);
    --Kia-copy: rgba(5, 20, 31, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    letter-spacing: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--Kia-surface) !important;
    color: var(--Kia-black);
    font-family: 'Kia', Arial, Helvetica, sans-serif !important;
    line-height: 1.5;
}

.header,
.topbar {
    background: var(--Kia-white) !important;
    color: var(--Kia-black) !important;
    border-bottom: 1px solid var(--Kia-line);
    box-shadow: none !important;
}

.topbar a {
    color: var(--Kia-black) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.logo {
    max-height: 64px !important;
    width: auto;
}

.banner,
.title-section,
.success-banner {
    background: var(--Kia-black) !important;
    color: var(--Kia-white) !important;
}

/* .footer {
    background: var(--Kia-black) !important;
    color: var(--Kia-white) !important;
} */

.footer small,
.banner p,
.title-section h5,
.success-banner p {
    color: rgba(255, 255, 255, 0.8);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.option-title,
.section-title,
.login-title,
.card-number {
    color: var(--Kia-black) !important;
    font-weight: 700;
}

.banner h1,
.banner h2,
.title-section h2,
.title-section h5,
.success-banner h2,
.footer h5,
.footer h6 {
    color: var(--Kia-black) !important;
}

p,
.page-subtitle,
.login-subtitle,
.option-desc,
.text-muted,
small {
    color: var(--Kia-copy) !important;
}

.footer small,
.footer p {
    color: var(--Kia-copy) !important;
}

.module-card,
.flow-box,
.login-card,
.registration-card,
.option-card,
.main-card,
.card-box,
.success-card,
.chart-box,
.table-box,
.dashboard-card,
.info-box,
.customer-box,
.customer-info,
.ticket-box,
.qr-box,
.reg-id-box,
.stepper,
.step-box {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
    color: var(--Kia-black);
}

.module-card:hover,
.option-card:hover,
.dashboard-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1) !important;
    border-color: var(--Kia-line) !important;
}

.step-box {
    color: var(--Kia-black) !important;
}

.self-card,
.dealer-card {
    background: var(--Kia-white) !important;
    border-color: var(--Kia-line) !important;
}

.icon,
.module-icon,
.option-icon,
.login-icon,
.section-title i,
.success-icon {
    color: var(--Kia-black) !important;
}

.section-title {
    border-bottom: 1px solid var(--Kia-line) !important;
}

.required {
    color: var(--Kia-red) !important;
}

.form-label,
label {
    color: var(--Kia-black);
    font-size: 14px;
    font-weight: 400 !important;
}

.form-control,
.form-select,
textarea.form-control {
    background-color: transparent !important;
    border: 1px solid var(--Kia-line) !important;
    border-radius: 0 !important;
    color: var(--Kia-black) !important;
    font-size: 16px;
    min-height: 30px;
}

.form-control::placeholder {
    color: var(--Kia-caption);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--Kia-black) !important;
    box-shadow: none !important;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background: var(--Kia-surface) !important;
    color: rgba(5, 20, 31, 0.4) !important;
}

.input-group-text {
    background: var(--Kia-black) !important;
    border: 1px solid var(--Kia-black) !important;
    border-radius: 0 !important;
    color: var(--Kia-white) !important;
}

.form-check-input {
    background-color: transparent;
    border: 1px solid var(--Kia-line);
    border-radius: 0 !important;
    height: 17px;
    width: 17px;
}

.form-check-input:checked {
    background-color: var(--Kia-black);
    border-color: var(--Kia-black);
}

.btn,
.btn-module,
.btn-login,
.btn-register,
.btn-Kia,
.btn-self,
.btn-dealer,
.btn-scan,
.btn-success-custom,
.btn-custom {
    background: linear-gradient(135deg, #05141F 0%, #1a2a35 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: var(--Kia-white) !important;
    font-family: 'Kia', Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    font-weight: 600 !important;
    min-height: 48px;
    padding: 12px 32px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(5, 20, 31, 0.2) !important;
}

.btn:hover,
.btn:focus,
.btn-module:hover,
.btn-login:hover,
.btn-register:hover,
.btn-Kia:hover,
.btn-self:hover,
.btn-dealer:hover,
.btn-scan:hover,
.btn-success-custom:hover,
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 20, 31, 0.3) !important;
    text-decoration: none !important;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.4;
}

.alert,
.alert-info,
.alert-success,
.alert-warning {
    background: var(--Kia-surface) !important;
    border: 1px solid var(--Kia-line) !important;
    border-left: 4px solid var(--Kia-black) !important;
    border-radius: 8px !important;
    color: var(--Kia-black) !important;
}

.alert-warning,
.required,
.invalid-feedback {
    color: var(--Kia-red) !important;
}

.badge,
.status-badge {
    background: var(--Kia-black) !important;
    border-radius: 8px !important;
    color: var(--Kia-white) !important;
}

.badge.bg-warning {
    background: var(--Kia-yellow) !important;
    color: var(--Kia-black) !important;
}

.table {
    color: var(--Kia-black);
}

.table-box {
    overflow-x: auto;
}

.table-box .table {
    min-width: 640px;
}

.table-dark,
.table-dark th {
    background: var(--Kia-black) !important;
    color: var(--Kia-white) !important;
}

.bg1,
.bg2,
.bg3,
.bg4,
.bg5,
.bg6,
.bg7,
.bg8 {
    background: var(--Kia-black) !important;
    color: var(--Kia-white) !important;
}

.bg1 h6,
.bg2 h6,
.bg3 h6,
.bg4 h6,
.bg5 h6,
.bg6 h6,
.bg7 h6,
.bg8 h6,
.bg1 .card-number,
.bg2 .card-number,
.bg3 .card-number,
.bg4 .card-number,
.bg5 .card-number,
.bg6 .card-number,
.bg7 .card-number,
.bg8 .card-number {
    color: var(--Kia-white) !important;
}

.reg-id {
    color: var(--Kia-black) !important;
    letter-spacing: 0 !important;
}

a {
    color: var(--Kia-black);
}

.navbar-custom {
    background: white;
    border-bottom: 1px solid var(--Kia-line);
}

a:hover,
a:focus {
    color: var(--Kia-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .logo {
        max-height: 48px !important;
    }

    .registration-card,
    .login-card,
    .main-card,
    .card-box,
    .success-card {
        padding: 24px !important;
    }

    .page-title {
        font-size: 30px !important;
    }
}

/* ==========================================================================
   PAGE-SPECIFIC SCOPED STYLES
   ========================================================================== */

/* --- Index Page --- */
.page-index .hero {
    background: linear-gradient(rgba(5, 20, 31, .55),
            rgba(5, 20, 31, .65)),
        url("../images/banner.jpg") center center/cover no-repeat;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: white;
}

.page-index .hero h1 {
    color: white !important;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
}

.page-index .hero p {
    color: rgba(255, 255, 255, .85) !important;
    font-size: 18px;
    max-width: 650px;
}

.page-index .logo {
    height: 48px;
}

.page-index .info-card {
    padding: 35px;
    text-align: center;
    height: 100%;
}

.page-index .info-card i {
    font-size: 40px;
    margin-bottom: 20px;
}

.page-index .section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 40px;
}

.page-index .feature {
    margin-bottom: 18px;
    font-size: 17px;
}

.page-index .feature i {
    width: 30px;
}

.page-index .register-box {
    background: white;
    border: 1px solid var(--Kia-line);
    border-radius: 8px;
    padding: 50px;
    text-align: center;
}

.page-index footer {
    padding: 30px 0;
    margin-top: 80px;
}

@media(max-width:768px) {
    .page-index .hero {
        min-height: 500px;
        text-align: center;
    }

    .page-index .hero h1 {
        font-size: 36px;
    }

    .page-index .register-box {
        padding: 30px;
    }
}

/* --- Self Registration & Customer Register Pages --- */
.page-customer-register,
.page-self-register {
    background: rgba(5, 20, 31, .03) !important;
}

.page-customer-register .header,
.page-self-register .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-customer-register .logo,
.page-self-register .logo {
    max-height: 48px !important;
}

.page-customer-register .banner,
.page-self-register .banner {
    background: #05141F;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-customer-register .banner h1,
.page-self-register .banner h1 {
    font-weight: 700;
}

.page-customer-register .stepper,
.page-self-register .stepper {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-top: -25px;
    box-shadow: none;
}

.page-customer-register .active-step,
.page-self-register .active-step {
    color: #05141F;
    font-weight: 700;
}

.page-customer-register .registration-card,
.page-self-register .registration-card {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    margin-top: 25px;
    box-shadow: none;
}

.page-customer-register .section-title,
.page-self-register .section-title {
    font-size: 22px;
    color: #05141F;
    font-weight: 700;
    border-bottom: 2px solid rgba(5, 20, 31, .2);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.page-customer-register .form-label,
.page-self-register .form-label {
    font-weight: 600;
}

.page-customer-register .form-control,
.page-customer-register .form-select,
.page-self-register .form-control,
.page-self-register .form-select {
    border-radius: 10px;
    height: 50px;
}

.page-customer-register textarea.form-control,
.page-self-register textarea.form-control {
    height: 120px;
}

.page-customer-register .required,
.page-self-register .required {
    color: #EA0029;
}

.page-customer-register .btn-register,
.page-self-register .btn-register {
    background: #05141F;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

.page-customer-register .btn-register:hover,
.page-self-register .btn-register:hover {
    background: #05141F;
}

.page-customer-register .footer,
.page-self-register .footer {
    background: #05141F;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.page-customer-register .info-box,
.page-self-register .info-box {
    background: rgba(5, 20, 31, .03);
    border-left: 5px solid #05141F;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

/* --- Search Customer Page --- */
.page-search-customer {
    background: rgba(5, 20, 31, .03) !important;
}

.page-search-customer .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-search-customer .logo {
    height: 80px;
}

.page-search-customer .banner {
    background: #05141F;
    color: white;
    text-align: center;
    padding: 30px;
}

.page-search-customer .card-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: none;
}

.page-search-customer .section-title {
    color: #05141F;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-search-customer .form-control,
.page-search-customer .form-select {
    height: 50px;
    border-radius: 10px;
}

.page-search-customer .btn-Kia {
    background: #05141F;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.page-search-customer .btn-Kia:hover {
    background: #05141F;
    color: white;
}

.page-search-customer .customer-info {
    background: rgba(5, 20, 31, .03);
    border-left: 5px solid #05141F;
    padding: 20px;
    border-radius: 10px;
}

.page-search-customer .ticket-box {
    background: rgba(5, 20, 31, .03);
    border-radius: 12px;
    padding: 20px;
}

.page-search-customer .footer {
    background: #05141F;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* --- Registration Type Page --- */
.page-registration-type {
    margin: 0;
    padding: 0;
    background: #05141F !important;
    min-height: 100vh;
}

.page-registration-type .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-registration-type .logo {
    max-height: 100px;
}

.page-registration-type .main-section {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
}

.page-registration-type .registration-card {
    background: #fff;
    border-radius: 8px;
    padding: 50px;
    box-shadow: none;
}

.page-registration-type .page-title {
    font-size: 40px;
    font-weight: 700;
    color: #05141F;
}

.page-registration-type .page-subtitle {
    font-size: 18px;
    color: rgba(5, 20, 31, .6);
    margin-bottom: 40px;
}

.page-registration-type .option-card {
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: .3s;
    height: 100%;
    cursor: pointer;
}

.page-registration-type .option-card:hover {
    transform: translateY(-8px);
}

.page-registration-type .self-card {
    background: rgba(5, 20, 31, .03);
    border: 2px solid #05141F;
}

.page-registration-type .dealer-card {
    background: rgba(5, 20, 31, .03);
    border: 2px solid #05141F;
}

.page-registration-type .option-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.page-registration-type .option-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-registration-type .option-desc {
    color: rgba(5, 20, 31, .6);
    min-height: 70px;
}

.page-registration-type .btn-self {
    background: #05141F;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 35px;
    font-size: 18px;
    font-weight: 600;
}

.page-registration-type .btn-self:hover {
    background: #05141F;
    color: #fff;
}

.page-registration-type .btn-dealer {
    background: #05141F;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 35px;
    font-size: 18px;
    font-weight: 600;
}

.page-registration-type .btn-dealer:hover {
    background: #05141F;
    color: #fff;
}

.page-registration-type .footer {
    color: #fff;
    text-align: center;
    padding: 20px;
}

.page-registration-type .step-box {
    background: rgba(255, 255, 255, .2);
    color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
}

/* --- Registration Success Page --- */
.page-registration-success {
    background: rgba(5, 20, 31, .03) !important;
}

.page-registration-success .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-registration-success .logo {
    height: 80px;
}

.page-registration-success .success-banner {
    background: #05141F;
    color: #fff;
    padding: 35px;
    text-align: center;
}

.page-registration-success .success-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-top: -30px;
    box-shadow: none;
}

.page-registration-success .success-icon {
    font-size: 80px;
    color: #5D7D2B;
}

.page-registration-success .reg-id-box {
    background: rgba(5, 20, 31, .03);
    border: 2px dashed #05141F;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}

.page-registration-success .reg-id {
    font-size: 34px;
    font-weight: 700;
    color: #05141F;
    letter-spacing: 2px;
}

.page-registration-success .info-box {
    background: rgba(5, 20, 31, .03);
    border-radius: 12px;
    padding: 20px;
}

.page-registration-success .qr-box {
    border: 2px dashed rgba(5, 20, 31, .2);
    padding: 20px;
    text-align: center;
    border-radius: 15px;
}

.page-registration-success .btn-custom {
    background: #05141F;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
}

.page-registration-success .btn-custom:hover {
    background: #05141F;
    color: #fff;
}

.page-registration-success .footer {
    /* background: #05141F;*/
    color: black !important;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* --- Event Check-In Page --- */
.page-event-checkin {
    background: rgba(5, 20, 31, .03) !important;
}

.page-event-checkin .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-event-checkin .logo {
    height: 80px;
}

.page-event-checkin .banner {
    background: #05141F;
    color: #fff;
    text-align: center;
    padding: 25px;
}

.page-event-checkin .card-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: none;
    margin-top: 25px;
}

.page-event-checkin .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #05141F;
    margin-bottom: 20px;
}

.page-event-checkin .form-control,
.page-event-checkin .form-select {
    height: 50px;
}

.page-event-checkin .btn-scan {
    background: #05141F;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
}

.page-event-checkin .btn-success-custom {
    background: #5D7D2B;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
}

.page-event-checkin .customer-box {
    background: rgba(5, 20, 31, .03);
    border-left: 5px solid #05141F;
    padding: 20px;
    border-radius: 10px;
}

.page-event-checkin .status-badge {
    background: #5D7D2B;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
}

.page-event-checkin .footer {
    background: #05141F;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* --- Dealer Registration Page --- */
.page-dealer-registration {
    background: rgba(5, 20, 31, .03) !important;
}

.page-dealer-registration .header {
    background: #fff;
    box-shadow: none;
    padding: 15px;
}

.page-dealer-registration .logo {
    height: 80px;
}

.page-dealer-registration .banner {
    background: #05141F;
    color: #fff;
    padding: 35px;
    text-align: center;
}

.page-dealer-registration .banner h2 {
    font-weight: 700;
}

.page-dealer-registration .main-card {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    margin-top: -30px;
    box-shadow: none;
}

.page-dealer-registration .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #05141F;
    border-bottom: 2px solid rgba(5, 20, 31, .2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-dealer-registration .form-label {
    font-weight: 600;
}

.page-dealer-registration .form-control,
.page-dealer-registration .form-select {
    height: 50px;
    border-radius: 10px;
}

.page-dealer-registration textarea.form-control {
    height: 120px;
}

.page-dealer-registration .info-box {
    background: rgba(5, 20, 31, .03);
    border-left: 5px solid #05141F;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.page-dealer-registration .btn-register {
    background: #05141F;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

.page-dealer-registration .btn-register:hover {
    background: #05141F;
}

.page-dealer-registration .footer {
    background: #05141F;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.page-dealer-registration .required {
    color: #EA0029;
}

/* --- Dealer Login Page --- */
.page-dealer-login {
    background: #05141F !important;
    min-height: 100vh;
}

.page-dealer-login .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-dealer-login .logo {
    max-height: 90px;
}

.page-dealer-login .login-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-dealer-login .login-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    box-shadow: none;
}

.page-dealer-login .login-icon {
    font-size: 60px;
    color: #05141F;
}

.page-dealer-login .login-title {
    font-size: 32px;
    font-weight: 700;
    color: #05141F;
}

.page-dealer-login .login-subtitle {
    color: rgba(5, 20, 31, .6);
}

.page-dealer-login .form-control {
    height: 55px;
    border-radius: 12px;
}

.page-dealer-login .input-group-text {
    border-radius: 12px 0 0 12px;
    background: #05141F;
    color: #fff;
    border: none;
}

.page-dealer-login .btn-login {
    background: #05141F;
    color: #fff;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

.page-dealer-login .btn-login:hover {
    background: #05141F;
}

.page-dealer-login .footer {
    text-align: center;
    color: #fff;
    padding-bottom: 20px;
}

.page-dealer-login .info-box {
    background: rgba(5, 20, 31, .03);
    padding: 12px;
    border-left: 4px solid #05141F;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* --- Dealer Customer Management Page --- */
.page-dealer-customer-management {
    background: rgba(5, 20, 31, .03) !important;
}

.page-dealer-customer-management .header {
    background: #fff;
    padding: 15px;
    box-shadow: none;
}

.page-dealer-customer-management .logo {
    height: 80px;
}

.page-dealer-customer-management .banner {
    background: #05141F;
    padding: 30px;
    color: #fff;
    text-align: center;
}

.page-dealer-customer-management .option-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: none;
    height: 100%;
    transition: .3s;
}

.page-dealer-customer-management .option-card:hover {
    transform: translateY(-5px);
}

.page-dealer-customer-management .icon {
    font-size: 60px;
    color: #05141F;
    margin-bottom: 15px;
}

.page-dealer-customer-management .btn-Kia {
    background: #05141F;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
}

.page-dealer-customer-management .btn-Kia:hover {
    background: #05141F;
    color: #fff;
}

.page-dealer-customer-management .footer {
    background: #05141F;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-top: 50px;
}

/* --- Dashboard Page --- */
.page-dashboard {
    background: rgba(5, 20, 31, .03) !important;
}

.page-dashboard .topbar {
    background: #05141F;
    color: white;
    padding: 15px 25px;
}

.page-dashboard .logo {
    height: 55px;
}

.page-dashboard .dashboard-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none;
    transition: .3s;
}

.page-dashboard .dashboard-card:hover {
    transform: translateY(-5px);
}

.page-dashboard .card-icon {
    font-size: 40px;
    opacity: .8;
}

.page-dashboard .card-number {
    font-size: 32px;
    font-weight: bold;
}

.page-dashboard .bg1 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg2 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg3 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg4 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg5 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg6 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg7 {
    background: #05141F;
    color: white;
}

.page-dashboard .bg8 {
    background: #05141F;
    color: white;
}

.page-dashboard .chart-box {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: none;
}

.page-dashboard .table-box {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: none;
}

/* Vibrant Metric Cards */
.metric-card {
    border-radius: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.metric-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.metric-card .metric-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.metric-card .metric-content {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.metric-card .metric-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    opacity: 0.9;
}

.metric-card .metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

/* Metric Colors */
.bg-metric-purple,
.bg-metric-green,
.bg-metric-orange,
.bg-metric-blue,
.bg-metric-pink,
.bg-metric-cyan {
    background: linear-gradient(135deg, #111111 0%, #30343a 100%);
}

/* Navbar Link Size */
.navbar-nav .nav-link {
    font-size: 1.15rem !important;
    font-weight: 500;
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 767px) {

    /* Forms and grids */
    .row>[class*='col-'] {
        margin-bottom: 15px;
    }

    /* Buttons */
    .btn-register,
    .btn-login,
    .btn-custom,
    .btn-Kia {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Padding adjustments */
    .main-card,
    .login-card,
    .dashboard-card,
    .card-box {
        padding: 15px !important;
    }

    /* Tables */
    .table-responsive {
        border: 0;
        margin-bottom: 0;
    }

    /* Stepper adjustments */
    .stepper {
        padding: 10px !important;
        font-size: 14px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .stepper .step {
        margin-bottom: 5px;
        text-align: center;
    }

    /* Topbar adjustments */
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
}

/* Navigation Cards for Dealer Dashboard */
.dealer-nav-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 15px 5px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: box-shadow 0.3s ease !important;
    color: var(--Kia-black) !important;
}

.dealer-nav-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.dealer-nav-card .nav-card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #000000 !important;
    /* Blue color as in image */
}

.dealer-nav-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c !important;
}

.dealer-nav-card p {
    font-size: 14px;
    color: #4a5568 !important;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.dealer-nav-card .nav-card-btn {
    border-radius: 30px !important;
    padding: 10px 28px !important;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff !important;
    border: none !important;
    min-height: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dealer-nav-card.card-search .nav-card-btn,
.dealer-nav-card.card-add .nav-card-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #05141F !important;
}

/* Metric Cards Update (Fully grayed out with black text when static, turn black and scale with white text on hover) */
.metric-card {
    background: #c4c4c4 !important;
    /* Gray background */
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    /* Black/dark text */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background-color 0.4s ease,
        color 0.4s ease,
        box-shadow 0.4s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    z-index: 1;
}

.metric-card::after {
    display: none !important;
    /* Hide original circle styling to ensure clean layout */
}

.metric-card .metric-icon {
    background: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    transition: background-color 0.4s ease, color 0.4s ease !important;
}

.metric-card .metric-title {
    color: #475569 !important;
    /* Dark gray for title */
    transition: color 0.4s ease !important;
}

.metric-card .metric-value {
    color: #0f172a !important;
    /* Dark black for value */
    transition: color 0.4s ease !important;
}

/* Hover state: turn black, scale 1.25x, text white */
.metric-card:hover {
    transform: scale(1.06) !important;
    background: #05141F !important;
    /* Turn black */
    color: #ffffff !important;
    border-color: #05141F !important;
    box-shadow: 0 20px 40px rgba(5, 20, 31, 0.3) !important;
    z-index: 10;
}

.metric-card:hover .metric-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.metric-card:hover .metric-title {
    color: rgba(255, 255, 255, 0.7) !important;
}

.metric-card:hover .metric-value {
    color: #ffffff !important;
}

/* Custom Tabs Styling for Admin Dashboard */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 24px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--Kia-black) !important;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid var(--Kia-black);
    color: var(--Kia-black) !important;
    background-color: transparent !important;
}

/* ==========================================================================
   CARNIVAL '26 THEME OVERRIDES (DARK SLEEK AUTOMOTIVE EVENTS STYLE)
   ========================================================================== */
body.theme-carnival {
    background: #080b11 !important;
    color: #ffffff !important;
    font-family: 'Kia', Arial, sans-serif !important;
}

body.theme-carnival .navbar-custom {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-carnival .navbar-custom .navbar-brand img,
body.theme-carnival .header img {
    filter: brightness(0) invert(1);
}

body.theme-carnival .navbar-custom a,
body.theme-carnival .navbar-custom span {
    color: #ffffff !important;
}

/* Carnival Header Banner styling matching the image */
body.theme-carnival .carnival-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9)),
        url("/images/kia_carnival_banner.png") center center / cover no-repeat;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-carnival .carnival-banner h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

body.theme-carnival .carnival-banner .banner-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
}

body.theme-carnival .carnival-banner .banner-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff !important;
}

body.theme-carnival .carnival-banner .banner-description {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Registration Form Card Container */
body.theme-carnival .registration-card {
    background: rgba(13, 20, 30, 0.45) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    padding: 40px !important;
    color: #ffffff !important;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

/* Form Section Headers */
body.theme-carnival .section-title {
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

body.theme-carnival .section-title i {
    color: #ffffff !important;
    margin-right: 8px;
}

/* Form Controls and Dropdowns */
body.theme-carnival .form-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-weight: 500 !important;
    margin-bottom: 8px;
}

body.theme-carnival .form-control,
body.theme-carnival .form-select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-carnival textarea.form-control {
    height: 120px;
}

body.theme-carnival .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

body.theme-carnival .form-control:focus,
body.theme-carnival .form-select:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

body.theme-carnival .form-control:disabled,
body.theme-carnival .form-select:disabled {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Custom Dropdown Option Backgrounds for OS dropdown readability */
body.theme-carnival select.form-select option {
    background-color: #0c121c !important;
    color: #ffffff !important;
}

/* Custom Checkbox */
body.theme-carnival .form-check-input {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
}

body.theme-carnival .form-check-input:checked {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Buttons */
body.theme-carnival .btn-register {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    padding: 14px 45px !important;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

body.theme-carnival .btn-register:hover {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

/* Footer overrides */
body.theme-carnival footer,
body.theme-carnival .footer {
    background: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 30px 0 !important;
}

body.theme-carnival .footer p,
body.theme-carnival .footer small {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   CARNIVAL '26 LIGHT THEME OVERRIDES (APPLE GLASS UI ON COVER BACKGROUND)
   ========================================================================== */
body.theme-carnival-light {
    background-color: #000000 !important;
    background-image: url("/images/background.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: #ffffff !important;
    font-family: 'Kia', Arial, sans-serif !important;
}

/* Pages with Header/Nav, Dashboards, and Login Pages use background2.jpg */
body.theme-carnival-light:has(nav.navbar),
body.theme-carnival-light:has(header),
body.theme-carnival-light.page-dealer-login,
body.theme-carnival-light.page-admin-login,
body.theme-carnival-light.page-dashboard,
body.theme-carnival-light.page-admin-config,
body.theme-carnival-light.page-admin-manage-dealer,
body.theme-carnival-light.page-dealer-customer-management {
    background-image: url("/images/background2.jpg") !important;
}

@media (max-width: 768px) {
    body.theme-carnival-light {
        background-attachment: scroll !important;
        background-size: 100% auto !important;
        background-image: url("/images/background.jpg") !important;
    }

    body.theme-carnival-light:has(nav.navbar),
    body.theme-carnival-light:has(header),
    body.theme-carnival-light.page-dealer-login,
    body.theme-carnival-light.page-admin-login,
    body.theme-carnival-light.page-dashboard,
    body.theme-carnival-light.page-admin-config,
    body.theme-carnival-light.page-admin-manage-dealer,
    body.theme-carnival-light.page-dealer-customer-management {
        background-image: url("/images/background2.jpg") !important;
    }
}

/* Color overrides for helper and footer texts */
body.theme-carnival-light footer h5,
body.theme-carnival-light footer p,
body.theme-carnival-light footer small,
body.theme-carnival-light .footer h5,
body.theme-carnival-light .footer p,
body.theme-carnival-light .footer small {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-carnival-light .form-text,
body.theme-carnival-light .text-muted,
body.theme-carnival-light .form-text.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.theme-carnival-light .text-success,
body.theme-carnival-light .form-text.text-success {
    color: #39e339 !important;
}

body.theme-carnival-light .text-danger,
body.theme-carnival-light .form-text.text-danger {
    color: #ff5252 !important;
}

body.theme-carnival-light .navbar-custom {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-carnival-light .navbar-custom a,
body.theme-carnival-light .navbar-custom span {
    color: #ffffff !important;
}

body.theme-carnival-light .navbar-custom .navbar-brand img,
body.theme-carnival-light .header img {
    filter: brightness(100) invert(1);
}

/* Stepper Component */
body.theme-carnival-light .stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 40px auto 45px auto;
    padding: 0 10px;
}

body.theme-carnival-light .stepper-line {
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15) !important;
    z-index: 1;
}

body.theme-carnival-light .stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: transparent !important;
    padding: 0 20px;
}

body.theme-carnival-light .stepper-item .step-counter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

body.theme-carnival-light .stepper-item .step-name {
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
}

body.theme-carnival-light .stepper-item.active .step-counter {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #05141F !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

body.theme-carnival-light .stepper-item.active .step-name {
    color: #ffffff !important;
    font-weight: 700;
}

/* Glassmorphic Form Card with liquid borders and reflections */
body.theme-carnival-light .registration-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 28px !important;
    box-shadow:
        inset 0 20px 40px -15px rgba(255, 255, 255, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.5),
        0 30px 70px rgba(0, 0, 0, 0.6) !important;
    padding: 45px !important;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    color: #ffffff !important;
    overflow: hidden;
}

/* Glass shine reflection overlay */
body.theme-carnival-light .registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Section Header Titles with transparent outlined left icons */
body.theme-carnival-light .section-title {
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding-bottom: 12px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

body.theme-carnival-light .section-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    font-size: 14px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Form Label & Input Fields */
body.theme-carnival-light .form-label {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    font-size: 13.5px;
    margin-bottom: 8px;
}

body.theme-carnival-light .required {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Input boxes with left-aligned icons */
body.theme-carnival-light .input-with-icon {
    position: relative;
}

body.theme-carnival-light .input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

body.theme-carnival-light .input-with-icon .form-control,
body.theme-carnival-light .input-with-icon .form-select {
    padding-left: 48px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    height: 52px;
    font-size: 15px;
    transition:
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12) !important;
}

body.theme-carnival-light .input-with-icon textarea.form-control {
    height: 120px;
    padding-top: 14px !important;
}

body.theme-carnival-light .input-with-icon .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.theme-carnival-light .input-with-icon .form-control:focus,
body.theme-carnival-light .input-with-icon .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.3) !important;
}

body.theme-carnival-light .input-with-icon .form-control:focus~i,
body.theme-carnival-light .input-with-icon .form-select:focus~i {
    color: #ffffff !important;
}

body.theme-carnival-light .input-with-icon .form-control:disabled,
body.theme-carnival-light .input-with-icon .form-select:disabled {
    background-color: rgba(255, 255, 255, 0.01) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Custom Dropdown Option Backgrounds for OS dropdown readability */
body.theme-carnival-light select.form-select option {
    background-color: #0c121c !important;
    color: #ffffff !important;
}

/* Custom Checkbox */
body.theme-carnival-light .form-check-input {
    background-color: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
    width: 20px;
    height: 20px;
}

body.theme-carnival-light .form-check-input:checked {
    background-color: #05141F !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-carnival-light .form-check-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-left: 6px;
    cursor: pointer;
}

/* Submit/Continue Glass Button */
body.theme-carnival-light .btn-register {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 8px !important;
    color: #05141F !important;
    font-weight: 700 !important;
    padding: 16px 48px !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
}

body.theme-carnival-light .btn-register:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Liquid Glass Footer style overrides */
body.theme-carnival footer,
body.theme-carnival .footer,
body.theme-carnival-light footer,
body.theme-carnival-light .footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(16px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 
        inset 0 10px 20px -5px rgba(255, 255, 255, 0.08),
        0 -8px 32px rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
    padding: 35px 0 !important;
    position: relative;
    overflow: hidden;
}

body.theme-carnival footer::before,
body.theme-carnival .footer::before,
body.theme-carnival-light footer::before,
body.theme-carnival-light .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    pointer-events: none;
    z-index: 1;
}

body.theme-carnival .footer p,
body.theme-carnival .footer small,
body.theme-carnival-light .footer p,
body.theme-carnival-light .footer small,
body.theme-carnival footer p,
body.theme-carnival footer small,
body.theme-carnival-light footer p,
body.theme-carnival-light footer small {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

body.theme-carnival footer h5,
body.theme-carnival .footer h5,
body.theme-carnival-light footer h5,
body.theme-carnival-light .footer h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   GLOBAL APPLE GLASS UI FOR ENTIRE APPLICATION (THEME CARNIVAL LIGHT)
   ========================================================================== */
body.theme-carnival-light h1,
body.theme-carnival-light h2,
body.theme-carnival-light h3,
body.theme-carnival-light h4,
body.theme-carnival-light h5,
body.theme-carnival-light h6,
body.theme-carnival-light p,
body.theme-carnival-light label,
body.theme-carnival-light .form-check-label {
    color: #ffffff !important;
}

body.theme-carnival-light .login-card,
body.theme-carnival-light .card-box,
body.theme-carnival-light .success-card,
body.theme-carnival-light .main-card,
body.theme-carnival-light .card,
body.theme-carnival-light .metric-card,
body.theme-carnival-light .option-card,
body.theme-carnival-light .dealer-nav-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 24px !important;
    box-shadow:
        inset 0 20px 40px -15px rgba(255, 255, 255, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.35),
        inset 0 -1px 3px rgba(0, 0, 0, 0.5),
        0 30px 70px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    overflow: hidden;
}

body.theme-carnival-light .form-control,
body.theme-carnival-light .form-select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    transition:
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12) !important;
}

body.theme-carnival-light .form-control:focus,
body.theme-carnival-light .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.3) !important;
}

body.theme-carnival-light .btn-primary,
body.theme-carnival-light .btn-custom,
body.theme-carnival-light .btn-submit,
body.theme-carnival-light .btn-search,
body.theme-carnival-light .btn-register,
body.theme-carnival-light .btn-dark,
body.theme-carnival-light .btn-secondary,
body.theme-carnival-light .btn-outline-light,
body.theme-carnival-light .nav-card-btn,
body.theme-carnival-light .dealer-nav-card .nav-card-btn,
body.theme-carnival-light button:not(.navbar-toggler):not(.btn-close),
body.theme-carnival-light a.btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #05141F !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 30px !important;
}

body.theme-carnival-light .btn-primary:hover,
body.theme-carnival-light .btn-custom:hover,
body.theme-carnival-light .btn-submit:hover,
body.theme-carnival-light .btn-search:hover,
body.theme-carnival-light .btn-register:hover,
body.theme-carnival-light .btn-dark:hover,
body.theme-carnival-light .btn-secondary:hover,
body.theme-carnival-light .btn-outline-light:hover,
body.theme-carnival-light .nav-card-btn:hover,
body.theme-carnival-light .dealer-nav-card .nav-card-btn:hover,
body.theme-carnival-light button:not(.navbar-toggler):not(.btn-close):hover,
body.theme-carnival-light a.btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

body.theme-carnival-light table,
body.theme-carnival-light .table {
    color: #ffffff !important;
    background: transparent !important;
}

body.theme-carnival-light .table th,
body.theme-carnival-light .table td {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
    background: transparent !important;
}

body.theme-carnival-light .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Hide standard bright headers and dividers on subpages to match main theme */
body.theme-carnival-light .banner,
body.theme-carnival-light .header {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 30px 0 !important;
}

body.theme-carnival-light .btn-Kia,
body.theme-carnival-light .btn-success-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #05141F !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

body.theme-carnival-light .btn-Kia:hover,
body.theme-carnival-light .btn-success-custom:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.45) !important;
}

body.theme-carnival-light .success-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow:
        inset 0 10px 20px -5px rgba(255, 255, 255, 0.1),
        0 15px 35px rgba(0, 0, 0, 0.4) !important;
    padding: 35px !important;
    color: #ffffff !important;
}

body.theme-carnival-light .nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.theme-carnival-light .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    background: transparent !important;
}

body.theme-carnival-light .nav-tabs .nav-link.active {
    color: #ffffff !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 3px solid #ffffff !important;
}

/* ==========================================================================
   UPGRADED LOGIN & DASHBOARD GLASS STYLES (THEME CARNIVAL LIGHT)
   ========================================================================== */

body.theme-carnival-light .login-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(16px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        inset 0 20px 40px -15px rgba(255, 255, 255, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.5) !important;
    padding: 45px !important;
    color: #ffffff !important;
}

body.theme-carnival-light .login-icon {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

body.theme-carnival-light .login-title,
body.theme-carnival-light h2.login-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.theme-carnival-light .login-subtitle {
    color: rgba(255, 255, 255, 0.75) !important;
}

body.theme-carnival-light .info-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border-left: 4px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    backdrop-filter: blur(8px);
}

body.theme-carnival-light .info-box strong {
    color: #ffffff !important;
}

/* ==========================================================================
   INPUT GROUP ALIGNMENT & SEAMLESS BORDERS
   ========================================================================== */

body.theme-carnival-light .input-group .input-group-text {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-right: none !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-carnival-light .input-group .form-control,
body.theme-carnival-light .input-group .form-select {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-left: none !important;
}

body.theme-carnival-light .input-group:focus-within .input-group-text {
    border-color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* ==========================================================================
   GLOBAL PLACEHOLDER COLOR OVERRIDES
   ========================================================================== */

body.theme-carnival-light .form-control::placeholder,
body.theme-carnival-light input::placeholder,
body.theme-carnival-light textarea::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
    opacity: 1 !important;
}

body.theme-carnival-light .form-control:-ms-input-placeholder,
body.theme-carnival-light input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.theme-carnival-light .form-control::-ms-input-placeholder,
body.theme-carnival-light input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* ==========================================================================
   LOGIN BUTTON OVERRIDES
   ========================================================================== */

body.theme-carnival-light .btn-login {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #05141F !important;
    font-weight: 700 !important;
    padding: 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease !important;
}

body.theme-carnival-light .btn-login:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   DASHBOARDS NAVBAR, CARDS, & METRICS HIGH-CONTRAST OVERRIDES
   ========================================================================== */

/* ==========================================================================
   LIQUID GLASS NAVBAR & HEADER OVERRIDES (APPLIES EVERYWHERE)
   ========================================================================== */

body.theme-carnival-light nav.navbar,
body.theme-carnival-light .navbar-custom {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
    padding: 14px 28px !important;
}

/* Make Kia Logo Quite Bigger Everywhere */
body.theme-carnival-light nav.navbar .navbar-brand img,
body.theme-carnival-light nav.navbar .logo,
body.theme-carnival-light .navbar-custom .navbar-brand img,
body.theme-carnival-light .navbar-custom .logo {
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45)) !important;
    transition: transform 0.3s ease !important;
}

body.theme-carnival-light nav.navbar .navbar-brand:hover img,
body.theme-carnival-light .navbar-custom .navbar-brand:hover img {
    transform: scale(1.05) !important;
}

/* Navbar text & branding */
body.theme-carnival-light nav.navbar .navbar-brand span,
body.theme-carnival-light nav.navbar .fw-bold,
body.theme-carnival-light nav.navbar span,
body.theme-carnival-light nav.navbar a:not(.btn) {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Liquid Glass Navbar & Utility Buttons (Logout, Dashboard, Outline Light, etc.) */
body.theme-carnival-light nav.navbar .btn,
body.theme-carnival-light nav.navbar button:not(.navbar-toggler),
body.theme-carnival-light nav.navbar a.btn,
body.theme-carnival-light .btn-outline-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    color: #05141F !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 30px !important;
    padding: 8px 24px !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.theme-carnival-light nav.navbar .btn:hover,
body.theme-carnival-light nav.navbar button:not(.navbar-toggler):hover,
body.theme-carnival-light nav.navbar a.btn:hover,
body.theme-carnival-light .btn-outline-light:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Liquid Glass Hamburger Toggler */
body.theme-carnival-light nav.navbar .navbar-toggler,
body.theme-carnival-light .navbar-custom .navbar-toggler {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

body.theme-carnival-light nav.navbar .navbar-toggler:hover,
body.theme-carnival-light .navbar-custom .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.05) !important;
}

body.theme-carnival-light nav.navbar .navbar-toggler-icon,
body.theme-carnival-light .navbar-custom .navbar-toggler-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) !important;
}

body.theme-carnival-light .dealer-nav-card h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.theme-carnival-light .dealer-nav-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.theme-carnival-light .dealer-nav-card .nav-card-icon {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Metric Cards High Contrast Override */
body.theme-carnival-light .metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(16px) !important;
}

body.theme-carnival-light .metric-card .metric-title,
body.theme-carnival-light .metric-card .metric-content h2,
body.theme-carnival-light .metric-card .metric-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
}

body.theme-carnival-light .metric-card .metric-value {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

body.theme-carnival-light .metric-card .metric-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

body.theme-carnival-light .metric-card:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

body.theme-carnival-light .metric-card:hover .metric-title,
body.theme-carnival-light .metric-card:hover .metric-value,
body.theme-carnival-light .metric-card:hover .metric-icon {
    color: #ffffff !important;
}

/* General Dashboard Headings & Card Titles */
body.theme-carnival-light h1,
body.theme-carnival-light h2,
body.theme-carnival-light h3,
body.theme-carnival-light h4,
body.theme-carnival-light h5,
body.theme-carnival-light h6,
body.theme-carnival-light .section-title,
body.theme-carnival-light .card h5 {
    color: #ffffff !important;
}

/* ==========================================================================
   NAVIGATION CARD BUTTONS HIGH-CONTRAST GLASS OVERRIDES
   ========================================================================== */

body.theme-carnival-light .dealer-nav-card .nav-card-btn,
body.theme-carnival-light .dealer-nav-card.card-search .nav-card-btn,
body.theme-carnival-light .dealer-nav-card.card-add .nav-card-btn,
body.theme-carnival-light .nav-card-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    color: #05141F !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 30px !important;
    padding: 10px 28px !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.theme-carnival-light .dealer-nav-card:hover .nav-card-btn,
body.theme-carnival-light .dealer-nav-card .nav-card-btn:hover,
body.theme-carnival-light .nav-card-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   THEME-MATCHING GLASS TABLE HEADERS
   ========================================================================== */

body.theme-carnival-light .table thead,
body.theme-carnival-light .table thead.table-dark,
body.theme-carnival-light .table thead.table-light,
body.theme-carnival-light .table thead.text-muted,
body.theme-carnival-light .table thead tr,
body.theme-carnival-light .table thead th {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-size: 0.85rem !important;
    padding: 16px !important;
}

/* Liquid Glass Alert Styling */
body.theme-carnival-light .alert,
body.theme-carnival-light .alert-warning {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

body.theme-carnival-light .alert i,
body.theme-carnival-light .alert-warning i {
    color: #ffd166 !important;
    margin-right: 8px !important;
}

/* Liquid Glass Modal Dialog Styling */
body.theme-carnival-light .modal-content {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

body.theme-carnival-light .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 18px 24px !important;
}

body.theme-carnival-light .modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.theme-carnival-light .modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
}

body.theme-carnival-light .modal-body {
    padding: 24px !important;
}

/* ==========================================================================
   UNIVERSAL LIQUID GLASS CAMERA MODULE & QR SCANNER STYLING
   ========================================================================== */

#qr-reader,
#ticket-qr-reader,
div[id*="qr-reader"] {
    border: none !important;
    background: transparent !important;
}

#qr-reader__scan_region,
#ticket-qr-reader__scan_region,
div[id*="qr-reader"]__scan_region {
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

#qr-reader__scan_region img,
#ticket-qr-reader__scan_region img {
    opacity: 0.8 !important;
}

/* Customizing html5-qrcode buttons (Stop Scanning, Request Permission, etc.) */
#qr-reader button,
#ticket-qr-reader button,
div[id*="qr-reader"] button,
.html5-qrcode-element button,
#html5-qrcode-button-camera-stop,
#html5-qrcode-button-camera-start,
#html5-qrcode-button-camera-permission {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    color: #05141F !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 30px !important;
    padding: 8px 24px !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

#qr-reader button:hover,
#ticket-qr-reader button:hover,
div[id*="qr-reader"] button:hover,
#html5-qrcode-button-camera-stop:hover,
#html5-qrcode-button-camera-start:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-2px) !important;
}

#qr-reader__status_span,
#ticket-qr-reader__status_span {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem !important;
}

#qr-reader select,
#ticket-qr-reader select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    margin: 8px 0 !important;
}

#qr-reader select option,
#ticket-qr-reader select option {
    background: #0f172a !important;
    color: #ffffff !important;
}

#qr-reader a,
#ticket-qr-reader a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: underline !important;
    font-size: 0.85rem !important;
}

/* ==========================================================================
   LIQUID GLASS LOGIN CARD DESIGN SYSTEM
   ========================================================================== */

body.theme-carnival-light .login-wrapper {
    min-height: calc(100vh - 180px) !important;
}

body.theme-carnival-light .login-container {
    max-width: 460px !important;
    margin: 0 auto !important;
}

body.theme-carnival-light .login-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    padding: 36px 32px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

body.theme-carnival-light .login-icon {
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto 16px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.75rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

body.theme-carnival-light .login-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.75rem !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 4px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

body.theme-carnival-light .login-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
}

body.theme-carnival-light .info-box,
body.theme-carnival-light .login-card .info-box {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Universal Webkit Autofill Override for Dark Liquid Glass Inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active,
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active,
.form-select:-webkit-autofill,
.form-select:-webkit-autofill:hover,
.form-select:-webkit-autofill:focus,
.form-select:-webkit-autofill:active,
body.theme-carnival-light input:-webkit-autofill,
body.theme-carnival-light input:-webkit-autofill:hover,
body.theme-carnival-light input:-webkit-autofill:focus,
body.theme-carnival-light input:-webkit-autofill:active,
body.theme-carnival-light textarea:-webkit-autofill,
body.theme-carnival-light textarea:-webkit-autofill:hover,
body.theme-carnival-light textarea:-webkit-autofill:focus,
body.theme-carnival-light textarea:-webkit-autofill:active,
body.theme-carnival-light select:-webkit-autofill,
body.theme-carnival-light select:-webkit-autofill:hover,
body.theme-carnival-light select:-webkit-autofill:focus,
body.theme-carnival-light select:-webkit-autofill:active,
body.theme-carnival-light .form-control:-webkit-autofill,
body.theme-carnival-light .form-control:-webkit-autofill:hover,
body.theme-carnival-light .form-control:-webkit-autofill:focus,
body.theme-carnival-light .form-control:-webkit-autofill:active,
body.theme-carnival-light .form-select:-webkit-autofill,
body.theme-carnival-light .form-select:-webkit-autofill:hover,
body.theme-carnival-light .form-select:-webkit-autofill:focus,
body.theme-carnival-light .form-select:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #05141f inset !important;
    box-shadow: 0 0 0px 1000px #05141f inset !important;
    transition: background-color 50000s ease-in-out 0s !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* ==========================================================================
   LIQUID GLASS INPUT WITH ICON SYSTEM
   ========================================================================== */

body.theme-carnival-light .input-with-icon {
    position: relative !important;
}

body.theme-carnival-light .input-with-icon .form-control,
body.theme-carnival-light .input-with-icon .form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    padding-left: 46px !important;
    height: 50px !important;
    font-size: 0.95rem !important;
}

body.theme-carnival-light .input-with-icon .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-carnival-light .input-with-icon i {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    z-index: 10 !important;
    pointer-events: none !important;
    opacity: 0.95 !important;
}

/* ==========================================================================
   LIQUID GLASS REGISTRATION SUCCESS DESIGN SYSTEM
   ========================================================================== */

body.theme-carnival-light .success-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 28px !important;
    padding: 40px 36px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

body.theme-carnival-light .reg-id-box {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 18px !important;
    padding: 20px 24px !important;
    text-align: center !important;
    margin: 24px 0 !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

body.theme-carnival-light .reg-id-box small {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    font-size: 0.8rem !important;
}

body.theme-carnival-light .reg-id-box .reg-id {
    color: #ffffff !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
    margin-top: 4px !important;
}

body.theme-carnival-light .success-card .info-box {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    color: #ffffff !important;
    margin-bottom: 24px !important;
}

body.theme-carnival-light .qr-box {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
    display: inline-block !important;
}

body.theme-carnival-light .qr-box p {
    color: #05141f !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
    font-size: 0.9rem !important;
}

/* ==========================================================================
   PRINT MEDIA OVERRIDES (STRICT 1-PAGE A4 REGISTRATION CONFIRMATION EXPORT)
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 5mm 10mm;
    }

    html,
    body,
    body.theme-carnival-light,
    body.page-registration-success {
        background-color: #05141f !important;
        background-image: none !important;
        color: #ffffff !important;
        font-family: 'Kia', Arial, sans-serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 10px !important;
        margin: 0 !important;
        height: auto !important;
    }

    .top-spacer,
    .d-print-none,
    #footer-placeholder,
    footer,
    .footer {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.theme-carnival-light .container {
        margin: 0 auto !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    body.theme-carnival-light .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Print Header */
    body.theme-carnival-light .print-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    body.theme-carnival-light .print-header img {
        height: 34px !important;
        filter: brightness(0) invert(1) !important;
    }

    body.theme-carnival-light .print-header-title {
        text-align: right !important;
    }

    body.theme-carnival-light .print-header-title h4 {
        margin: 0 !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        font-size: 1.15rem !important;
    }

    body.theme-carnival-light .print-header-title p {
        margin: 0 !important;
        font-size: 0.75rem !important;
        color: rgba(255, 255, 255, 0.75) !important;
        font-weight: 700 !important;
    }

    /* Main Pass Card in Print */
    body.theme-carnival-light .success-card {
        background: #0f172a !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 18px !important;
        padding: 20px 24px !important;
        box-shadow: none !important;
        color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
    }

    body.theme-carnival-light .success-card .text-center.mb-4 {
        margin-bottom: 10px !important;
    }

    body.theme-carnival-light .success-card i.fa-check-circle {
        font-size: 2.2rem !important;
    }

    body.theme-carnival-light .success-card h2,
    body.theme-carnival-light .success-card h3,
    body.theme-carnival-light .success-card p,
    body.theme-carnival-light .success-card span,
    body.theme-carnival-light .success-card strong,
    body.theme-carnival-light .success-card div,
    body.theme-carnival-light .success-card small,
    body.theme-carnival-light .success-card .text-white,
    body.theme-carnival-light .success-card .text-white-50 {
        color: #ffffff !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }

    body.theme-carnival-light .success-card h2 {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin-bottom: 2px !important;
    }

    body.theme-carnival-light .success-card p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }

    /* Unique Registration ID Badge in Print */
    body.theme-carnival-light .reg-id-box {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 14px !important;
        padding: 10px 14px !important;
        text-align: center !important;
        margin: 12px 0 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.theme-carnival-light .reg-id-box small {
        color: rgba(255, 255, 255, 0.85) !important;
        letter-spacing: 1.5px !important;
        font-weight: 800 !important;
        font-size: 0.75rem !important;
        display: block !important;
    }

    body.theme-carnival-light .reg-id-box .reg-id {
        color: #ffffff !important;
        font-size: 1.8rem !important;
        font-weight: 900 !important;
        letter-spacing: 2px !important;
        margin-top: 2px !important;
        text-shadow: none !important;
    }

    /* Customer Info Grid in Print */
    body.theme-carnival-light .success-card .info-box {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 14px !important;
        padding: 12px 16px !important;
        color: #ffffff !important;
        margin-bottom: 12px !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.theme-carnival-light .success-card .info-box span,
    body.theme-carnival-light .success-card .info-box i {
        color: rgba(255, 255, 255, 0.75) !important;
        font-weight: 600 !important;
        font-size: 0.8rem !important;
    }

    body.theme-carnival-light .success-card .info-box strong {
        color: #ffffff !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
    }

    /* QR Code Box in Print */
    body.theme-carnival-light .qr-box {
        background: #ffffff !important;
        border-radius: 14px !important;
        padding: 10px !important;
        display: inline-block !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.theme-carnival-light .qr-box img {
        width: 120px !important;
        height: 120px !important;
    }

    body.theme-carnival-light .qr-box p {
        color: #05141f !important;
        font-weight: 800 !important;
        margin-top: 6px !important;
        font-size: 0.8rem !important;
    }

    /* Alert / Confirmation Box in Print */
    body.theme-carnival-light .alert-warning {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        margin-top: 12px !important;
        margin-bottom: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.theme-carnival-light .alert-warning span,
    body.theme-carnival-light .alert-warning i {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
}

/* ─── Admin Panel Dark Theme Overrides ─────────────────────────────────── */

/* Tab content container: replace white bg with glassmorphic dark panel */
body.theme-carnival-light .tab-content.bg-white,
body.theme-carnival-light .tab-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

/* Tab navigation pills */
body.theme-carnival-light .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

body.theme-carnival-light .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid transparent !important;
    border-radius: 10px 10px 0 0 !important;
    transition: all 0.3s ease !important;
}

body.theme-carnival-light .nav-tabs .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) transparent transparent transparent !important;
}

body.theme-carnival-light .nav-tabs .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.2) transparent rgba(255, 255, 255, 0.2) !important;
    font-weight: 700 !important;
}

/* Tab content headings */
body.theme-carnival-light .tab-content h4,
body.theme-carnival-light .tab-content h5 {
    color: #ffffff !important;
}

/* Tables inside tab content: dark rows, light text */
body.theme-carnival-light .table {
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06) !important;
}

body.theme-carnival-light .table thead,
body.theme-carnival-light .table thead.table-light {
    --bs-table-bg: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.theme-carnival-light .table thead th {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

body.theme-carnival-light .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: background 0.2s ease !important;
}

body.theme-carnival-light .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.theme-carnival-light .table td {
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle !important;
}

body.theme-carnival-light .table td .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Badges inside tables */
body.theme-carnival-light .table .badge.bg-success {
    background: rgba(57, 227, 57, 0.2) !important;
    color: #39e339 !important;
    border: 1px solid rgba(57, 227, 57, 0.3) !important;
}

body.theme-carnival-light .table .badge.bg-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.theme-carnival-light .table .badge.bg-warning {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

body.theme-carnival-light .table .badge.bg-info {
    background: rgba(13, 202, 240, 0.2) !important;
    color: #0dcaf0 !important;
    border: 1px solid rgba(13, 202, 240, 0.3) !important;
}

body.theme-carnival-light .table .badge.bg-danger {
    background: rgba(255, 82, 82, 0.2) !important;
    color: #ff5252 !important;
    border: 1px solid rgba(255, 82, 82, 0.3) !important;
}

/* Buttons inside tables */
body.theme-carnival-light .table .btn-outline-danger {
    color: #ff5252 !important;
    border-color: rgba(255, 82, 82, 0.4) !important;
}

body.theme-carnival-light .table .btn-outline-danger:hover {
    background: rgba(255, 82, 82, 0.15) !important;
    color: #ff5252 !important;
}

body.theme-carnival-light .table .btn-outline-success {
    color: #39e339 !important;
    border-color: rgba(57, 227, 57, 0.4) !important;
}

body.theme-carnival-light .table .btn-outline-success:hover {
    background: rgba(57, 227, 57, 0.15) !important;
    color: #39e339 !important;
}

body.theme-carnival-light .table .btn-outline-primary {
    color: #90caf9 !important;
    border-color: rgba(144, 202, 249, 0.4) !important;
}

body.theme-carnival-light .table .btn-outline-primary:hover {
    background: rgba(144, 202, 249, 0.15) !important;
    color: #90caf9 !important;
}

/* Modal dark overrides */
body.theme-carnival-light .modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}

body.theme-carnival-light .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-carnival-light .modal-header .modal-title {
    color: #ffffff !important;
}

body.theme-carnival-light .modal-header .btn-close {
    filter: invert(1) !important;
}

body.theme-carnival-light .modal-body .form-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-carnival-light .modal-body .form-control {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

body.theme-carnival-light .modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

body.theme-carnival-light .modal-body .form-control:focus {
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
}

/* Card overrides for admin dashboards */
body.theme-carnival-light .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
}

body.theme-carnival-light .card .card-header,
body.theme-carnival-light .card .card-header.bg-white {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.theme-carnival-light .card .card-body {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-carnival-light .card .card-title {
    color: #ffffff !important;
}

/* Shadow override: remove Bootstrap white shadow */
body.theme-carnival-light .shadow-sm {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Border override */
body.theme-carnival-light .border {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Mobile responsive section titles to prevent wrapping onto multiple lines */
@media (max-width: 576px) {

    body.theme-carnival .section-title,
    body.theme-carnival-light .section-title,
    .page-customer-register .section-title,
    .page-self-register .section-title,
    .section-title {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-wrap: nowrap !important;
    }
}