:root {
    --admin-primary: #3159c8;
    --admin-primary-dark: #233e94;
    --admin-background-color: #3159c8;
    --admin-primary-soft: #edf1ff;
    --admin-background: #f3f5fc;
    --admin-black: #151a35;
    --admin-grey: #3b425f;
    --admin-muted: #7d85a1;
    --admin-white: #ffffff;
    --admin-yellow: #ffb91d;
    --admin-night: #101638;
    --admin-navy: #182451;
    --admin-violet: #713bff;
    --admin-cyan: #08d3e8;
    --admin-action-gradient: linear-gradient(105deg, var(--admin-violet) 0%, #4c62f4 48%, var(--admin-cyan) 100%);
    --admin-action-gradient-hover: linear-gradient(105deg, #5929e8 0%, #3c52e2 48%, #00b9d0 100%);
    --theme-default-white: var(--admin-white);
    --theme-default-black: var(--admin-black);
    --theme-default-orange: var(--admin-primary);
    --theme-default-orange-hover: var(--admin-primary-dark);
}

body {
    color: var(--admin-grey);
    background: var(--admin-background);
}

a,
.default-color {
    color: var(--admin-primary);
}

a:hover {
    color: var(--admin-primary-dark);
}

.default-button,
.btn-primary,
.back-to-top,
body .back-to-top,
body .back-to-top i {
    color: var(--admin-white);
    background: var() !important;
    border-color: transparent !important;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.btn-success,
.btn-info {
    color: var(--admin-white) !important;
    background: var(--admin-background-color) !important;
    border-color: transparent !important;
}

.btn-success:hover,
.btn-info:hover {
    color: var(--admin-white) !important;
   
    border-color: transparent !important;
}

.default-button:hover,
.btn-primary:hover,
.back-to-top:hover,
body .back-to-top:hover,
body .back-to-top:hover i {
    color: var(--admin-white);
    background: var(--admin-background-color) !important;
    border-color: transparent !important;
}

.btn {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.default-button:hover,
.back-to-top:hover,
.dashboard-welcome-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(71, 76, 204, 0.25);
}

.btn:active,
.default-button:active,
.back-to-top:active,
.dashboard-welcome-action:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:active,
.default-button:active {
    color: var(--admin-white) !important;
    background: var(--admin-background-color) !important;
    border-color: transparent !important;
}

.btn:focus-visible,
.default-button:focus-visible,
.back-to-top:focus-visible,
.form-control:focus,
.form-select:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(75, 91, 218, 0.2);
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.page-link:hover {
    color: var(--admin-white) !important;
    background: var(--admin-background-color) !important;
    border-color: transparent !important;
}

.header {
    height: 64px;
    padding-left: 16px;
    box-shadow: 0 1px 0 rgba(49, 89, 200, 0.12);
}

.header .logo {
    width: 190px;
    padding-left: 0;
    gap: 10px;
}

.header .logo img {
    width: 48px;
    height: 42px;
    max-height: 42px !important;
    object-fit: contain;
}

.header .toggle-sidebar-btn {
    color: var(--admin-muted);
    font-size: 25px;
}

.header-nav .nav-profile span {
    color: var(--admin-black);
    font-size: 13px;
    font-weight: 600;
}

.header-nav .nav-profile img {
    width: 34px;
    height: 34px;
}

.sidebar {
    top: 64px;
    width: 248px;
    padding: 22px 12px;
    background: var(--admin-white);
    box-shadow: 1px 0 0 rgba(49, 89, 200, 0.08);
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-link,
#sidebar .sidebar-nav li .nav-link,
#sidebar .sidebar-nav .nav-item a {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #535d72;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-nav .nav-link i,
#sidebar .sidebar-nav li .nav-link i {
    margin-right: 10px;
    color: #77839a;
    font-size: 16px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:not(.collapsed),
#sidebar .sidebar-nav li .nav-link.active,
#sidebar .sidebar-nav .nav-item a.active {
    color: var(--admin-white) !important;
    background: linear-gradient(110deg, #151e4b, #3159c8) !important;
    box-shadow: 0 5px 14px rgba(49, 89, 200, 0.24);
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link:not(.collapsed) i,
#sidebar .sidebar-nav li .nav-link.active i {
    color: var(--admin-white) !important;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-content a:hover,
#sidebar .sidebar-nav li .nav-link:hover {
    color: var(--admin-primary) !important;
    background: #edf1ff !important;
}

.sidebar-nav .nav-link:hover i,
#sidebar .sidebar-nav li .nav-link:hover i {
    color: var(--admin-primary) !important;
}

.sidebar-nav .nav-content a.active {
    color: var(--admin-primary) !important;
    background: #edf1ff !important;
}

#main {
    margin-top: 64px;
    padding: 24px 24px 20px;
}

.pagetitle {
    margin-bottom: 14px;
}

.pagetitle h1 {
    color: var(--admin-black);
    font-size: 21px;
    font-weight: 650;
}

.breadcrumb {
    margin-top: 5px;
}

.breadcrumb a,
.breadcrumb .active {
    color: var(--admin-muted);
}

.card {
    overflow: hidden;
    border: 1px solid rgba(49, 69, 145, 0.08);
    border-radius: 12px;
    background: var(--admin-white);
    box-shadow: 0 5px 20px rgba(32, 54, 112, 0.06);
}

.card-header,
.card-footer {
    display: flex;
    align-items: center;
  
    min-height: 62px;
    padding: 12px 18px;
    border-color: #edf0f7;
    background: var(--admin-white);
}

.card-header a.btn {
    border-radius: 7px !important;
    padding: 9px 16px !important;
    border: 1px solid var(--admin-primary) !important;
    font-size: 13px;
    font-weight: 600;
}

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

#main .section .card-body {
    padding-bottom: 24px;
}

.card-title {
    color: var(--admin-black);
    font-size: 16px;
    font-weight: 650;
}

.table-responsive {
    border-radius: 9px;
}

.table-responsive .table {
    margin-bottom: 0;
    color: var(--admin-grey);
    vertical-align: middle;
}

.table-responsive .table thead th {
    padding: 12px 14px;
    border-bottom: 1px solid #e8edf7;
    color: #4c5871;
    background: #f0f3fc;
    font-size: 12px;
    font-weight: 650;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
}

.table-responsive .table tbody td {
    padding: 10px 14px;
    border-color: #edf0f7;
    font-size: 12px;
    vertical-align: middle;
}

.table-responsive .table th,
.table-responsive .table td {
    padding-right: 14px;
}

.table-responsive .table tbody tr:nth-child(even) {
    background: #f7f9fe;
}

.table-responsive .table-hover tbody tr:hover {
    background: #f3f6ff;
}

#table tbody tr td .btn,
#table tbody tr td form button {
    min-width: 32px;
    min-height: 30px;
    margin: 0 2px;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px !important;
    color: var(--admin-white);
    background: var(--admin-background-color);
}

