/* Modern Sidebar Layout */
:root {
    --sidebar-width: 280px;
    --sidebar-bg: #24265c;
    --sidebar-color: rgba(255, 255, 255, 0.85);
    --sidebar-accent: #ffffff;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --content-bg: #f5f7fa;
    --primary-blue: #0055ff;
    --transition: all 0.3s ease;
}

body.primary-bg-color {
    background-color: var(--content-bg) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Widen the container for large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .client-home-cards .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.app-main-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
}

.app-sidebar .sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.app-sidebar .sidebar-logo img {
    max-height: 40px;
}

.app-sidebar .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
}

.app-sidebar .nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 20px 0 10px 10px;
    letter-spacing: 1px;
}

.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--sidebar-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.app-sidebar .nav-link i {
    width: 24px;
    font-size: 18px;
    margin-right: 12px;
    color: #64748b;
    transition: var(--transition);
}

.app-sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-accent);
    text-decoration: none;
}

.app-sidebar .nav-link:hover i {
    color: var(--sidebar-accent);
}

.app-sidebar .nav-link.active {
    background: #eff6ff;
    color: var(--sidebar-accent);
}

.app-sidebar .nav-link.active i {
    color: var(--sidebar-accent);
}

.app-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-content.full-width-content {
    margin-left: 0 !important;
}


header#header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Mobile Sidebar Toggle - Will need JS to work fully */
@media (max-width: 1199.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
    }

    .app-content {
        margin-left: 0;
    }
}

/* ------------------------------ */
/* Modern DataTables Controls (Premium) */
/* ------------------------------ */

.dataTables_wrapper {
    padding: 24px;
    background: #fff;
}

/* Length Menu (Show entries) */
.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 20px;
}

.dataTables_wrapper .dataTables_length label {
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    outline: none;
    margin: 0 10px;
    background-color: #f8fafc;
    color: #334155;
    /* Custom chevron down */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 10px;
    -webkit-appearance: none;
    appearance: none;
    min-width: 80px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_length select:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fff;
}

/* Filter (Search) */
.dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 20px;
}

.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    margin-left: 10px;
    background-color: #f8fafc;
    color: #334155;
    transition: all 0.2s ease;
    width: 240px;
    /* Bit wider search */
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fff;
}

/* Info Text */
.dataTables_wrapper .dataTables_info {
    float: left;
    padding: 20px 0 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

/* Pagination Container */
.dataTables_wrapper .dataTables_paginate {
    float: right;
    padding-top: 15px;
}

/* Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 32px;
    /* Fixed width for better look */
    height: 32px;
    line-height: 30px !important;
    /* Vertically center text - 2px for border */
    padding: 0 !important;
    /* Reset padding for fixed size */
    margin-left: 6px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #1e293b !important;
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    border: 1px solid #2563eb;
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: not-allowed;
    color: #cbd5e1 !important;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    box-shadow: none;
    transform: none;
}

/* Previous/Next Buttons - Make them wider */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    width: auto;
    padding: 0 16px !important;
}

/* Standard Bootstrap Pagination Support (Override if used) */
.pagination {
    margin: 0;
    justify-content: flex-end;
}

.pagination .page-item .page-link {
    color: #475569;
    border: 1px solid #e2e8f0;
    margin-left: 6px;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    background-color: #f8fafc;
    border-color: #f1f5f9;
}

/* ------------------------------ */
/* Modern Table Styling */
/* ------------------------------ */

/* Table Container - Card like appearance */
.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 0;
}

/* General Table Styling */
table.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
table.table thead th,
table.table-list thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* Table Body Rows */
table.table tbody tr,
table.table-list tbody tr {
    transition: all 0.2s ease;
    background-color: #fff;
}

table.table tbody tr:hover,
table.table-list tbody tr:hover {
    background-color: #f1f5f9;
}

/* Table Cells */
table.table tbody td,
table.table-list tbody td {
    padding: 16px 24px;
    vertical-align: middle;
    color: #334155;
    font-size: 14px;
    border-top: 1px solid #f1f5f9;
    border-bottom: none;
}

/* Remove top border from first row */
table.table tbody tr:first-child td,
table.table-list tbody tr:first-child td {
    border-top: none;
}

/* Rounded Corners for Table */
table.table thead th:first-child,
table.table-list thead th:first-child {
    border-top-left-radius: 12px;
}

table.table thead th:last-child,
table.table-list thead th:last-child {
    border-top-right-radius: 12px;
}

