.login-page{
    background: url("/img/template/background-login.jpg");
    background-position: center;
    background-size: cover;
}

.login-page:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    /*z-index: 1;*/
}

.login-box{
    z-index: 10;
    border-radius: 5px;
}

.card-primary.card-outline {
    border-top: none;
    box-shadow:0 0 50px #FFFFFF;
}

.no-records-table{
    text-align: center;
    font-size: 20px;
    padding: 50px;
    font-style: italic;
    background: #cccccc;
}

.permission-title{
    font-weight: bold;
    color: #007bff;
    font-size: 15px;
    margin-top: 12px;
}

.check-item{
    margin-right: 10px;
    margin-bottom: 10px;
}

.check-item label{
    font-size: 13px;
    margin-bottom: 15px;
}

.permiss-block{
    border: 1px dashed #ccc;
    padding: 15px 15px 0;
}

.error-castom-field{
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.center-block{
    max-width: 800px;
    margin: auto;
}

.fixed_height .select2-selection--single, .fixed_height .select2-selection{
    height: 40px !important;
}

.position-checkbox-brend, .position-checkbox-brend label{
    margin-bottom: 0 !important;
}

.show-brand{
    border: 1px dashed #ccc;
    margin: 20px 0px;
    padding: 10px 15px 17px;
}

.title-color{
    color: #007bff;
}

.hide-brand .add-fields{
    display: none;
}

.show-block{
    display: block;
}

.hide-block{
    display: none;
}

.background-1{
    background: #fff;
}

.title-block{
    font-size: 1.4rem;
    font-weight: 400;
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
}

.table-pd tr td{
    padding: 7px 15px;

}

.table-pd{
    margin-bottom: 0px;
}

.btn-block-right a{
    margin-left: 15px;
}

.body-lead-block{
    padding: 15px;
}

.progress{display: none;}

.table-avatar{
    width: 40px;
}

.modal {
    text-align: center;
}
@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}
.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.top-left-menu a{
    margin-right: 10px;
}

#edit_desk .select2-selection--single, #edit_desk .select2-selection, .not-min-height .select2-selection, .filter-lead .select2-selection{
    height: auto !important;
}

.vis-check{
    padding: 3px 10px;
}
.filter_columns_block{
    border: 1px dashed #ccc;
    background-color: #ffffff;
    margin: 5px 0px 10px;
    padding: 5px 0px;
}

.row-filter{
    margin-top: 5px;
    margin-bottom: 5px;
}

.stbl{
    cursor: pointer;
}

.manager-message .direct-chat-text{
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.manager-message .direct-chat-text:before, .manager-message .direct-chat-text:after{
    border-right-color: #007bff;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 15px;
    width: 0;
}

.direct-chat-text {
    max-width: 96%;
    margin: 5px 0 0 20px;
}

.manager-message .direct-chat-text {
    display: inline-flex;
    background-color: #666564;
    border-color: #818181;
}

.manager-message .direct-chat-text:before, .manager-message .direct-chat-text:after {
    border-right-color: #666564;
}

.direct-chat-text {
    display: inline-flex;
}

.select2-height-40 .select2-selection{
    height: 40px;
}
.select2-height-40 .select2-container--default .select2-selection--single .select2-selection__arrow b{
    margin-top: 4px;
}


/* ... existing code ... */

/* Warm soft UI redesign */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --ui-primary: #d97706;
    --ui-primary-light: #f59e0b;
    --ui-primary-dark: #92400e;
    --ui-secondary: #c2410c;
    --ui-accent: #fb923c;
    --ui-success: #65a30d;
    --ui-danger: #dc2626;
    --ui-dark: #2f1f12;
    --ui-text: #3d2a1a;
    --ui-muted: #7c6a58;
    --ui-light: #fff7ed;
    --ui-cream: #fffbeb;
    --ui-border: rgba(217, 119, 6, 0.20);
    --ui-radius: 15px;
    --ui-radius-lg: 24px;
    --ui-shadow: 0 14px 36px rgba(120, 53, 15, 0.10);
    --ui-shadow-hover: 0 22px 54px rgba(120, 53, 15, 0.18);
}

html,
body {
    font-family: 'Nunito', 'Source Sans Pro', Arial, sans-serif;
    color: var(--ui-text);
    background:
            radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 30%),
            radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 28%),
            linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
    min-height: 100%;
}

body {
    letter-spacing: -0.01em;
}

