.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 ... */

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

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

:root {
    --ui-primary: #4f46e5;
    --ui-primary-light: #6366f1;
    --ui-primary-dark: #3730a3;
    --ui-secondary: #06b6d4;
    --ui-success: #22c55e;
    --ui-warning: #f59e0b;
    --ui-danger: #ef4444;
    --ui-dark: #111827;
    --ui-muted: #6b7280;
    --ui-light: #f8fafc;
    --ui-white: #ffffff;
    --ui-border: rgba(148, 163, 184, 0.28);
    --ui-radius-sm: 10px;
    --ui-radius: 16px;
    --ui-radius-lg: 24px;
    --ui-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
    --ui-shadow-hover: 0 22px 60px rgba(15, 23, 42, 0.18);
}

html,
body {
    font-family: 'Inter', 'Source Sans Pro', Arial, sans-serif;
    color: #1f2937;
    background:
            radial-gradient(circle at top left, rgba(99, 102, 241, 0.22), transparent 32%),
            radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 30%),
            linear-gradient(135deg, #eef2ff 0%, #f8fafc 42%, #ecfeff 100%);
    min-height: 100%;
}

body {
    letter-spacing: -0.01em;
}

.wrapper {
    background: transparent;
}

/* Login page */
.login-page {
    background:
            linear-gradient(135deg, rgba(79, 70, 229, 0.72), rgba(6, 182, 212, 0.55)),
            url("/img/template/background-login.jpg");
    background-position: center;
    background-size: cover;
}

.login-page:after {
    background:
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
            linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(30, 41, 59, 0.35));
    backdrop-filter: blur(2px);
}

.login-box {
    z-index: 10;
    border-radius: var(--ui-radius-lg);
}

.login-box .card,
.login-card-body,
.register-card-body {
    border-radius: var(--ui-radius-lg);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.card-primary.card-outline {
    border-top: none;
    box-shadow: var(--ui-shadow);
}

/* Header */
.main-header.navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.main-header .nav-link {
    border-radius: 12px;
    color: #334155 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.main-header .nav-link:hover {
    color: var(--ui-primary) !important;
    background: rgba(79, 70, 229, 0.08);
}

/* Sidebar */
.main-sidebar {
    background:
            radial-gradient(circle at top left, rgba(99, 102, 241, 0.38), transparent 34%),
            linear-gradient(180deg, #111827 0%, #1e1b4b 55%, #0f172a 100%) !important;
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.24);
}

.brand-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-link,
.brand-link .brand-text {
    color: #ffffff !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 {
    margin-left: 6px;
    margin-right: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    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, 255, 255, 0.12);
    transform: translateX(3px);
}

#left-menu .nav-link.active,
.main-sidebar .nav-sidebar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-secondary)) !important;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.34);
}

.main-sidebar .nav-treeview {
    margin: 6px 8px 8px;
    padding: 8px 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.28);
}

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

/* Content area */
.content-wrapper {
    background:
            radial-gradient(circle at 15% 0%, rgba(79, 70, 229, 0.12), transparent 28%),
            radial-gradient(circle at 90% 15%, rgba(6, 182, 212, 0.12), transparent 26%),
            linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(238, 242, 255, 0.96)) !important;
    padding-bottom: 28px;
}

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

.content-header h1 {
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.04em;
}

.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(255, 255, 255, 0.72);
    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.86);
    backdrop-filter: blur(14px);
}

.card-header {
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid var(--ui-border);
    font-weight: 700;
}

.card-title {
    font-weight: 700;
    color: #111827;
}

.card-body {
    color: #374151;
}

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

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

.small-box .inner {
    position: relative;
    z-index: 2;
}

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

.small-box .inner p {
    font-weight: 600;
    opacity: 0.92;
}

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

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

.bg-info {
    background: linear-gradient(135deg, #06b6d4, #2563eb) !important;
}

.bg-success {
    background: linear-gradient(135deg, #22c55e, #14b8a6) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #ffffff !important;
}

.bg-danger {
    background: linear-gradient(135deg, #ef4444, #e11d48) !important;
}

/* Buttons */
.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: 999px !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    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(15, 23, 42, 0.14);
}

.btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-secondary)) !important;
}

.btn-success {
    border-color: transparent !important;
    background: linear-gradient(135deg, #22c55e, #10b981) !important;
}

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

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

.btn-secondary {
    border-color: transparent !important;
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

/* Forms */
.form-control,
.custom-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.input-group-text {
    border-radius: 14px !important;
    border-color: rgba(148, 163, 184, 0.46) !important;
    background-color: rgba(255, 255, 255, 0.88) !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(99, 102, 241, 0.16) !important;
}

.input-group .form-control:first-child,
.input-group .custom-select:first-child {
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
}

.input-group .form-control:last-child,
.input-group .custom-select:last-child,
.input-group-append .btn,
.input-group-prepend .btn,
.input-group-text {
    border-radius: 14px !important;
}

label {
    font-weight: 700;
    color: #334155;
}

/* Tables */
.table {
    color: #334155;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(6, 182, 212, 0.10));
    color: #111827;
    border-bottom: 1px solid var(--ui-border);
    font-weight: 800;
}

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

.table tbody tr:hover {
    background: rgba(79, 70, 229, 0.06);
}

.table td,
.table th {
    vertical-align: middle;
    border-top-color: rgba(148, 163, 184, 0.22);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--ui-radius-lg);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(6, 182, 212, 0.10));
    border-bottom: 1px solid var(--ui-border);
}

.modal-title {
    font-weight: 800;
}

/* Alerts and badges */
.alert {
    border: none;
    border-radius: var(--ui-radius);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.badge {
    border-radius: 999px;
    padding: 0.42em 0.72em;
    font-weight: 700;
}

/* Custom existing blocks */
.no-records-table {
    border-radius: var(--ui-radius);
    background:
            linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08)),
            #ffffff;
    color: var(--ui-muted);
    box-shadow: var(--ui-shadow);
}

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

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

.manager-message .direct-chat-text,
.direct-chat-text {
    border-radius: 16px;
}

.manager-message .direct-chat-text {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-secondary));
    border-color: transparent;
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid var(--ui-border);
    color: #64748b;
    backdrop-filter: blur(14px);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ui-primary-light), var(--ui-secondary));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--ui-primary), #0891b2);
}

/* Responsive polish */
@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.7rem;
    }

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

#left-menu .nav-link, .main-sidebar .nav-sidebar .nav-link {
    margin-left: -6px;
    margin-right: 5px;
    padding: 12px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    transition: all 0.22s ease;
}

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

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

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

.pagination .page-link {
    min-width: 38px;
    height: 38px;
    padding: 8px 13px;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.pagination .page-item.disabled .page-link {
    background: rgba(226, 232, 240, 0.85);
    color: #94a3b8;
    border-color: rgba(203, 213, 225, 0.7);
    box-shadow: none;
    cursor: not-allowed;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 999px !important;
}