:root {
    --dtm-bg: #f4f7fb;
    --dtm-surface: #ffffff;
    --dtm-surface-elevated: #fcfdff;
    --dtm-surface-soft: #f8fafc;
    --dtm-border: #e2e8f0;
    --dtm-text: #0f172a;
    --dtm-text-soft: #64748b;
    --dtm-primary: #2563eb;
    --dtm-primary-dark: #1d4ed8;
    --dtm-primary-soft: rgba(37, 99, 235, 0.12);
    --dtm-accent: #14b8a6;
    --dtm-success: #16a34a;
    --dtm-warning: #f59e0b;
    --dtm-danger: #dc2626;
    --dtm-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --dtm-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    --dtm-radius: 18px;
    --dtm-radius-sm: 12px;
}

body {
    background: linear-gradient(180deg, #f8fbff 0%, var(--dtm-bg) 100%);
    color: var(--dtm-text);
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#main-wrapper {
    background: transparent;
}

.topbar {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.top-navbar .navbar-header,
.top-navbar .navbar-collapse {
    background: transparent !important;
}

.navbar .navbar-brand {
    padding-left: 0.75rem;
}

.profile-pic,
.profile-pic:hover,
.profile-pic:focus {
    color: #e2e8f0 !important;
    text-decoration: none;
}

.left-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.05);
    overflow-x: hidden;
}

.left-sidebar .scroll-sidebar {
    padding: 1rem 0.7rem 1.25rem;
    overflow-x: hidden;
}

.sidebar-nav,
.sidebar-nav #sidebarnav,
.sidebar-nav ul,
.sidebar-nav li,
.sidebar-nav .collapse {
    max-width: 100%;
}

.sidebar-nav ul {
    padding-left: 0;
}

.sidebar-nav .sidebar-item {
    width: 100%;
}

.sidebar-nav .has-arrow::after {
    display: none !important;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 0.85rem;
    color: #334155 !important;
    border-radius: 16px;
    font-weight: 600;
    margin: 0.26rem 0;
    padding: 0.86rem 0.9rem;
    overflow: hidden;
    transition: all 0.22s ease;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active,
.sidebar-nav ul li.selected > a {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(20, 184, 166, 0.12));
    color: var(--dtm-primary) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 10px 20px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.sidebar-nav ul li a i {
    color: inherit !important;
}

.menu-icon-badge,
.submenu-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    transition: inherit;
}

.menu-icon-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.menu-icon-badge i {
    font-size: 1rem;
}

.sidebar-nav ul li a:hover .menu-icon-badge,
.sidebar-nav ul li a.active .menu-icon-badge,
.sidebar-nav ul li.selected > a .menu-icon-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(20, 184, 166, 0.18));
}

.submenu-arrow {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--dtm-text-soft);
    font-size: 0.82rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-nav .sidebar-item.selected > a .submenu-arrow,
.sidebar-nav a[aria-expanded="true"] .submenu-arrow {
    color: var(--dtm-primary);
    transform: rotate(90deg);
}