.wrapper {
    background: transparent;
}

/* Header */
.main-header.navbar {
    background: rgba(255, 251, 235, 0.92) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 8px 26px rgba(120, 53, 15, 0.08);
}

.main-header .nav-link {
    border-radius: 13px;
    color: #4a2c14 !important;
    font-weight: 800;
    transition: all 0.22s ease;
}

.main-header .nav-link:hover {
    color: var(--ui-primary-dark) !important;
    background: rgba(245, 158, 11, 0.14);
    transform: translateY(-1px);
}

/* Sidebar */
.main-sidebar {
    background:
            radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.34), transparent 34%),
            radial-gradient(circle at 100% 28%, rgba(249, 115, 22, 0.18), transparent 32%),
            linear-gradient(180deg, #4a2c14 0%, #78350f 48%, #2f1f12 100%) !important;
    box-shadow: 16px 0 44px rgba(120, 53, 15, 0.30);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 237, 213, 0.16) !important;
    padding: 18px 16px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.brand-link,
.brand-link .brand-text {
    color: #fff7ed !important;
}

.sidebar {
    padding: 16px 12px;
}

#left-menu,
.main-sidebar .nav-sidebar {
    padding-left: 6px;
    padding-right: 6px;
}

#left-menu .nav-item,
.main-sidebar .nav-sidebar .nav-item {
    margin-bottom: 8px;
}

#left-menu .nav-link,
.main-sidebar .nav-sidebar .nav-link {
    position: relative;
    overflow: hidden;
    margin-left: -6px;
    margin-right: 5px;
    padding: 11px 13px;
    border-radius: 15px;
    color: rgba(255, 247, 237, 0.84);
    font-weight: 800;
    transition:
            color 0.22s ease,
            background-color 0.22s ease,
            transform 0.22s ease,
            box-shadow 0.22s ease;
}

#left-menu .nav-link:before,
.main-sidebar .nav-sidebar .nav-link:before {
    content: '';
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: #fde68a;
    opacity: 0;
    transform: scaleY(0.45);
    transition: all 0.22s ease;
}

#left-menu .nav-link p,
.main-sidebar .nav-sidebar .nav-link p {
    margin-left: 6px;
}

#left-menu .nav-link:hover,
.main-sidebar .nav-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 237, 213, 0.16);
    transform: translateX(5px);
    box-shadow: 0 12px 26px rgba(47, 31, 18, 0.26);
}

#left-menu .nav-link:hover:before,
.main-sidebar .nav-sidebar .nav-link:hover:before {
    opacity: 1;
    transform: scaleY(1);
}

#left-menu .nav-link.active,
.main-sidebar .nav-sidebar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    box-shadow: 0 15px 32px rgba(249, 115, 22, 0.34);
}

#left-menu .nav-link.active:before,
.main-sidebar .nav-sidebar .nav-link.active:before {
    opacity: 1;
    background: #fff7ed;
    transform: scaleY(1);
}

.main-sidebar .nav-treeview {
    margin: 6px 8px 8px;
    padding: 8px 0;
    border-radius: 15px;
    background: rgba(47, 31, 18, 0.34);
}

.main-sidebar .nav-treeview .nav-link {
    padding-left: 18px;
    font-size: 14px;
}

/* Content */
.content-wrapper {
    background:
            radial-gradient(circle at 15% 0%, rgba(251, 191, 36, 0.14), transparent 28%),
            radial-gradient(circle at 90% 15%, rgba(249, 115, 22, 0.10), transparent 26%),
            linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96)) !important;
    padding-bottom: 28px;
}

.content-header {
    padding-top: 22px;
}

.content-header h1 {
    font-weight: 900;
    color: #3d2a1a;
    letter-spacing: -0.045em;
}

.content .container-fluid {
    padding-left: 22px;
    padding-right: 22px;
}

/* Cards and blocks */
.card,
.info-box,
.small-box,
.background-1,
.show-brand,
.permiss-block,
.filter_columns_block {
    border: 1px solid rgba(253, 230, 138, 0.76);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.card,
.background-1,
.show-brand,
.permiss-block,
.filter_columns_block {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.card-header {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(255, 247, 237, 0.92));
    border-bottom: 1px solid var(--ui-border);
    font-weight: 900;
}

.card-title {
    font-weight: 900;
    color: #78350f;
}

.card-body {
    color: #4a2c14;
}

.small-box {
    border: none;
    color: #ffffff;
    transition: all 0.24s ease;
}

.small-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-hover);
}

