:root {
    --tb-bg: #f4f6fa;
    --tb-surface: #ffffff;
    --tb-surface-soft: #f8fafc;
    --tb-border: #e2e8f0;
    --tb-border-strong: #cbd5e1;
    --tb-text: #172033;
    --tb-muted: #64748b;
    --tb-primary: #556ee6;
    --tb-primary-dark: #4458c7;
    --tb-primary-soft: #eef2ff;
    --tb-teal: #34c38f;
    --tb-blue: #50a5f1;
    --tb-amber: #f1b44c;
    --tb-sidebar: #2a3042;
    --tb-sidebar-soft: #252b3b;
    --tb-shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
    --tb-shadow-md: 0 14px 36px rgba(15, 23, 42, 0.10);
    --tb-radius: 8px;
}

html {
    color-scheme: light;
}

body,
button,
input,
select,
textarea {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body.admin-shell {
    background: var(--tb-bg);
    color: var(--tb-text);
    letter-spacing: 0;
}

body.admin-shell #wrapper,
body.admin-shell .content-page {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(244, 246, 250, 1) 320px),
        var(--tb-bg);
}

body.admin-shell .content-page {
    min-height: 100vh;
}

body.admin-shell .content {
    padding: 22px 24px;
}

body.admin-shell .container,
body.admin-shell .container-fluid {
    max-width: 1480px;
}

body.admin-shell .navbar-custom {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

body.admin-shell .navbar-custom .container-fluid {
    min-height: 70px;
}

body.admin-shell .button-menu-mobile,
body.admin-shell .navbar-toggle {
    color: var(--tb-text);
}

body.admin-shell .nav-user {
    background: var(--tb-surface-soft);
    border: 1px solid var(--tb-border);
    border-radius: 999px;
    min-height: 42px;
    padding: 6px 12px 6px 6px !important;
}

body.admin-shell .nav-user img {
    border: 2px solid #ffffff;
    box-shadow: var(--tb-shadow-sm);
}

body.admin-shell .pro-user-name {
    color: var(--tb-text);
    font-weight: 700;
}

body.admin-shell .logo-box {
    background: transparent;
    border-right: 1px solid rgba(226, 232, 240, 0.12);
}

body.admin-shell .admin-logo,
body.admin-shell .admin-logo:hover {
    text-decoration: none;
}

body.admin-shell .admin-logo .logo-lg,
body.admin-shell .admin-logo .logo-sm {
    align-items: center;
    color: var(--tb-text);
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    letter-spacing: 0;
}

body.admin-shell .admin-logo .logo-sm {
    background: var(--tb-primary);
    border-radius: var(--tb-radius);
    color: #ffffff;
    height: 34px;
    margin: 18px auto 0;
    width: 34px;
}

body.admin-shell .logo-mark {
    align-items: center;
    background: var(--tb-primary);
    border-radius: var(--tb-radius);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.8rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

body.admin-shell .logo-text {
    color: var(--tb-text);
    font-size: 1.05rem;
    line-height: 1;
}

body.admin-shell .left-side-menu {
    background: var(--tb-sidebar);
    border-right: 0;
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.18);
}

body.admin-shell .left-side-menu .simplebar-content-wrapper,
body.admin-shell .left-side-menu .h-100 {
    background: var(--tb-sidebar);
}

body.admin-shell .user-box {
    background: var(--tb-sidebar-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--tb-radius);
    margin: 16px 14px 12px;
    padding: 18px 12px;
}

body.admin-shell .user-box img {
    border: 3px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.admin-shell .user-box a {
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 600;
}

body.admin-shell .user-box p {
    color: #9aa8bd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0;
    text-transform: uppercase;
}

body.admin-shell #sidebar-menu {
    padding: 8px 8px 18px;
}

body.admin-shell #sidebar-menu > ul > li > a,
body.admin-shell #sidebar-menu .menu-link,
body.admin-shell #sidebar-menu .nav-second-level li a {
    align-items: center;
    border-radius: var(--tb-radius);
    color: #b8c2d3;
    display: flex;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0;
    margin: 3px 7px;
    min-height: 42px;
    padding: 10px 14px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.admin-shell #sidebar-menu > ul > li > a:hover,
body.admin-shell #sidebar-menu .menu-link:hover,
body.admin-shell #sidebar-menu .nav-second-level li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

body.admin-shell #sidebar-menu > ul > li > a.active,
body.admin-shell #sidebar-menu .active,
body.admin-shell #sidebar-menu .mm-active > a,
body.admin-shell #sidebar-menu .collapse.show + a {
    color: #ffffff !important;
}

body.admin-shell #sidebar-menu svg,
body.admin-shell #sidebar-menu i {
    color: inherit !important;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

body.admin-shell #sidebar-menu .menu-arrow {
    margin-left: auto;
}