table.table tbody tr:last-child td:first-child,
table.table-list tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

table.table tbody tr:last-child td:last-child,
table.table-list tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Status Badges in Tables */
table.table .label {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

table.table .label.active,
table.table .label.status-active {
    background: #dcfce7;
    color: #166534;
}

table.table .label.pending,
table.table .label.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

table.table .label.terminated,
table.table .label.status-terminated,
table.table .label.cancelled,
table.table .label.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

table.table .label.suspended,
table.table .label.status-suspended {
    background: #fff1f2;
    color: #be123c;
}

/* DataTables Specific Cleanups */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 15px 24px;
    color: #64748b;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    outline: none;
}

/* Fix for DataTables bottom separation */
.table-container .dataTables_wrapper {
    padding-bottom: 0;
}

/* WHMCS Navbar compatibility in sidebar */
.app-sidebar .sidebar-nav ul#nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-sidebar .sidebar-nav ul#nav li {
    width: 100%;
}

.app-sidebar .sidebar-nav ul#nav li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--sidebar-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: var(--transition);
    text-decoration: none;
}

.app-sidebar .sidebar-nav ul#nav li a i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.8;
    display: inline-block;
    vertical-align: middle;
}

.app-sidebar .sidebar-nav ul#nav li a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-accent);
}

.app-sidebar .sidebar-nav ul#nav li a:hover i {
    color: var(--sidebar-accent);
}

/* Dropdown specific - CSS Triangle Arrow */
.app-sidebar .sidebar-nav ul#nav li.dropdown>a::after {
    content: "";
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.app-sidebar .sidebar-nav ul#nav li.dropdown.show>a::after {
    border-top: none;
    border-bottom: 5px solid rgba(255, 255, 255, 0.7);
}

.app-sidebar .sidebar-nav ul#nav li.dropdown>a:hover::after {
    border-top-color: var(--sidebar-accent);
}

.app-sidebar .sidebar-nav ul#nav li.dropdown.show>a:hover::after {
    border-bottom-color: var(--sidebar-accent);
}

/* Submenu Styling - Match Main Menu */
.app-sidebar .sidebar-nav ul#nav li .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px 0;
    margin-left: 15px;
    position: static !important;
    transform: none !important;
    width: calc(100% - 15px);
}

.app-sidebar .sidebar-nav ul#nav li .dropdown-menu .dropdown-item {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    display: block;
}

.app-sidebar .sidebar-nav ul#nav li .dropdown-menu .dropdown-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px !important;
    color: var(--sidebar-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: var(--transition);
    text-decoration: none;
}

.app-sidebar .sidebar-nav ul#nav li .dropdown-menu .dropdown-item a:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-accent);
}

.app-sidebar .sidebar-nav ul#nav li .dropdown-menu .dropdown-item a:hover i {
    color: var(--sidebar-accent);
}

.app-sidebar .sidebar-nav ul#nav li .dropdown-menu .dropdown-item a i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.8;
    display: inline-block;
    vertical-align: middle;
}


.app-sidebar .sidebar-nav ul#nav li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    position: relative;
}

.app-sidebar .sidebar-nav ul#nav li a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--sidebar-accent);
    border-radius: 0 4px 4px 0;
}

.app-sidebar .sidebar-nav ul#nav li a.active i {
    color: #fff;
}

.app-sidebar .sidebar-nav ul#nav li.collapsable-dropdown {
    display: none !important;
}

/* ------------------------------ */
/* Client Area Dashboard Styling */
/* ------------------------------ */

/* Top Stats Tiles - Horizontal Layout (Icon Left, Text Right) */
.tiles {
    margin-bottom: 30px;
}

.tiles .col-6 {
    padding: 0 12px;
}