.small-box .inner h3 {
    font-weight: 900;
    letter-spacing: -0.04em;
}

.small-box .inner p {
    font-weight: 800;
    opacity: 0.94;
}

.small-box .icon {
    color: rgba(255, 255, 255, 0.25);
}

.small-box-footer {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

/* Buttons */
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: 999px !important;
    font-weight: 900;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.10);
    transition: all 0.2s ease;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(120, 53, 15, 0.16);
}

.btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, #d97706, #f97316) !important;
}

.btn-success {
    border-color: transparent !important;
    background: linear-gradient(135deg, #65a30d, #16a34a) !important;
}

.btn-danger {
    border-color: transparent !important;
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
}

.btn-warning {
    border-color: transparent !important;
    background: linear-gradient(135deg, #f59e0b, #eab308) !important;
    color: #ffffff !important;
}

.btn-secondary {
    border-color: transparent !important;
    background: linear-gradient(135deg, #78716c, #57534e) !important;
}

/* Forms */
.form-control,
.custom-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.input-group-text {
    border-radius: 13px !important;
    border-color: rgba(217, 119, 6, 0.26) !important;
    background-color: rgba(255, 255, 255, 0.90) !important;
    transition: all 0.2s ease;
}

.form-control:focus,
.custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--ui-primary-light) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16) !important;
}

label {
    font-weight: 900;
    color: #4a2c14;
}

/* Compact tables */
.table {
    color: #4a2c14;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.table thead th {
    padding: 8px 11px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 237, 213, 0.95));
    color: #78350f;
    border-bottom: 1px solid rgba(217, 119, 6, 0.22);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.table thead th:first-child {
    border-top-left-radius: 12px;
}

.table thead th:last-child {
    border-top-right-radius: 12px;
}

.table tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 247, 237, 0.68);
}

.table tbody tr:hover {
    background: rgba(254, 215, 170, 0.42);
    box-shadow: inset 4px 0 0 #f59e0b;
}

.table td,
.table th {
    vertical-align: middle;
    border-top-color: rgba(217, 119, 6, 0.15);
}

.table td {
    padding: 5px 10px;
    line-height: 1.22;
}

.table-pd tr td {
    padding: 5px 10px;
}

.table-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 10px;
}

/* Pagination */
.pagination {
    gap: 6px;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 7px 12px;
    border-radius: 999px !important;
    border: 1px solid rgba(217, 119, 6, 0.26);
    background: rgba(255, 255, 255, 0.92);
    color: #b45309;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(120, 53, 15, 0.08);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #d97706, #f97316);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #d97706, #f97316);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.pagination .page-item.disabled .page-link {
    background: rgba(229, 231, 235, 0.86);
    color: #a8a29e;
    border-color: rgba(214, 211, 209, 0.7);
    box-shadow: none;
    cursor: not-allowed;
}

/* Existing custom blocks */
.no-records-table {
    border-radius: var(--ui-radius);
    background:
            linear-gradient(135deg, rgba(254, 243, 199, 0.88), rgba(255, 247, 237, 0.92)),
            #ffffff;
    color: var(--ui-muted);
    box-shadow: var(--ui-shadow);
}

.permission-title,
.title-color {
    color: var(--ui-primary);
    font-weight: 900;
}

.title-block {
    border-bottom: 1px solid var(--ui-border);
    font-weight: 900;
    color: #78350f;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--ui-radius-lg);
    box-shadow: 0 30px 90px rgba(120, 53, 15, 0.30);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.88), rgba(255, 247, 237, 0.94));
    border-bottom: 1px solid var(--ui-border);
}

.modal-title {
    font-weight: 900;
    color: #78350f;
}

/* Footer */
.main-footer {
    background: rgba(255, 251, 235, 0.86);
    border-top: 1px solid var(--ui-border);
    color: #7c6a58;
    backdrop-filter: blur(14px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #ffedd5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #f97316);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d97706, #ea580c);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .content .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .content-header {
        padding-top: 16px;
    }

    .content-header h1 {
        font-size: 1.65rem;
    }

    .card,
    .info-box,
    .small-box {
        border-radius: 18px;
    }

    .table {
        font-size: 12px;
    }

    .table thead th,
    .table td {
        padding: 5px 8px;
    }
}

.login-page {
    background: url(/img/template/background3.jpg);
    background-position: center;

}