body.admin-shell #sidebar-menu .nav-second-level {
    margin: 4px 0 8px;
    padding-left: 14px;
}

body.admin-shell #sidebar-menu .nav-second-level li a {
    font-size: 0.87rem;
    min-height: 36px;
    padding: 8px 14px;
}

body.admin-shell .dropdown-menu {
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow-md);
}

body.admin-shell .dropdown-item {
    border-radius: 6px;
    color: var(--tb-text);
    font-weight: 600;
    margin: 2px 6px;
    width: calc(100% - 12px);
}

body.admin-shell .dropdown-item:hover {
    background: var(--tb-primary-soft);
    color: var(--tb-primary);
}

.content-page .bg-white,
.content-page .card,
.content-page .section-card,
.content-page .stat-card {
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius) !important;
    box-shadow: var(--tb-shadow-sm) !important;
}

.content-page > .content.bg-white,
.content-page .content.bg-white {
    background: transparent !important;
    border: 0;
    box-shadow: none !important;
}

.content-page .content > .bg-white,
.content-page .event-container > .bg-white,
.content-page .row.content.bg-white,
.content-page > .bg-white {
    background: var(--tb-surface) !important;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius) !important;
    box-shadow: var(--tb-shadow-sm) !important;
}

.page-title-box,
.content-page .d-flex.justify-content-between.mb-3,
.content-page .event-container > .bg-white,
.content-page .row.content.bg-white {
    align-items: center;
    gap: 16px;
}

.page-title-box h1,
.content-page h1,
.content-page h2,
.header-d-title {
    color: var(--tb-text);
    font-weight: 600;
    letter-spacing: 0;
}

.content-page h1,
.header-d-title {
    font-size: clamp(1.65rem, 1.4rem + 0.7vw, 2.2rem);
}

.content-page h2 {
    font-size: clamp(1.35rem, 1.15rem + 0.45vw, 1.75rem);
}

.content-page h3 {
    font-size: 1.15rem;
}

.content-page p,
.content-page .text-muted,
.d-subtitle {
    color: var(--tb-muted) !important;
}

.card {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    box-shadow: var(--tb-shadow-sm);
}

.card .card-body {
    padding: 20px;
}