.tiles .tile {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    /* Flexbox for layout */
    align-items: center;
    /* Center vertically */
    text-decoration: none;
    min-height: 120px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.tiles .tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Icon Styling - Left side */
.tiles .tile i {
    font-size: 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Colors for stats icons matching the image style */
.tiles .tile i.fa-cube {
    color: #2563eb;
    background: #eff6ff;
}

.tiles .tile i.fa-globe {
    color: #2563eb;
    background: #eff6ff;
}

.tiles .tile i.fa-comments {
    color: #2563eb;
    background: #eff6ff;
}

.tiles .tile i.fa-credit-card {
    color: #2563eb;
    background: #eff6ff;
}

.tiles .tile i.fa-shopping-cart {
    color: #2563eb;
    background: #eff6ff;
}

.tiles .tile i.fa-file-alt {
    color: #2563eb;
    background: #eff6ff;
}


/* Text Content - Right side */
.tiles .tile .tile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.tiles .tile .title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.tiles .tile .stat {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
    text-align: left;
}

.tiles .tile .view-btn {
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
    transition: margin-left 0.2s;
    text-align: left;
}

.tiles .tile:hover .view-btn {
    margin-left: 3px;
    text-decoration: underline;
}

/* Remove old highlighting if present */
.tiles .tile .highlight {
    display: none;
}

/* Remove the pseudo element since we added real text */
.tiles .tile:after {
    display: none;
}

/* Dashboard Banner */
.alert-info,
.promo-banner,
.marketconnect-banner {
    background-color: #0055ff;
    background-image: linear-gradient(135deg, #0055ff 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.alert-info h4,
.marketconnect-banner h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.alert-info p,
.marketconnect-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.alert-info .btn,
.marketconnect-banner .btn {
    background: #fbbf24;
    color: #0f172a;
    border: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    text-transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.alert-info .btn:hover,
.marketconnect-banner .btn:hover {
    background: #f59e0b;
}

/* Dashboard Cards (Active Products, Domains) */
.client-home-cards .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 30px;
    overflow: hidden;
}

.client-home-cards .card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 24px 30px;
    display: flex;
    align-items: center;
}

.client-home-cards .card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1.5;
}

.client-home-cards .card-header h3 i {
    margin-right: 12px;
    color: #3b82f6;
    font-size: 18px;
}

.client-home-cards .card-body {
    padding: 0;
}

/* List Items */
.client-home-cards .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 24px 30px;
    margin-bottom: 0;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
}

.client-home-cards .list-group-item:last-child {
    border-bottom: none;
}

.client-home-cards .list-group-item:hover {
    background: #f8fafc;
}

/* Status Badges */
.client-home-cards .badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-right: 20px;
}

/* List text */
.client-home-cards .list-group-item {
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

/* Buttons in list */
.client-home-cards .btn-default,
.client-home-cards .list-group-item .btn:not(.btn-primary) {
    background: #f1f5f9;
    /* Soft gray background */
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: none;
    margin-left: 10px;
    transition: all 0.2s;
}

.client-home-cards .btn-default:hover,
.client-home-cards .list-group-item .btn:not(.btn-primary):hover {
    background: #e2e8f0;
    /* Darker gray on hover */
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Primary buttons in list */
.client-home-cards .list-group-item .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 10px;
}

/* Manage Link */
.client-home-cards .list-group-item a:not(.btn) {
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-left: auto;
}

/* Card Footer */
.client-home-cards .card-footer {
    background: #fff;
    border-top: 1px solid #f1f5f9;
    padding: 20px;
    text-align: center;
}

.client-home-cards .card-footer a {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.client-home-cards .card-footer a:hover {
    color: #334155;
}

/* Register A New Domain Section special styling */
.client-home-cards input[name="domain"] {
    height: 52px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 15px;
    color: #1e293b;
    width: 70%;
    display: inline-block;
    vertical-align: middle;
}

.client-home-cards button[type="submit"] {
    height: 52px;
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
    padding: 0 30px;
    border-radius: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.client-home-cards button[type="submit"]:hover {
    background: #1d4ed8;
}

/* ------------------------------ */
/* Modern Sidebar Widgets styling */
/* ------------------------------ */
/* Target WHMCS sidebar panels */
.sidebar .panel,
.sidebar .card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar .panel-heading,
.sidebar .card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 20px;
    color: #334155;
    border-radius: 12px 12px 0 0;
}

.sidebar .panel-title,
.sidebar .card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
}

.sidebar .panel-title i,
.sidebar .card-title i {
    margin-right: 10px;
    color: #3b82f6;
    /* Blue icon */
    font-size: 14px;
}

.sidebar .panel-body,
.sidebar .card-body {
    padding: 15px 20px;
    /* Restored padding for general content */
}

.sidebar .panel-body .list-group,
.sidebar .card-body .list-group {
    margin: -15px -20px;
    /* Negate padding for list groups so they go edge-to-edge */
}

/* Sidebar List Items */
.sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 20px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    background: transparent;
}

.sidebar .list-group-item:last-child {
    border-bottom: none;
}

.sidebar .list-group-item:hover {
    background: #f8fafc;
    color: #2563eb;
    padding-left: 25px;
    /* Slight movement effect */
}