#table tbody tr td .btn-success {
    background: linear-gradient(105deg, #3c62e9, var(--admin-cyan)) !important;
    border-color: transparent !important;
}

#table tbody tr td .btn-danger,
#table tbody tr td form button.btn-danger {
    background: #ef476f !important;
}

#table tbody tr td .btn:hover,
#table tbody tr td form button:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

#table_wrapper .row {
    align-items: center;
    row-gap: 10px;
}

#table_wrapper .dataTables_length,
#table_wrapper .dataTables_filter,
#table_wrapper .dataTables_info,
#table_wrapper .dataTables_paginate,
.dt-container .dt-length,
.dt-container .dt-search,
.dt-container .dt-info,
.dt-container .dt-paging {
    color: #59657b;
    font-size: 12px;
}

#table_wrapper input,
#table_wrapper select,
.dt-container input,
.dt-container select {
    min-height: 36px;
    border: 1px solid #e0e6f1;
    border-radius: 7px;
    background-color: var(--admin-white);
}

#table_wrapper .pagination,
.dt-container .dt-paging nav {
    gap: 5px;
}

#table_wrapper .pagination .page-link,
.dt-container .dt-paging .dt-paging-button {
    min-width: 34px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #e2e7f1;
    border-radius: 7px;
    color: #536078;
    background: var(--admin-white);
    text-align: center;
}

#table_wrapper .pagination .active .page-link,
.dt-container .dt-paging .dt-paging-button.current {
    color: var(--admin-white) !important;
    background: var(--admin-background-color) !important;
    border-color: transparent !important;
}

.form-control,
.form-select,
.form-control:disabled,
.form-control[readonly] {
    width: 100% !important;
    min-height: 42px;
    border: 1px solid #e1e7f1;
    border-radius: 7px;
    color: var(--admin-black);
    background-color: #fff;
    font-size: 13px;
}

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

.form-control:focus,
.form-select:focus {
    border-color: rgba(49, 89, 200, 0.55);
}

.col-form-label,
.form-label {
    color: #4d5870;
    font-size: 13px;
    font-weight: 600;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f7f9fd;
    opacity: 1;
}

.table-responsive img,
.general-image {
    border-radius: 8px;
}

.footer {
    padding: 16px 0;
    border-color: #e6ebf4;
    background: transparent;
}