.card-pricing {
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card-pricing:hover {
    border-color: rgba(85, 110, 230, 0.32);
    box-shadow: var(--tb-shadow-md) !important;
    transform: translateY(-2px);
}

.card-pricing h3 {
    color: var(--tb-text);
    font-weight: 600;
}

.card-pricing h5,
.card-pricing li {
    color: var(--tb-muted);
}

.card-pricing-features {
    display: grid;
    gap: 8px;
}

.stat-card {
    align-items: center;
    background: var(--tb-surface);
    display: flex;
    justify-content: space-between;
    min-height: 128px;
    padding: 22px;
    position: relative;
}

.stat-card::before {
    background: var(--tb-primary);
    border-radius: 999px;
    content: "";
    height: 56px;
    left: -50px;
    opacity: 0.12;
    position: absolute;
    top: 18px;
    width: 96px;
}

.stat-card .fw-semibold {
    color: var(--tb-muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-card .fs-24,
.stat-card .fw-bold {
    color: var(--tb-text);
}

.stat-icon {
    align-items: center;
    background: var(--tb-surface-soft);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    display: inline-flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.stat-icon img {
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.create-btn,
.btn-primary {
    align-items: center;
    background: var(--tb-primary) !important;
    border: 1px solid var(--tb-primary) !important;
    border-radius: var(--tb-radius) !important;
    box-shadow: 0 8px 18px rgba(85, 110, 230, 0.20);
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.create-btn:hover,
.btn-primary:hover,
.create-btn:focus,
.btn-primary:focus {
    background: var(--tb-primary-dark) !important;
    border-color: var(--tb-primary-dark) !important;
    box-shadow: 0 10px 24px rgba(85, 110, 230, 0.28) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-success,
.btn.border {
    border-radius: var(--tb-radius) !important;
    font-weight: 600;
    min-height: 40px;
}

.btn-light,
.btn.border {
    background: var(--tb-surface-soft) !important;
    border: 1px solid var(--tb-border) !important;
    color: var(--tb-text) !important;
}

.btn-warning {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #111827 !important;
}

.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-success {
    background: var(--tb-teal) !important;
    border-color: var(--tb-teal) !important;
}

.form-label,
label {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
}

.form-control,
.form-select,
.input-group-text,
.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--tb-surface);
    border: 1px solid var(--tb-border) !important;
    border-radius: var(--tb-radius) !important;
    color: var(--tb-text);
    min-height: 42px;
}

.form-control,
.form-select {
    box-shadow: none !important;
    padding: 0.62rem 0.82rem;
}

textarea.form-control {
    min-height: 104px;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: rgba(85, 110, 230, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(85, 110, 230, 0.10) !important;
}

.input-group .form-control {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.input-group-text {
    background: var(--tb-surface-soft);
    color: var(--tb-muted);
}

.form-check-input {
    border-color: var(--tb-border-strong);
    box-shadow: none !important;
}

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

.form-switch .form-check-input {
    height: 1.25rem;
    width: 2.35rem;
}

.event-type-btn {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    color: var(--tb-text);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.event-type-btn:hover {
    border-color: rgba(85, 110, 230, 0.45);
    box-shadow: var(--tb-shadow-sm);
    transform: translateY(-1px);
}

.event-type-btn.active {
    background: var(--tb-primary) !important;
    border-color: var(--tb-primary) !important;
    color: #ffffff !important;
}

.event-type-btn.active i,
.event-type-btn.active span {
    color: #ffffff !important;
}

.modal-content {
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius) !important;
    box-shadow: var(--tb-shadow-md);
    overflow: hidden;
}

.modal-header {
    background: var(--tb-surface-soft);
    border-bottom: 1px solid var(--tb-border);
    padding: 18px 22px;
}

.modal-title,
.modal-header h3,
.modal-header h5 {
    color: var(--tb-text);
    font-weight: 600;
}

.modal-body {
    background: var(--tb-surface);
}

.btn-close {
    border-radius: var(--tb-radius);
    box-shadow: none !important;
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0;
}

.badge.bg-success,
.bg-success {
    background-color: var(--tb-teal) !important;
}

.bg-light {
    background-color: var(--tb-surface-soft) !important;
}

.text-primary {
    color: var(--tb-primary) !important;
}

.text-warning {
    color: var(--tb-amber) !important;
}

.text-danger {
    color: var(--tb-primary) !important;
}

.btn-status {
    border-radius: 999px !important;
    box-shadow: none;
    font-family: inherit !important;
    min-height: 34px;
    padding: 5px 12px !important;
}

.btn-status.draft {
    background: #b45309 !important;
}

.btn-status.finalized {
    background: var(--tb-teal) !important;
}

.table {
    color: var(--tb-text);
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    border-color: var(--tb-border);
    padding: 0.9rem 0.95rem;
}

.table thead th {
    background: var(--tb-surface-soft);
    color: #475467;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table tbody tr {
    transition: background-color 0.16s ease;
}

.table tbody tr:hover {
    background: #fff7f8;
}

.table img {
    border-radius: var(--tb-radius);
    object-fit: cover;
}

.authentication-bg {
    background:
        linear-gradient(135deg, rgba(18, 24, 38, 0.94), rgba(32, 47, 73, 0.90)),
        url("/assets/images/covers/pattern.png");
    min-height: 100vh;
}

.authentication-bg .account-pages {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 6rem);
}

.authentication-bg .card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--tb-radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.authentication-bg .auth-page-sidebar {
    background:
        linear-gradient(160deg, rgba(85, 110, 230, 0.88), rgba(52, 195, 143, 0.82)),
        url("/assets/images/auth-bg.jpg");
    background-position: center;
    background-size: cover;
    min-height: 430px;
}

.authentication-bg .authentication-form .btn {
    min-height: 46px;
}

#preview-container,
#preview-container-web,
#preview-container-mobile {
    border-radius: var(--tb-radius);
}

#image-preview,
#image-preview-web,
#image-preview-mobile,
#eventImageId {
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius) !important;
}

input[type="file"].form-control,
input[type="file"].app-file-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 46px;
    padding: 0;
}

input[type="file"].form-control::file-selector-button,
input[type="file"].app-file-input::file-selector-button {
    background: #e5e7eb;
    border: 0;
    border-right: 1px solid #cbd5e1;
    color: #1f2937;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    margin: 0 14px 0 0;
    min-height: 46px;
    padding: 0 18px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

input[type="file"].form-control:hover::file-selector-button,
input[type="file"].app-file-input:hover::file-selector-button {
    background: #dbe1ea;
}

.app-file-current {
    color: #475467;
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.app-file-current:empty {
    display: none;
}

.scrollable-section,
.dt-scrollBody,
.dataTables_scrollBody {
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.scrollable-section::-webkit-scrollbar,
.dt-scrollBody::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.scrollable-section::-webkit-scrollbar-thumb,
.dt-scrollBody::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    body.admin-shell .content {
        padding: 16px;
    }

    .page-title-box,
    .content-page .event-container > .bg-white,
    .content-page .d-flex.justify-content-between.mb-3 {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .create-btn,
    .btn-primary {
        width: 100%;
    }

    .card .card-body {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .content-page h1,
    .header-d-title {
        font-size: 1.55rem;
    }

    .content-page h2 {
        font-size: 1.32rem;
    }

    .stat-card {
        min-height: 112px;
        padding: 18px;
    }
}