.sidebar-nav .first-level {
    margin: 0.15rem 0 0.55rem;
    padding: 0.45rem 0 0.25rem 0.7rem;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.sidebar-nav .first-level .sidebar-link {
    border-radius: 14px;
    padding: 0.72rem 0.85rem;
    gap: 0.7rem;
    font-size: 0.94rem;
    color: #475569 !important;
}

.submenu-icon-badge {
    width: 30px;
    height: 30px;
    background: rgba(148, 163, 184, 0.14);
}

.submenu-icon-badge i {
    font-size: 0.82rem;
}

.sidebar-nav .first-level .sidebar-link:hover .submenu-icon-badge,
.sidebar-nav .first-level .sidebar-link.active .submenu-icon-badge {
    background: rgba(37, 99, 235, 0.14);
}

.sidebar-nav .hide-menu {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.page-wrapper {
    background: transparent;
}

.modern-shell {
    padding-top: 0.5rem;
}

.page-breadcrumb {
    background: transparent !important;
    padding: 1.5rem 1.5rem 0.75rem;
}

.page-title {
    color: var(--dtm-text);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container-fluid {
    padding: 0 1.5rem 1.5rem;
}

.white-box,
.card,
.modal-content,
.chat-main-box,
.comment-widgets,
.table-responsive,
.table-responsive2 {
    background: var(--dtm-surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--dtm-radius);
    box-shadow: var(--dtm-shadow);
}

.white-box {
    padding: 1.5rem;
}

.table-responsive,
.table-responsive2 {
    overflow: hidden;
}

.modern-content-box {
    position: relative;
}

.modern-content-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(20, 184, 166, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card,
.modal-content {
    overflow: hidden;
}

.card .card-header,
.modal-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--dtm-border);
}

.table {
    color: var(--dtm-text);
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    color: #334155;
    border-bottom: 1px solid var(--dtm-border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-color: #edf2f7;
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
    box-shadow: inset 4px 0 0 rgba(37, 99, 235, 0.18);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(148, 163, 184, 0.035);
}

.table td .btn,
.table th .btn {
    box-shadow: none;
}

label,
.col-form-label,
.form-label {
    color: #334155;
    font-weight: 700;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"] {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: none !important;
    color: var(--dtm-text);
    min-height: 44px;
    transition: all 0.2s ease;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.btn {
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-height: 42px;
    padding: 0.7rem 1.1rem;
    box-shadow: var(--dtm-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.btn-primary,
.btn-info {
    background: linear-gradient(135deg, var(--dtm-primary), #3b82f6) !important;
    color: #fff !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--dtm-success), #22c55e) !important;
    color: #fff !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--dtm-warning), #fbbf24) !important;
    color: #111827 !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--dtm-danger), #ef4444) !important;
    color: #fff !important;
}

.btn-secondary,
.btn-light {
    background: #fff !important;
    color: #334155 !important;
    border: 1px solid #dbe4f0 !important;
}

.btn-xs,
.btn-sm {
    border-radius: 10px;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
}

.badge,
.label {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
}

.breadcrumb {
    gap: 0.4rem;
    margin-bottom: 0;
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
    color: var(--dtm-text-soft);
    font-weight: 600;
}

.analytics-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 128px;
    background: linear-gradient(180deg, #ffffff 0%, var(--dtm-surface-elevated) 100%);
    overflow: hidden;
}

.analytics-info::after {
    content: "";
    position: absolute;
    inset: auto -28px -28px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    filter: blur(6px);
}

.analytics-info .widget-icon,
.analytics-info .widget-copy {
    position: relative;
    z-index: 1;
}

.analytics-info .widget-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 18px 28px rgba(37, 99, 235, 0.18);
}

.analytics-info .widget-icon i {
    font-size: 1.2rem;
}

.analytics-info .widget-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.analytics-info .widget-label {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analytics-info .widget-total {
    color: #0f172a;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.widget-color-primary .widget-icon {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.widget-color-info .widget-icon {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.widget-color-success .widget-icon {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

.widget-color-warning .widget-icon {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.widget-color-danger .widget-icon {
    background: linear-gradient(135deg, #dc2626, #f87171);
}

.dashboard-action-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dashboard-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--dtm-shadow-soft);
}

.dashboard-action-copy {
    min-width: 0;
}

.dashboard-action-title {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-action-text {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.dashboard-action-card .btn {
    white-space: nowrap;
}

.dashboard-zone-panel {
    margin-bottom: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-zone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-zone-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-zone-subtitle {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.dashboard-zone-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-zone-card {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--dtm-shadow-soft);
    overflow: hidden;
}

.dashboard-zone-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
}

.dashboard-zone-card-top,
.dashboard-zone-name,
.dashboard-zone-meta,
.dashboard-zone-progress,
.dashboard-zone-foot {
    position: relative;
    z-index: 1;
}

.dashboard-zone-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.dashboard-zone-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-zone-count {
    color: #0f172a;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.dashboard-zone-name {
    margin: 0 0 0.8rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-zone-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-zone-meta strong {
    color: #1d4ed8;
    font-weight: 800;
}

.dashboard-zone-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.dashboard-zone-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.dashboard-zone-foot {
    margin-top: 0.65rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-zone-empty {
    padding: 1.15rem;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    text-align: center;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
}

.dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 0.45rem;
}

.dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: var(--dtm-primary);
}

.font-sans.text-gray-900.antialiased,
.min-h-screen.bg-gray-100,
.min-h-screen.bg-gray-100 > div {
    background: linear-gradient(180deg, #f8fbff 0%, var(--dtm-bg) 100%) !important;
}

.min-h-screen .sm\:max-w-md,
.min-h-screen .w-full.sm\:max-w-md {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.min-h-screen .w-full.sm\:max-w-md,
.min-h-screen .sm\:max-w-md {
    padding: 0.25rem;
}

.min-h-screen .w-full.sm\:max-w-md > *,
.min-h-screen .sm\:max-w-md > * {
    border-radius: 18px;
}

.pagination .page-link {
    border: 1px solid #dbe4f0;
    color: #334155;
    border-radius: 10px;
    margin: 0 0.15rem;
}

.pagination .active .page-link,
.page-item.active .page-link {
    background: var(--dtm-primary);
    border-color: var(--dtm-primary);
    color: #fff;
}

.alert {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--dtm-shadow);
}

.swal-modal {
    border-radius: 18px;
}

.swal-button {
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .page-breadcrumb,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .white-box {
        padding: 1rem;
    }

    .dashboard-action-card {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-zone-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--dtm-bg) 100%);
}

.auth-login-grid {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
}

.auth-brand-panel {
    position: relative;
    padding: 2.5rem;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 42%, rgba(37, 99, 235, 0.9) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(8px);
}

.auth-brand-copy,
.auth-brand-media,
.auth-brand-meta {
    position: relative;
    z-index: 1;
}

.auth-eyebrow,
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.auth-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--dtm-primary);
}

.auth-brand-copy h1,
.auth-form-header h2 {
    margin: 0.9rem 0 0.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-brand-copy h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1.05;
}

.auth-form-header h2 {
    color: var(--dtm-text);
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

.auth-brand-copy p,
.auth-form-header p,
.auth-form-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-form-header p,
.auth-form-note {
    color: var(--dtm-text-soft);
}

.auth-brand-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand-media img {
    width: min(100%, 340px);
    max-height: 230px;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.22);
}

.auth-brand-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-meta-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-meta-card span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 0.3rem;
}

.auth-meta-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.auth-form-panel {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    width: min(100%, 260px);
    max-height: 140px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.85rem 1rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.auth-form {
    margin-top: 1.5rem;
    width: 100%;
}

.auth-form-header {
    text-align: center;
}

.auth-form .block.mt-2.w-full,
.auth-form .block.mt-1.w-full {
    width: 100%;
}

.auth-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-submit-button {
    width: 100%;
    min-width: 180px;
    justify-content: center;
    min-height: 52px;
    border-radius: 18px !important;
    padding: 0.9rem 1.25rem !important;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
}

.auth-submit-button:hover,
.auth-submit-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.28);
}

.plan-map-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(219, 226, 240, 0.95);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.plan-map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.plan-map-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.plan-map-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.plan-map-chip,
.plan-map-icon-btn {
    border: 1px solid #dbe2f0;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    min-height: 34px;
    padding: 0.42rem 0.82rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
}

.plan-map-chip:hover,
.plan-map-chip.active,
.plan-map-icon-btn:hover {
    background: linear-gradient(135deg, var(--dtm-primary), #3b82f6);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.plan-map-chip-soft.active {
    background: linear-gradient(135deg, #0f172a, #334155);
}

.plan-map-icon-btn {
    width: 34px;
    padding: 0;
    text-align: center;
}

.plan-coordinate-summary {
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
}

.plan-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.plan-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.plan-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.plan-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.plan-nav-btn:hover,
.plan-nav-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
    color: #fff !important;
}

.plan-nav-btn-waze {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.plan-nav-btn-google {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.plan-map-canvas {
    width: 100%;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dbe2f0;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.plan-map-toolbar {
    line-height: 1.4;
}

.plan-map-status {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.plan-map-status-muted {
    background: #f8fafc;
    border: 1px solid #dbe2f0;
    color: #64748b;
}

.plan-map-status-pending {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.plan-map-status-good {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.16);
    color: #15803d;
}

.plan-map-status-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.plan-map-status-danger {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.16);
    color: #b91c1c;
}

.leaflet-container {
    font-family: 'Inter', sans-serif;
    background: #e2e8f0;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.88) !important;
    border-radius: 10px !important;
    margin: 0 10px 10px 0 !important;
    padding: 0.2rem 0.5rem !important;
    backdrop-filter: blur(10px);
}

.plan-marker-wrap {
    background: transparent;
    border: 0;
}

.plan-marker-pin {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #93c5fd 0%, #2563eb 58%, #1d4ed8 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
}

.plan-marker-pin::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.client-map-filter-shell {
    padding: 1rem 1rem 0.1rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(219, 226, 240, 0.95);
    border-radius: 20px;
    box-shadow: var(--dtm-shadow-soft);
}

.client-map-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-map-summary-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--dtm-shadow-soft);
}

.client-map-summary-label {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.client-map-summary-value {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.client-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.client-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(219, 226, 240, 0.95);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
}

.client-map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.client-map-legend-dot-success {
    background: #16a34a;
}

.client-map-legend-dot-warning {
    background: #f59e0b;
}

.client-map-legend-dot-danger {
    background: #dc2626;
}

.client-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.client-map-main {
    min-width: 0;
}

.client-map-canvas {
    width: 100%;
    height: 560px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dbe2f0;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.client-map-side-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem;
    border: 1px solid rgba(219, 226, 240, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--dtm-shadow-soft);
}

.client-map-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.client-map-side-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.client-map-side-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 800;
}

.client-map-side-list {
    display: grid;
    gap: 0.75rem;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.client-map-side-item {
    display: block;
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.client-map-side-item:hover,
.client-map-side-item:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.22);
}

.client-map-side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.client-map-side-node {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.client-map-side-item strong,
.client-map-side-item span,
.client-map-side-item small {
    display: block;
}

.client-map-side-item strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.client-map-side-item span {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
}

.client-map-side-item small {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.client-map-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.client-map-status-badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.client-map-status-badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.client-map-status-badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.client-map-empty {
    padding: 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    text-align: center;
    color: #64748b;
}

.client-map-marker-wrap {
    background: transparent;
    border: 0;
}

.client-map-marker {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 3px solid #ffffff;
}

.client-map-marker::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.client-map-marker-success {
    background: radial-gradient(circle at 35% 35%, #86efac 0%, #16a34a 58%, #15803d 100%);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.32);
}

.client-map-marker-warning {
    background: radial-gradient(circle at 35% 35%, #fde68a 0%, #f59e0b 58%, #d97706 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

.client-map-marker-danger {
    background: radial-gradient(circle at 35% 35%, #fca5a5 0%, #ef4444 58%, #dc2626 100%);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.3);
}

.client-map-marker-muted {
    background: radial-gradient(circle at 35% 35%, #cbd5e1 0%, #64748b 58%, #475569 100%);
    box-shadow: 0 12px 28px rgba(100, 116, 139, 0.28);
}

.client-map-popup {
    min-width: 220px;
}

.client-map-popup-title {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.client-map-popup-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.client-map-popup-chip-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.client-map-popup-chip-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.client-map-popup-chip-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.client-map-popup-chip-muted {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.client-map-popup-row {
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

.client-map-popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.client-map-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 700;
}

.client-map-popup-link-primary {
    background: linear-gradient(135deg, var(--dtm-primary), #3b82f6);
    border-color: transparent;
    color: #fff !important;
}

.auth-form .text-red-600,
.auth-form-panel .text-red-600 {
    color: var(--dtm-danger) !important;
}

.auth-form-panel .mb-4.font-medium.text-sm.text-green-600 {
    padding: 0.9rem 1rem;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 14px;
    color: #15803d !important;
}

@media (max-width: 991px) {
    .plan-map-header {
        flex-direction: column;
    }

    .plan-map-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .plan-map-canvas {
        height: 320px;
    }

    .client-map-layout {
        grid-template-columns: 1fr;
    }

    .client-map-canvas,
    .client-map-side-list {
        max-height: none;
        height: 400px;
    }

    .auth-shell {
        padding: 1rem;
    }

    .auth-login-grid {
        grid-template-columns: 1fr;
    }

    .auth-form-panel {
        padding: 1.5rem;
    }

    .auth-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-submit-button {
        width: 100%;
    }
}