.footer .copyright {
    color: var(--admin-muted);
    font-size: 12px;
}

.alert {
    border-radius: 9px;
}

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

.auth-page {
    min-height: 100vh;
    color: var(--admin-black);
    background:
        radial-gradient(ellipse at 17% 95%, rgba(8, 211, 232, 0.2), transparent 31%),
        radial-gradient(ellipse at 89% 86%, rgba(113, 59, 255, 0.25), transparent 30%),
        radial-gradient(ellipse at 83% 12%, rgba(49, 89, 200, 0.48), transparent 36%),
        linear-gradient(135deg, var(--admin-night) 0%, #141c49 52%, #213c8a 100%);
}

.auth-page::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(132deg, transparent 14%, rgba(8, 211, 232, 0.75) 14.12%, transparent 14.35%) no-repeat,
        linear-gradient(132deg, transparent 88%, rgba(113, 59, 255, 0.8) 88.12%, transparent 88.35%) no-repeat;
    content: "";
    pointer-events: none;
}

.auth-page main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.auth-page main > .container {
    max-width: none;
    padding: 0;
}

.auth-page .register {
    min-height: 100vh;
    padding: 36px 16px;
}

.auth-page .register > .container {
    max-width: 1140px;
}

.auth-page .register .logo {
    display: flex;
    width: 72px;
    height: 72px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
    background: rgba(16, 22, 56, 0.82);
    box-shadow: 0 0 24px rgba(8, 211, 232, 0.25);
    justify-content: center;
    align-items: center;
}

.auth-page .register .logo img {
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    object-fit: contain;
}

.auth-page .auth-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(79, 87, 230, 0.2), 0 18px 60px rgba(0, 0, 0, 0.28);
}

.auth-page .auth-card .card-body {
    padding: 28px;
}

.auth-page .auth-card .card-title {
    padding: 8px 0 5px;
    color: var(--admin-black);
    font-family: "Poppins", sans-serif;
    font-size: 24px !important;
    font-weight: 700;
}

.auth-page .auth-card p {
    color: #5f687a;
}

.auth-page .auth-card .form-label {
    color: #3b4252;
}

.auth-page .auth-card .form-control {
    background: #f2f5fb;
}

.auth-page .auth-card .btn-primary {
    min-height: 44px;
    border-radius: 7px;
    background: var(--admin-background-color) !important;
    box-shadow: 0 7px 18px rgba(76, 82, 226, 0.3);
}

.auth-page .auth-card .btn-primary:hover {
    background: var(--admin-background-color) !important;
    box-shadow: 0 9px 22px rgba(76, 82, 226, 0.4);
}

.auth-page .auth-card .small a {
    color: var(--admin-primary);
    font-weight: 600;
}

.auth-page .auth-card .col-12.d-flex.justify-content-between {
    justify-content: flex-end !important;
}