.sidebar .list-group-item i {
    margin-right: 10px;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

.sidebar .list-group-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    border-color: #eff6ff;
}

.sidebar .list-group-item.active:hover {
    background: #dbeafe;
}

.sidebar .badge {
    float: right;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 11px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .tiles .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .client-home-cards input[name="domain"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .client-home-cards button[type="submit"] {
        width: 100%;
        margin-left: 0;
    }
}

/* ------------------------------ */
/* Header Visibility Improvements */
/* ------------------------------ */

/* Overall Header Icons & Text */
.navbar-light .navbar-nav .nav-link {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 14px;
    transition: all 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
}

/* Icons specific styling */
.navbar-light .navbar-nav .nav-link i {
    color: #64748b;
    font-size: 16px;
    vertical-align: middle;
}

.navbar-light .navbar-nav .nav-link:hover i {
    color: #2563eb;
}

/* User Name Specific */
.btn-active-client span {
    color: #334155;
    font-weight: 700;
}

/* Ensure badges are still visible */
.navbar-nav .badge {
    font-weight: 700;
}

/* ------------------------------ */
/* Dashboard Buttons Visibility */
/* ------------------------------ */

/* Tile Link (My Services, etc) */
.tiles .tile .view-btn {
    /* Reverted to original styles per user request */
    color: #2563eb !important;
    /* Original Blue */
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    margin-top: 5px;
    display: inline-block;
}

.tiles .tile:hover .view-btn {
    text-decoration: underline !important;
}

/* Card Footer Links (View All) */
.client-home-cards .card-footer a {
    /* Reverted to slate/dark gray */
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.client-home-cards .card-footer a:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

/* Action Buttons (Pay Now, Open Ticket) */
.client-home-cards .list-group-item .btn,
.client-home-cards .btn-action,
.client-home-cards .btn-default {
    background-color: #e2e8f0 !important;
    /* Light Gray Background */
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    /* Dark Slate instead of Black */
    font-weight: 700 !important;
    margin-right: 10px !important;
    /* Spacing between buttons */
}

.client-home-cards .list-group-item .btn:hover,
.client-home-cards .btn-action:hover,
.client-home-cards .btn-default:hover {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Keep Primary Buttons White Text */
.client-home-cards .list-group-item .btn-primary,
.client-home-cards .list-group-item .btn-success,
.client-home-cards .list-group-item .btn-danger,
.client-home-cards .list-group-item .btn-warning {
    color: #fff !important;
}

/* ========================================
   MODERN DESIGN SYSTEM - COMPREHENSIVE
   ======================================== */

/* Enhanced Design Tokens */
:root {
    /* Extended Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   MODERN FORM ELEMENTS
   ======================================== */

/* Text Inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background-color: #fff;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--shadow-sm);
    background-color: #fff;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Select Dropdowns */
select.form-control,
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right: 40px;
    -webkit-appearance: none;
    appearance: none;
}

/* Textarea */
textarea.form-control,
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Input Groups */
.input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-group .form-control {
    box-shadow: none;
}

.input-group-prepend,
.input-group-append {
    background-color: #f8fafc;
}

.input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    padding: 10px 14px;
}

/* ========================================
   MODERN BUTTONS
   ======================================== */

/* Primary Button */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Secondary Button */
.btn-default,
.btn-secondary {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #475569;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-default:hover,
.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
    transition: all var(--transition-base);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
    transition: all var(--transition-base);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
    transition: all var(--transition-base);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(245, 158, 11, 0.3);
    color: #fff;
}

/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(6, 182, 212, 0.25);
    transition: all var(--transition-base);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(6, 182, 212, 0.3);
    color: #fff;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* Link Button */
.btn-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-link:hover {
    background-color: #eff6ff;
    color: #2563eb;
    text-decoration: none;
}

/* ========================================
   MODERN CARDS
   ======================================== */

.card,
.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover,
.panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header,
.panel-heading {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.card-body,
.panel-body {
    padding: 24px;
}

.card-footer,
.panel-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
}

/* ========================================
   MODERN ALERTS
   ======================================== */

.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger,
.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge,
.label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

.badge-primary,
.label-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success,
.label-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning,
.label-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger,
.label-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info,
.label-info {
    background-color: #e0f2fe;
    color: #075985;
}

/* ========================================
   MODERN MODALS
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 24px;
}

.modal-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
}

/* Modal Backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.5);
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    background-color: transparent;
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 0;
}

.breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "â€º";
    color: #cbd5e1;
    padding: 0 8px;
    font-size: 16px;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    gap: 4px;
}

.page-item .page-link {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #475569;
    font-weight: 600;
    padding: 8px 14px;
    transition: all var(--transition-base);
    margin: 0 2px;
}

.page-item .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* ========================================
   LIST GROUPS
   ======================================== */

.list-group-item {
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    transition: all var(--transition-base);
    background-color: #fff;
}

.list-group-item:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.list-group-item:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* ========================================
   TABS & NAV TABS
   ======================================== */

.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 600;
    padding: 12px 20px;
    transition: all var(--transition-base);
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #cbd5e1;
    color: #475569;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #3b82f6;
    color: #3b82f6;
    background-color: transparent;
}

/* ========================================
   CHECKBOXES & RADIOS
   ======================================== */

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Custom Checkbox Label */
.custom-control-label {
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    padding-left: 8px;
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.progress {
    height: 10px;
    border-radius: var(--radius-full);
    background-color: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ========================================
   TOOLTIPS
   ======================================== */

.tooltip {
    font-size: 13px;
    font-weight: 500;
}

.tooltip-inner {
    background-color: #1e293b;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   MICRO-INTERACTIONS & ANIMATIONS
   ======================================== */

/* Smooth Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

/* Pulse Animation for Notifications */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spinner/Loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ========================================
   HIDE ACCOUNT MENU FROM SIDEBAR
   ======================================== */

/* Hide Account from sidebar navigation */
.app-sidebar .sidebar-nav ul#nav li[menuitemname="Account"] {
    display: none !important;
}

/* ========================================
   ENHANCED HEADER ACCOUNT DROPDOWN
   ======================================== */

/* Account Button in Header */
.navbar .active-client {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar .active-client:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

.navbar .btn-active-client {
    background: transparent !important;
    border: none !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
}

.navbar .btn-active-client:hover {
    background: transparent !important;
    color: #3b82f6 !important;
}

/* ========================================
   ENHANCED HEADER ACCOUNT DROPDOWN
   ======================================== */

/* Account Button in Header */
.navbar .active-client {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar .active-client:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

.navbar .btn-active-client {
    background: transparent !important;
    border: none !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
}

.navbar .btn-active-client:hover {
    background: transparent !important;
    color: #3b82f6 !important;
}

/* Account Dropdown Buttons */
.navbar .active-client .btn-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar .active-client .btn-group>a {
    background: transparent !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
    transition: all var(--transition-base);
    color: #64748b !important;
}

.navbar .active-client .btn-group>a:first-child {
    border-left: none !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

.navbar .active-client .btn-group>a:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

.navbar .active-client .btn-group>a:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.navbar .active-client .btn-group>a i {
    font-size: 14px;
}

/* Return to Admin Button Styling */
.navbar .btn-return-to-admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    border: none !important;
}

.navbar .btn-return-to-admin:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: scale(1.05);
}

.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    z-index: 1050 !important;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 10px;
    min-width: 240px;
    margin-top: 10px !important;
    background-color: #fff !important;
}

.navbar .dropdown-menu.show {
    display: block !important;
}

.navbar .dropdown-item {
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: #475569;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
}

.navbar .dropdown-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #64748b;
}

.navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
}

.navbar .dropdown-item:hover i {
    color: #3b82f6;
}

.navbar .dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #f1f5f9;
}

