:root {
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 50px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --padding-header: 0 30px;
    --btn-padding: 8px 16px;
    --btn-height: 38px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    font-size: calc(var(--fs-base) + var(--fs-offset));
    line-height: 1.5;
}

label {
    text-wrap: nowrap;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 10px;
    height: var(--header-height);
    overflow: hidden;
    border-bottom: 1px solid;
}

.logo-full {
    max-width: 100%;
    max-height: 45px;
    display: block;
    object-fit: contain;
    margin-left: 10px;
}

.logo-fav {
    width: 32px;
    height: 32px;
    display: none;
    object-fit: contain;
}

.sidebar.collapsed .logo-full {
    display: none !important;
    opacity: 0 !important;
    transform: scale(0.8);
}

.sidebar.collapsed .logo-fav {
    display: block !important;
    opacity: 1 !important;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.menu-section-title {
    padding: 20px 24px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 400;
    white-space: nowrap;
    position: relative;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 70%;
}

.menu-icon {
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
}

.menu-label {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-arrow {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.3s;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.menu-item-group.open .submenu {
    max-height: 500px;
}

.menu-item-group.open .toggle-arrow {
    transform: rotate(90deg);
}

.submenu-item {
    display: block;
    padding: 10px 24px 10px 63px;
    text-decoration: none;
    transition: 0.2s;
}

.collapse-btn {
    right: -12px;
    top: calc(var(--header-height) / 2 - 12px);
    width: 24px;
    height: 24px;
    border: 1px solid;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed:hover,
.sidebar.collapsed.hover-expand {
    width: var(--sidebar-width) !important;
}

.sidebar.collapsed .menu-label,
.sidebar.collapsed .menu-section-title,
.sidebar.collapsed .toggle-arrow {
    opacity: 0 !important;
    transform: translateX(20px) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: none;
}

.sidebar.collapsed:hover .menu-label,
.sidebar.collapsed.hover-expand .menu-label,
.sidebar.collapsed:hover .menu-section-title,
.sidebar.collapsed.hover-expand .menu-section-title,
.sidebar.collapsed:hover .toggle-arrow,
.sidebar.collapsed.hover-expand .toggle-arrow {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
}

.sidebar.collapsed .menu-item,
.sidebar.collapsed .submenu-toggle {
    justify-content: center !important;
    padding: 12px 16px !important;
}

.sidebar.collapsed .menu-icon {
    margin-right: 0 !important;
}

.sidebar.collapsed .menu-item:hover,
.sidebar.collapsed .submenu-toggle:hover {
    border-radius: 8px;
    transform: scale(1.02);
}

.sidebar.collapsed:hover .logo-full,
.sidebar.collapsed.hover-expand .logo-full {
    opacity: 1 !important;
    transform: scale(1) !important;
    display: block !important;
}

.sidebar.collapsed:hover .logo-fav,
.sidebar.collapsed.hover-expand .logo-fav {
    opacity: 0 !important;
    display: none !important;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed~.main-content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

.app-header {
    height: var(--header-height);
    border-bottom: 1px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--padding-header);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-text {
    font-weight: 700;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-switcher {
    display: flex;
    padding: 2px;
    border: 1px solid;
}

.switcher-btn {
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.switcher-btn svg {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    height: var(--btn-height);
    padding: var(--btn-padding);
    font-family: var(--font-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    cursor: pointer;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
}

.mobile-menu-btn,
.mobile-close-btn {
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.branding-section,
.settings-section {
    padding: 10px;
    max-width: 1000px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.branding-card {
    border: 1px solid;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.upload-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.upload-box {
    border: 2px dashed;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    min-width: 200px;
}

.preview-area {
    margin-bottom: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.no-logo-text {
    border: 1px solid;
    padding: 8px 16px;
}

.favicon-preview-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.text-settings-card {
    border: 1px solid;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 5px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field label {
    font-weight: 600;
}

.input-field input {
    padding: 10px 14px;
    border: 1px solid;
    outline: none;
    transition: 0.2s;
}

.settings-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.settings-card {
    border: 1px solid;
    padding: 30px;
}

section.tasks-section.settings-card {
    padding: 15px;
}

.section-subtitle {
    margin-top: 5px;
}

.upload-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.upload-grid .upload-group {
    width: 100%;
}

.color-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 25px;
    padding-bottom: 20px;
}

.color-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-item label {
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.typo-controls .color-item {
    max-width: 300px;
}

.swatch-wrapper {
    padding: 6px;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.swatch-wrapper:hover {
    transform: translateY(-2px);
}

.color-swatch {
    height: 40px;
    width: 100%;
    border-radius: 6px;
    border-width: 1px;
    border-style: solid;
}

.divider-v {
    width: 1px;
    height: 70px;
    align-self: center;
}

.typo-preview-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.typo-controls .input-field input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid;
    cursor: pointer;
}

.live-preview-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-height: 250px;
}

.preview-heading {
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.color-note {
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top-width: 1px;
    border-top-style: solid;
}

.typo-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.preview-link {
    font-weight: 600;
    width: fit-content;
    text-decoration: none;
    transition: 0.2s;
}

.style-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.style-label {
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.shape-selector-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.shape-options {
    display: flex;
    padding: 5px;
    border: 1px solid;
    width: fit-content;
}

.shape-btn {
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.button-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.btn-preset-card {
    border: 1px solid;
    padding: 25px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-preview {
    padding: 10px;
    font-weight: 600;
    pointer-events: none;
}

.preset-name {
    font-weight: 600;
}

.outline-btn {
    border: 1px solid;
}

.table-custom-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: start;
}

.table-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.preview-table-container {
    width: 100%;
    overflow: hidden;
}

.table-preview-area {
    width: 100%;
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.preview-table th,
.preview-table td {
    padding: 15px 20px;
    text-align: left;
    border-width: 0 1px 1px 0;
    border-style: solid;
}

.preview-table th:last-child,
.preview-table td:last-child {
    border-right: 0;
}

.preview-table tr:last-child td {
    border-bottom: 0;
}

.table-badge {
    padding: 4px 10px;
    font-weight: 700;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.contact-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.section-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.social-input {
    display: flex;
    align-items: center;
    border: 1px solid;
    padding: 0 12px;
}

.social-input svg {
    width: 18px;
    margin-right: 10px;
}

.social-input input {
    border: none;
    padding: 12px 0;
    width: 100%;
    outline: none;
}

.nav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dynamic-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dynamic-nav-list input,
.menu-title-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid;
}

.nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    gap: 15px;
    align-items: center;
}

.delete-nav-row {
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.menu-title-input {
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    width: 200px;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.remove-img-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.remove-img-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-img-btn i {
    width: 14px;
    height: 14px;
}

.preview-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

textarea {
    padding: 12px;
    outline: none;
    width: 100%;
}

.add-nav-row {
    padding: 5px 5px;
    height: auto;
}

.add-nav-row svg {
    width: 14px;
    height: 14px;
}

.typo-control-item {
    margin-bottom: 20px;
}

.typo-control-item:last-child {
    margin-bottom: 0;
}

.control-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.font-size-select {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    outline: none;
    border: 1px solid;
    cursor: pointer;
}

.font-size-select.full-width {
    width: 100%;
}

.preview-header-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-tip {
    font-style: italic;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid;
    padding: 0 12px;
    max-width: 280px;
    height: 38px;
    margin-left: 15px;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
}

.search-icon {
    width: 16px !important;
    height: 16px !important;
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.icon-btn {
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border: 2px solid;
}

.header-divider-v {
    width: 1px;
    height: 24px;
}

.user-profile-btn {
    width: 38px;
    height: 38px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.page-content {
    padding: 24px;
}

.welcome-banner {
    padding: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.banner-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-subtitle {
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    min-height: 120px;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-icon-box svg {
    width: 16px;
    height: 16px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin: 2px 0;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.trend-text {
    font-size: 11px;
    color: #64748b;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 25px;
    align-items: start;
}

.leads-section {
    overflow: auto;
    padding: 0;
}

.leads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-switcher {
    display: flex;
    padding: 3px;
    border: 1px solid;
}

.switcher-btn-icon {
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    transition: 0.2s;
}

.table-outer-wrapper {
    display: none;
}

.table-outer-wrapper.active {
    display: block;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.custom-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.custom-data-table th,
.custom-data-table td {
    padding: 16px 15px;
    text-align: left;
    white-space: nowrap;
}

.leads-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
    padding: 0px 15px 15px;
}

.lead-data-card {
    border: 1px solid var(--card-border-color);
    padding: 18px;
    border-radius: 12px;
    background: var(--bg-main);
    transition: 0.3s;
}

.lead-data-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-details p {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.card-details span {
    font-weight: 600;
    color: var(--text-main);
}

.section-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg-main);
    border: 1px solid transparent;
    transition: 0.2s;
    user-select: none;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 2px;
    transition: 0.2s;
}

.add-task-dash-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: transparent;
    border: 1px dashed var(--primary-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--card-border-color);
    color: var(--text-main);
}

[data-theme="dark"] .btn-outline {
    background: var(--bg-surface);
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    padding: 10px 15px;
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    min-width: 160px;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    padding: 8px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.filter-item:hover .dropdown-menu {
    display: block;
}

.drop-opt {
    padding: 10px 15px;
    font-size: 130px;
    transition: 0.2s;
}

.drop-opt:hover {
    background: var(--bg-main);
    color: var(--primary-color);
}

.drop-opt.active {
    font-weight: 700;
    color: var(--primary-color);
}

.role-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
}

.role-badge.agent {
    background: #f3e8ff;
    color: #7e22ce;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    width: 450px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.date-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.date-box {
    padding: 12px;
    background: var(--bg-main);
    border-radius: 10px;
    text-align: center;
}

.date-box span {
    font-size: 10px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    opacity: 0.6;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.cal-date {
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
}

.cal-date:hover {
    background: var(--bg-main);
}

.selected-range {
    background: var(--text-main) !important;
    color: white !important;
}

.in-between {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

.action-cell {
    display: flex;
    gap: 10px;
}

.action-cell button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.action-cell button:hover {
    color: var(--primary-color);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--card-border-color);
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--card-border-color);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

[data-theme="dark"] .page-btn {
    background: var(--bg-surface);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --padding-header: 0 15px;
        --btn-padding: 6px 12px;
        --btn-height: 34px;
    }
}

@media (max-width: 768px) {

    .branding-card,
    .text-settings-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .typo-preview-grid {
        display: flex;
        flex-direction: column;
    }

    .typo-controls {
        width: 100% !important;
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .stat-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 1100px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leads-card-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 5px;
    }

    .custom-data-table {
        min-width: 650px;
    }

    .leads-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .lead-data-card {
        padding: 10px;
    }

    .page-content {
        padding: 10px;
    }

    section.tasks-section.settings-card {
        padding: 10px !important;
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .welcome-banner {
        padding: 30px 20px;
        text-align: center;
        width: 100%;
    }

    .banner-content {
        width: 100%;
    }

    .banner-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-trend {
        font-size: 10px;
    }

    .stat-icon-box {
        width: 32px;
        height: 32px;
    }

    .stat-card:last-child {
        grid-column: span 2;
    }

    .dashboard-bottom-grid {
        margin-top: 15px;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .stat-value {
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 12px;
    }
}

@media (max-width: 992px) {
    .settings-container {
        gap: 0px;
        padding: 0px 0px;
    }

    .branding-section,
    .settings-section {
        padding: 10px 18px;
    }

    .text-settings-card,
    .branding-card,
    .settings-card {
        padding: 18px;
        gap: 10px;
        margin-bottom: 5px;
    }

    .contact-info-grid,
    .social-links-grid,
    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    .contact-sub-grid {
        grid-template-columns: 1fr;
    }

    .leads-section {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .typography-switcher {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .leads-section {
        padding: 0 !important;
    }

    .leads-header {
        padding: 10px;
    }

    .sidebar {
        left: -100%;
        width: 280px !important;
    }

    .sidebar.mobile-active {
        left: 0;
    }

    .collapse-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--text-main);
    }

    .mobile-menu-btn i {
        width: 24px;
        height: 24px;
    }

    .mobile-close-btn {
        display: block;
        padding: 6px;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .btn-text,
    .subtitle-text {
        display: none;
    }

    .app-header {
        padding: 0 15px;
    }

    .upload-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .settings-container {
        padding: 10px 10px;
        gap: 0px;
    }

    .divider-v {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }

    .live-preview-card {
        padding: 25px;
    }

    .button-presets-grid {
        grid-template-columns: 1fr;
    }

    .table-custom-grid {
        grid-template-columns: 1fr;
    }

    .branding-section,
    .settings-section {
        padding: 0px;
    }

    .text-settings-card,
    .branding-card,
    .settings-card {
        padding: 15px;
    }

    .section-header {
        margin-bottom: 10px;
    }

    .text-settings-card,
    .branding-card {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .text-settings-card .input-field,
    .branding-card .upload-group {
        flex: 1;
    }

    .upload-box {
        padding: 20px;
    }

    .color-grid {
        gap: 5px;
        row-gap: 20px;
    }

    .color-item {
        /* max-width: 25%; */
        min-width: 25%;
        gap: 5px;
    }

    .swatch-wrapper {
        padding: 2px;
    }

    .typo-preview-grid {
        flex-direction: column;
    }

    .typo-controls {
        flex-direction: row;
        width: 100%;
    }

    .typo-controls .color-item {
        max-width: 50%;
    }

    .table-controls {
        gap: 5px;
        row-gap: 20px;
    }

    .table-controls .color-item {
        max-width: 25%;
    }

    .nav-row {
        gap: 5px;
    }

    .header-search {
        display: none;
    }

    .header-user-actions {
        gap: 10px;
    }
}

@media (max-width: 550px) {
    .upload-grid {
        flex-direction: column;
    }
}


/* ==========================================================================
   MOBILE BOTTOM NAVIGATION LAYOUT
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
    /* Desktop par hide */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 2000;
    display: none;
    /* Default display none, media query handle karega */
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    /* iOS/Android modern screens support */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 1;
    height: 100%;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    width: 22px !important;
    height: 22px !important;
    transition: transform 0.2s ease;
}

.nav-item span {
    font-size: calc(var(--fs-sm) - 1px);
    /* Thoda chota text label */
    font-weight: 600;
}

/* Click/Active Animation */
.nav-item:active i {
    transform: scale(0.85);
}

/* Desktop Visibility Logic Override */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Main content ko niche se padding dena taaki navigation se content na chupe */
    body {
        padding-bottom: 75px;
    }
}













/* all user page  */
/* all user page  */
/* all user page  */
/* all user page  */
/* all user page  */
/* User Toolbar Layout */
/* ==========================================================================
   LAYOUT & RESPONSIVE ONLY - style.css (NO colors/radius/fonts)
   ========================================================================== */

/* Page Layout */
.filter-row-card {
    padding: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.table-wrapper-card {
    padding: 0;
    overflow: hidden;
}

.user-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.toolbar-right {
    display: flex;
    gap: 12px;
}

/* Filter Container */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Custom Select UI */
.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    width: max-content;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: max-content;
    z-index: 100;
    display: none;
}

.custom-select-wrapper.open .custom-select-menu {
    display: block;
}

.select-opt {
    padding: 10px 15px;
    transition: 0.2s;
}

.select-divider {
    height: 1px;
    margin: 5px 0;
}

.search-wrapper {
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex: 1;
    max-width: 300px;
}

.search-wrapper input {
    border: none;
    padding: 10px 0;
    width: 100%;
    outline: none;
}

.search-icon {
    width: 16px;
    margin-right: 10px;
}

/* Table Elements */
.action-cell {
    display: flex;
    gap: 15px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-data-table {
    width: 100%;
    min-width: 800px;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding: 20px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: min(90vw, 420px);
    padding: 25px;
}

.calendar-container {
    margin-top: 20px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 15px;
    min-height: 240px;
}

.day-name {
    margin-bottom: 10px;
    text-align: center;
}

.cal-day {
    padding: 10px 0;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.range-box {
    padding: 15px;
    text-align: center;
}

.range-box span {
    display: block;
    margin-bottom: 5px;
}

/* View Containers */
.view-container {
    display: none;
    width: 100%;
}

.view-container.active {
    display: block;
}

/* Cards Grid */
.user-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.user-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.user-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.card-info-item {
    display: flex;
    flex-direction: column;
}

.card-info-item label {
    display: block;
    margin-bottom: 4px;
}

.card-location {
    grid-column: span 2;
}

.user-card-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.card-login-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px;
}

.card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    max-height: 30px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.pagination-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn,
.pag-btn,
.page-num {
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-radius: var(--btn-radius);
    white-space: nowrap;
}

.page-btn.disabled,
.pag-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-info {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

/* Font utilities */
.font-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 1100px) {
    .user-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .user-toolbar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .filters-container {
        flex-direction: row;
        gap: 5px;
        width: 100%;
    }

    .search-wrapper {
        max-width: none;
        order: -1;
        width: 100%;
        min-width: 150px;

    }

    .filter-row-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .custom-select-trigger {
        padding: 12px 16px;
        flex: 1;
    }

    .user-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .table-footer,
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px !important;
    }

    .custom-data-table {
        min-width: 700px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .filters-container {
        gap: 8px;
    }

    .custom-select-trigger {
        padding: 10px 12px;
        font-size: 14px;
    }

    .user-card {
        padding: 16px;
        gap: 12px;
    }

    .user-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-btn,
    .pag-btn,
    .page-num {
        padding: 0 12px;
        font-size: 14px;
    }
}