.dashboard .dashboard-welcome {
    position: relative;
    display: flex;
    min-height: 172px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 28px 32px;
    border-radius: 13px;
    color: var(--admin-white);
    background: linear-gradient(110deg, var(--admin-night) 0%, #1b3476 54%, #3159c8 100%);
    box-shadow: 0 10px 24px rgba(49, 89, 200, 0.2);
}

.dashboard-welcome > div,
.dashboard-welcome-action {
    position: relative;
    z-index: 1;
}

.dashboard-welcome .dashboard-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.dashboard-welcome h2 {
    margin: 0 0 7px;
    color: var(--admin-white);
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 700;
}

.dashboard-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.dashboard-welcome-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    color: var(--admin-white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-welcome-action:hover {
    color: var(--admin-white);
    background: rgba(255, 255, 255, 0.22);
}

.dashboard-welcome-icon {
    position: absolute;
    right: 150px;
    bottom: -54px;
    color: rgba(255, 255, 255, 0.1);
    font-size: 195px;
    line-height: 1;
    transform: rotate(-12deg);
}

.dashboard-stats {
    margin-bottom: 18px;
}

.dashboard-stat-card {
    display: flex;
    min-height: 134px;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    border: 1px solid rgba(49, 69, 145, 0.08);
    border-radius: 11px;
    background: var(--admin-white);
    box-shadow: 0 5px 20px rgba(32, 54, 112, 0.05);
}

.dashboard-stat-icon {
    display: inline-flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 19px;
}

.dashboard-stat-blue {
    color: var(--admin-primary);
    background: var(--admin-primary-soft);
}

.dashboard-stat-cyan {
    color: #087f9c;
    background: #e5faff;
}

.dashboard-stat-violet {
    color: #6532e6;
    background: #f1ebff;
}

.dashboard-stat-yellow {
    color: #a97100;
    background: #fff5dc;
}

.dashboard-stat-card > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-stat-label {
    margin: 1px 0 4px;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 600;
}

.dashboard-stat-card strong {
    color: var(--admin-black);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-stat-card a {
    margin-top: 7px;
    color: var(--admin-primary);
    font-size: 11px;
    font-weight: 600;
}

.dashboard-stat-card a i {
    margin-left: 2px;
    font-size: 10px;
}

.dashboard-content {
    margin-bottom: 18px;
}

.dashboard-panel,
.dashboard-shortcuts {
    padding: 20px;
    border: 1px solid rgba(49, 69, 145, 0.08);
    border-radius: 11px;
    background: var(--admin-white);
    box-shadow: 0 5px 20px rgba(32, 54, 112, 0.05);
}

.dashboard-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.dashboard-panel-heading h3,
.dashboard-shortcuts-heading h3 {
    margin: 0 0 5px;
    color: var(--admin-black);
    font-size: 15px;
    font-weight: 700;
}

.dashboard-panel-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 11px;
}

.dashboard-panel-heading > a {
    flex-shrink: 0;
    padding-top: 2px;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-table-wrap {
    margin: 0 -4px;
}

.dashboard-table {
    min-width: 520px;
    margin: 0;
    color: var(--admin-grey);
    font-size: 11px;
    vertical-align: middle;
}

.dashboard-table thead th {
    padding: 10px 9px;
    border-bottom: 1px solid #edf0f7;
    color: var(--admin-muted);
    background: #f7f9fd;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 11px 9px;
    border-color: #f0f2f7;
    color: #535e73;
    white-space: nowrap;
}

.dashboard-user-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--admin-black);
    font-weight: 600;
}

.dashboard-avatar {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--admin-primary);
    background: var(--admin-primary-soft);
    font-size: 11px;
    font-weight: 700;
}

.dashboard-row-action {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--admin-primary);
    background: var(--admin-primary-soft);
}

.dashboard-inquiry-list {
    display: flex;
    flex-direction: column;
}

.dashboard-inquiry {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f7;
}

.dashboard-inquiry:first-child {
    padding-top: 1px;
}

.dashboard-inquiry:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-inquiry-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--admin-primary);
    background: var(--admin-primary-soft);
    font-size: 14px;
}

.dashboard-inquiry-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.dashboard-inquiry-name {
    overflow: hidden;
    color: var(--admin-black);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-inquiry-email,
.dashboard-inquiry-message {
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-inquiry-message {
    margin-top: 4px;
    color: #59657b;
}

.dashboard-inquiry-date {
    flex-shrink: 0;
    color: var(--admin-muted);
    font-size: 10px;
}

.dashboard-empty {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--admin-muted);
    font-size: 12px;
}

.dashboard-empty i {
    color: #a8b5d0;
    font-size: 26px;
}

.dashboard-shortcuts {
    padding: 19px 20px 20px;
}

.dashboard-shortcuts-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-shortcuts-heading h3 {
    margin: 0;
}

.dashboard-shortcuts-heading span {
    color: var(--admin-muted);
    font-size: 10px;
}

.dashboard-shortcut-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.dashboard-shortcut {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #edf0f7;
    border-radius: 9px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dashboard-shortcut:hover {
    border-color: #d5ddfb;
    background: #f8f9ff;
}

.dashboard-shortcut-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--admin-primary);
    background: var(--admin-primary-soft);
}

.dashboard-shortcut-violet {
    color: #6532e6;
    background: #f1ebff;
}

.dashboard-shortcut-yellow {
    color: #a97100;
    background: #fff5dc;
}

.dashboard-shortcut > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.dashboard-shortcut strong {
    overflow: hidden;
    color: var(--admin-black);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shortcut small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shortcut > i {
    color: #9ba6ba;
    font-size: 11px;
}

@media (min-width: 1200px) {
    .sidebar {
        width: 248px;
    }

    #main,
    #footer {
        margin-left: 248px;
    }

    body.toggle-sidebar #main,
    body.toggle-sidebar #footer {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    #main {
        padding: 18px 14px;
    }

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

    .auth-page .auth-card .card-body {
        padding: 22px 18px;
    }

    .dashboard .dashboard-welcome {
        min-height: 160px;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .dashboard-welcome-icon {
        right: -15px;
        bottom: -44px;
        font-size: 150px;
    }

    .dashboard-welcome-action {
        padding: 8px 12px;
    }

    .dashboard-panel,
    .dashboard-shortcuts {
        padding: 16px 14px;
    }

    .dashboard-shortcut-list {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcut {
        padding: 10px;
    }
}