/* ========================================
   MODERN DASHBOARD TILES (STATUS CARDS)
   ======================================== */

.tiles {
    margin-bottom: 30px;
}

.tiles .tile {
    display: flex !important;
    align-items: center !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 24px !important;
    margin: 8px;
    transition: all var(--transition-base);
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
    height: calc(100% - 16px);
}

.tiles .tile:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.tiles .tile i {
    font-size: 24px !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-md);
    margin: 0 20px 0 0 !important;
    transition: all var(--transition-base);
}

/* Specific Icon Backgrounds & Colors */
.tiles .col-xl-3:nth-child(1) .tile i {
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
}

.tiles .col-xl-3:nth-child(2) .tile i {
    background-color: #f0fdf4 !important;
    color: #10b981 !important;
}

.tiles .col-xl-3:nth-child(3) .tile i {
    background-color: #fefce8 !important;
    color: #eab308 !important;
}

.tiles .col-xl-3:nth-child(4) .tile i {
    background-color: #fff1f2 !important;
    color: #f43f5e !important;
}

.tiles .tile:hover i {
    transform: scale(1.1);
}

.tiles .tile-content {
    flex: 1;
    text-align: left !important;
}

.tiles .tile-content .title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px !important;
}

.tiles .tile-content .stat {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1 !important;
}

.tiles .tile-content .view-btn {
    display: none !important;
}


/* Adjust menu link if icons already exist from WHMCS */
.app-sidebar .sidebar-nav ul#nav li a i:first-child {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Modern Header Buttons */
.btn-login {
    color: #3b82f6 !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-login:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1) !important;
}

.btn-register {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 9.5px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-register:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3) !important;
    color: #fff !important;
}


.btn-register:active {
    transform: translateY(0) !important;
}

/* Auth Split Layout */
.auth-split-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.auth-form-section {
    flex: 1;
    min-width: 450px;
    padding: 3rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Start from top to prevent cutting off content */
    background: #fff;
    height: 100vh;
    overflow-y: auto;
}

/* Center form content when space allows */
.auth-form-section .login-form,
.auth-form-section #registration,
.auth-form-section #frmCheckout {
    margin: auto 0;
}

.auth-promo-section {
    flex: 1.2;
    background: linear-gradient(135deg, #09408e 0%, #052454 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.auth-promo-content {
    max-width: 500px;
    text-align: center;
    z-index: 2;
}

.auth-promo-icons {
    font-size: 5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.9;
}

.auth-promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.auth-promo-text {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 3rem;
}

.auth-promo-coupon {
    padding: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.auth-promo-coupon small {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.auth-promo-coupon .code {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.auth-logo {
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.auth-logo img {
    height: 50px;
    width: auto;
}

/* Hide these on auth pages since we have a dedicated section */
.auth-split-wrapper~.app-footer,
.auth-split-wrapper~#fullpage-overlay {
    display: none;
}

/* Responsive auth split */
@media (max-width: 991.98px) {
    .auth-split-wrapper {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .auth-form-section {
        max-width: 100%;
        padding: 3rem 2rem;
        order: 2;
        height: auto;
        overflow: visible;
        justify-content: flex-start;
    }

    .auth-form-section .login-form,
    .auth-form-section #registration,
    .auth-form-section #frmCheckout {
        margin: 0;
    }

    .auth-promo-section {
        padding: 3rem 2rem;
        order: 1;
        min-height: 300px;
        height: auto;
    }

    .auth-promo-title {
        font-size: 1.8rem;
    }

    .auth-promo-icons {
        font-size: 3.5rem;
    }
}

/* Login Form Refinements */
.login-form {
    max-width: 480px;
    width: 100%;
}

.login-form .card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: transparent !important;
}

.login-form .card-body {
    padding: 0 !important;
}

.login-form .card-footer {
    background: transparent !important;
    border: none !important;
    padding: 2rem 0 0 0 !important;
}

.login-form h6.h3 {
    font-size: 2rem;
    font-weight: 700;
}

.login-form .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Unified Auth Input Group Styling */
.auth-form-section .input-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
    overflow: hidden;
    transition: all 0.2s;
    margin-bottom: 1rem;
    display: flex !important;
    flex-wrap: nowrap !important;
}

.auth-form-section .input-group:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background: #fff;
}

.auth-form-section .input-group .form-control {
    border: none !important;
    background: transparent !important;
    height: 50px;
    padding: 10px 15px;
    box-shadow: none !important;
    flex: 1;
}

.auth-form-section .input-group-prepend {
    display: flex;
}

.auth-form-section .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #64748b;
    padding-left: 1.25rem;
    display: flex;
    align-items: center;
}

.auth-form-section .btn-reveal-pw {
    background: transparent !important;
    border: none !important;
    color: #64748b;
    padding: 0 1.25rem;
}

.auth-form-section .btn-reveal-pw:hover {
    color: #3b82f6;
}

/* Registration Form Refinements */
#registration,
#frmCheckout {
    max-width: 700px;
    width: 100%;
}

#registration .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-bottom: 1.5rem !important;
}

#registration .card-body {
    padding: 0 !important;
}

#registration .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#frmCheckout .btn-primary {
    padding: 0.75rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Dashboard Active Products Alignment */
.div-service-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 0 !important;
    gap: 15px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
}

.div-service-status {
    flex: 0 0 auto !important;
}

.div-service-name {
    flex: 1 1 auto !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.div-service-buttons {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
}

.div-service-buttons .btn {
    white-space: nowrap !important;
}

/* Fix for mobile responsiveness */
@media (max-width: 767.98px) {
    .div-service-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .div-service-buttons {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}