/* ===========================================
   NEW THEME - OPTIMIZED CSS (Consolidated)
   Removed all duplicate code blocks
   =========================================== */

/* ===========================================
   1. CSS VARIABLES (Single Definition)
   =========================================== */
:root {
    --primary-color: #5a67d8;
    --primary-light: #7c8ae8;
    --secondary-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===========================================
   2. ANIMATIONS (Single Definitions)
   =========================================== */
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes activePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fillWidth {
    from {
        width: 0%;
    }

    to {
        width: var(--target-width);
    }
}

/* ===========================================
   3. HEADER / NAVBAR
   =========================================== */
.layout-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.layout-menu-toggle .nav-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
    transition: all 0.2s;
}

.layout-menu-toggle .nav-link:hover {
    background: #f8f9fa;
    color: #4a5568;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 400;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 400px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #4a5568;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
}

/* Notification Bell */
.nav-notification .nav-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4a5568;
    transition: all 0.2s;
}

.nav-notification .nav-link:hover {
    background: #f8f9fa;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #f56565;
    border-radius: 50%;
    border: 2px solid white;
}

/* User Dropdown */
.dropdown-user .nav-link {
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-user .nav-link:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    text-align: left;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.2;
}

.dropdown-arrow {
    color: #a0aec0;
    font-size: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    min-width: 260px;
    margin-top: 10px;
    animation: dropdownSlide 0.2s ease;
}

.dropdown-profile {
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.profile-email {
    font-size: 0.8rem;
    color: #718096;
}

.dropdown-items {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2d3748;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.logout-item {
    color: #f56565;
}

.logout-item:hover {
    background: #fff5f5;
    color: #c53030;
}

.logout-item i {
    color: #f56565;
}

.dropdown-item.active {
    background: #667eea;
    color: white;
}

.dropdown-item.active i {
    color: white;
}

/* ===========================================
   4. SIDEBAR
   =========================================== */
.layout-menu {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #eef1f5;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.logo-container {
    flex: 1;
}

.logo-img {
    max-width: 140px;
    height: auto;
}

.toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 15px 0;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.menu-item {
    margin: 2px 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.menu-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.menu-item.active .menu-link {
    color: white;
}

.menu-item.active .menu-icon {
    color: white;
}

.menu-item.active .menu-arrow {
    color: white;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    border-radius: 8px;
    cursor: pointer;
}

.menu-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

.menu-link:hover .menu-icon {
    color: #667eea;
}

.menu-icon {
    width: 30px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #6c757d;
    font-size: 18px;
    transition: color 0.3s;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-arrow {
    color: #adb5bd;
    font-size: 14px;
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
    margin-left: 5px;
}

.menu-item.open .menu-arrow {
    transform: rotate(180deg);
    color: #667eea;
}

.menu-badge {
    margin-left: 8px;
    flex-shrink: 0;
}

.menu-divider {
    padding: 15px 20px 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    font-weight: 600;
    margin-top: 15px;
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 5px 15px 5px 30px;
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.submenu.show {
    display: block;
    max-height: 500px;
    animation: slideDown 0.3s ease;
}

.submenu-item {
    margin: 1px 0;
}

.submenu-item.active {
    background: rgba(102, 126, 234, 0.1);
}

.submenu-item.active .submenu-link {
    color: #667eea;
}

.submenu-item.active .submenu-icon {
    color: #667eea;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s;
    position: relative;
}

.submenu-link:hover {
    background: #e9ecef;
    color: #495057;
}

.submenu-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #adb5bd;
    font-size: 15px;
    flex-shrink: 0;
}

.logout-item .menu-link {
    color: #f56565;
}

.logout-item .menu-icon {
    color: #f56565;
}

.logout-item:hover .menu-link {
    background: #fff5f5;
    color: #c53030;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eef1f5;
    background: #f8f9fa;
    margin-top: auto;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-version {
    text-align: center;
    font-size: 11px;
    color: #adb5bd;
    padding-top: 10px;
    border-top: 1px solid #eef1f5;
}

/* Sidebar Scrollbar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Active State Animation */
.menu-item.active .menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: white;
    border-radius: 0 4px 4px 0;
    animation: activePulse 2s infinite;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 70%;
    background: #667eea;
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s;
}

.menu-link:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.master-settings.open {
    background: rgba(102, 126, 234, 0.05);
}

.master-settings.open .menu-link {
    color: #667eea;
}

.master-settings.open .menu-icon {
    color: #667eea;
}

/* ===========================================
   5. STATS CARDS (Consolidated)
   =========================================== */
.stats-section {
    position: relative;
}

.stats-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), transparent);
    opacity: 0.8;
}

/* Stats Card Color Variants */
.stats-card.total-users {
    --card-color: #5a67d8;
    border-top: 4px solid #5a67d8;
}

.stats-card.total-businesses {
    --card-color: #4299e1;
    border-top: 4px solid #4299e1;
}

.stats-card.total-revenue {
    --card-color: #48bb78;
    border-top: 4px solid #48bb78;
}

.stats-card.total-orders {
    --card-color: #ed8936;
    border-top: 4px solid #ed8936;
}

.stats-card.active-users {
    --card-color: #48bb78;
    border-top: 4px solid #48bb78;
}

.stats-card.inactive-users {
    --card-color: #f56565;
    border-top: 4px solid #f56565;
}

.stats-card.growth-rate {
    --card-color: #4299e1;
    border-top: 4px solid #4299e1;
}

.stats-card.total-pages {
    --card-color: #5a67d8;
    border-top: 4px solid #5a67d8;
}

.stats-card.published-pages {
    --card-color: #48bb78;
    border-top: 4px solid #48bb78;
}

.stats-card.draft-pages {
    --card-color: #ed8936;
    border-top: 4px solid #ed8936;
}

.stats-card.total-visits {
    --card-color: #4299e1;
    border-top: 4px solid #4299e1;
}

.stats-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stats-icon .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--card-color) 0%, color-mix(in srgb, var(--card-color) 50%, white) 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(var(--card-color-rgb), 0.2);
}

/* Icon RGB Values for Shadows */
.stats-card.total-users .stats-icon .icon-wrapper {
    --card-color-rgb: 90, 103, 216;
}

.stats-card.total-businesses .stats-icon .icon-wrapper {
    --card-color-rgb: 66, 153, 225;
}

.stats-card.total-revenue .stats-icon .icon-wrapper {
    --card-color-rgb: 72, 187, 120;
}

.stats-card.total-orders .stats-icon .icon-wrapper {
    --card-color-rgb: 237, 137, 54;
}

.stats-card.active-users .stats-icon .icon-wrapper {
    --card-color-rgb: 72, 187, 120;
}

.stats-card.inactive-users .stats-icon .icon-wrapper {
    --card-color-rgb: 245, 101, 101;
}

.stats-card.growth-rate .stats-icon .icon-wrapper {
    --card-color-rgb: 66, 153, 225;
}

.stats-card.total-pages .stats-icon .icon-wrapper {
    --card-color-rgb: 90, 103, 216;
}

.stats-card.published-pages .stats-icon .icon-wrapper {
    --card-color-rgb: 72, 187, 120;
}

.stats-card.draft-pages .stats-icon .icon-wrapper {
    --card-color-rgb: 237, 137, 54;
}

.stats-card.total-visits .stats-icon .icon-wrapper {
    --card-color-rgb: 66, 153, 225;
}

.stats-data {
    flex: 1;
}

.stats-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: #2d3748;
    letter-spacing: -0.5px;
}

/* Stats Value Colors */
.stats-card.total-users .stats-value {
    color: #5a67d8;
}

.stats-card.total-businesses .stats-value {
    color: #4299e1;
}

.stats-card.total-revenue .stats-value {
    color: #48bb78;
}

.stats-card.total-orders .stats-value {
    color: #ed8936;
}

.stats-card.active-users .stats-value {
    color: #48bb78;
}

.stats-card.inactive-users .stats-value {
    color: #f56565;
}

.stats-card.growth-rate .stats-value {
    color: #4299e1;
}

.stats-card.total-pages .stats-value {
    color: #5a67d8;
}

.stats-card.published-pages .stats-value {
    color: #48bb78;
}

.stats-card.draft-pages .stats-value {
    color: #ed8936;
}

.stats-card.total-visits .stats-value {
    color: #4299e1;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.stats-info {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-info i {
    font-size: 0.7rem;
}

/* Stat Card (Alternative Style) */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: white;
    position: relative;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.stat-card.total-users::before {
    background: linear-gradient(90deg, #5a67d8, #7c8ae8);
}

.stat-card.active-users::before {
    background: linear-gradient(90deg, #48bb78, #68d391);
}

.stat-card.inactive-users::before {
    background: linear-gradient(90deg, #f56565, #fc8181);
}

.stat-card.growth-rate::before {
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon.total-users {
    background: rgba(90, 103, 216, 0.1);
    color: var(--primary-color);
}

.stat-icon.active-users {
    background: rgba(72, 187, 120, 0.1);
    color: var(--secondary-color);
}

.stat-icon.inactive-users {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.stat-icon.growth-rate {
    background: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.stat-trend {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.trend-up {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
}

.trend-down {
    background: rgba(245, 101, 101, 0.1);
    color: #742a2a;
}

/* ===========================================
   6. FILTER SECTION (Consolidated)
   =========================================== */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.filter-header {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.filter-group {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.filter-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.btn-filter {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-filter.primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-filter.primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-filter.secondary {
    background: white;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-filter.secondary:hover {
    background: var(--light-color);
    border-color: #cbd5e0;
}

.advanced-filter-toggle {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
}

.advanced-filters {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    display: none;
}

.advanced-filters.show {
    display: grid;
    animation: slideDown 0.3s ease;
}

/* ===========================================
   7. TABLES (Consolidated)
   =========================================== */
.users-table-container,
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table-header {
    background: var(--light-color);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
}

.users-table,
.pages-table,
.messages-table,
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.users-table thead th,
.pages-table thead th,
.messages-table thead th,
.data-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tbody td,
.pages-table tbody td,
.messages-table tbody td,
.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.users-table tbody tr:hover,
.pages-table tbody tr:hover,
.messages-table tbody tr:hover,
.data-table tr:hover {
    background-color: #f8fafc;
}

.users-table tbody tr:last-child td,
.pages-table tbody tr:last-child td,
.messages-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Footer */
.table-footer {
    background: var(--light-color);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    font-size: 0.875rem;
    color: #718096;
}

/* ===========================================
   8. PAGINATION (Consolidated)
   =========================================== */
.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    min-width: 36px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--light-color);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    background: #f7fafc;
    border-color: var(--border-color);
    color: #cbd5e0;
    cursor: not-allowed;
}

/* ===========================================
   9. ACTION BUTTONS (Consolidated)
   =========================================== */
.action-buttons-small {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-action:hover {
    background: var(--light-color);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.btn-action.view {
    background: #e6fffa;
    border-color: #81e6d9;
    color: #285e61;
}

.btn-action.view:hover {
    background: #b2f5ea;
}

.btn-action.edit {
    background: #ebf8ff;
    border-color: #90cdf4;
    color: #2c5282;
}

.btn-action.edit:hover {
    background: #bee3f8;
}

.btn-action.delete {
    background: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
}

.btn-action.delete:hover {
    background: #fed7d7;
}

.btn-action.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-action.primary:hover {
    background: var(--primary-light);
}

.btn-action.danger {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-action.danger:hover {
    background: #e53e3e;
}

/* ===========================================
   10. STATUS BADGES (Consolidated)
   =========================================== */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-active,
.badge-active {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-inactive,
.badge-inactive {
    background-color: #fed7d7;
    color: #742a2a;
}

.status-published {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-draft,
.badge-pending {
    background-color: #feebc8;
    color: #744210;
}

.status-archived {
    background-color: #e2e8f0;
    color: #4a5568;
}

.badge-verified {
    background-color: #bee3f8;
    color: #2c5282;
}

.status-unread {
    background-color: #fed7d7;
    color: #c53030;
}

.status-read {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.status-replied {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

.status-pending {
    background: #feebc8;
    color: #744210;
}

.status-failed {
    background: #fed7d7;
    color: #742a2a;
}

/* ===========================================
   11. EMPTY STATE (Consolidated)
   =========================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #718096;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
    opacity: 0.5;
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state-title {
    color: #718096;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

/* ===========================================
   12. LOADING STATES (Consolidated)
   =========================================== */
.loading-row {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loading .spinner-border {
    margin-right: 8px;
}

/* ===========================================
   13. QUICK STATS
   =========================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-stat-icon.email-verified {
    background: rgba(72, 187, 120, 0.1);
    color: var(--secondary-color);
}

.quick-stat-icon.social-login {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.quick-stat-icon.recent-active {
    background: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

.quick-stat-icon.sms-users {
    background: rgba(159, 122, 234, 0.1);
    color: #9f7aea;
}

.quick-stat-content {
    flex: 1;
}

.quick-stat-value {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.125rem;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: #718096;
}

/* Quick Actions Card */
.quick-actions-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.quick-actions-header {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
}

/* ===========================================
   14. FORMS (Consolidated)
   =========================================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    padding: 0.7rem 0.95rem !important;
}

.form-control:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.form-control.changed {
    border-color: #ffc107;
    background: #fffbf0;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.required:after {
    content: " *";
    color: #dc3545;
}

.social-input-group {
    position: relative;
}

.social-input-group .form-control {
    padding-left: 45px;
}

.social-input-group .form-control:focus {
    padding: 0.7rem 2.7rem !important;
}

.social-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.facebook-icon {
    background: #3b5998;
}

.instagram-icon {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.twitter-icon {
    background: #1da1f2;
}

.linkedin-icon {
    background: #0077b5;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.input-group-merge .input-group-text {
    background: var(--light-color);
    border-color: var(--border-color);
}

/* Password */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: #667eea;
}

.password-strength {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.strength-bar {
    flex: 1;
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar.active {
    background: #28a745;
}

/* ===========================================
   15. BUTTONS (Consolidated)
   =========================================== */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-export {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.2);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-label-primary {
    background-color: rgba(90, 103, 216, 0.15);
    border-color: transparent;
    color: #5a67d8;
}

.btn-label-primary:hover {
    background-color: #5a67d8;
    border-color: #5a67d8;
    color: white;
}

.btn-label-success {
    background-color: rgba(72, 187, 120, 0.15);
    border-color: transparent;
    color: #48bb78;
}

.btn-label-success:hover {
    background-color: #48bb78;
    border-color: #48bb78;
    color: white;
}

/* ===========================================
   16. CARDS & INFO SECTIONS (Consolidated)
   =========================================== */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    background: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    font-size: 22px;
    color: #667eea;
}

.card-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.card-body {
    padding: 25px;
}

.card.border {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    overflow: hidden;
}

.card.border .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.info-card-header {
    background: var(--light-color);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card-header i {
    color: var(--primary-color);
    margin-right: 10px;
}

.info-card-body {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.info-value code {
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    background: var(--light-color);
    border-radius: 4px;
}

/* Content Block */
.content-block {
    background: var(--light-color);
    border-color: var(--border-color) !important;
    transition: all 0.2s ease;
}

.content-block:hover {
    background: white;
    border-color: var(--primary-color) !important;
}

/* Settings Card */
.settings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef1f5;
    overflow: hidden;
}

.settings-header {
    background: rgb(105 108 255 / 16%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-header i {
    font-size: 22px;
    color: #667eea;
}

.settings-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.settings-body {
    padding: 30px;
}

.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1388px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef1f5;
}

.section-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.section-header i {
    color: #667eea;
    font-size: 18px;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef1f5;
    overflow: hidden;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.profile-image-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.image-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: 3px solid white;
    transition: all 0.3s;
}

.image-upload-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 10px 0 5px;
}

.profile-role {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eef1f5;
}

/* ===========================================
   17. HERO SECTIONS (Consolidated)
   =========================================== */
.page-hero,
.message-hero {
    position: relative;
    overflow: hidden;
}

.message-hero {
    min-height: 150px;
}

.page-hero-bg,
.message-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #5a67d8 0%, #7c8ae8 50%, #4299e1 100%);
}

.page-hero-overlay,
.message-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%); */
}

.message-hero-overlay {
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%); */
    background: rgb(57 61 255 / 0%);
}

.page-hero-content,
.message-hero-content {
    position: relative;
    z-index: 10;
}

.profile-header-section {
    background: rgb(57 61 255 / 47%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.profile-header-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* ===========================================
   18. TABS (Consolidated)
   =========================================== */
.details-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-header {
    display: flex;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(90, 103, 216, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    padding: 1.5rem;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===========================================
   19. TREND & COMPARISON INDICATORS
   =========================================== */
.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.trend-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.trend-indicator.trend-down .trend-icon {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.trend-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.trend-label {
    color: #718096;
    font-size: 0.85rem;
}

.percentage-indicator {
    margin-bottom: 0.75rem;
}

.percentage-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #68d391);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease;
    animation: fillWidth 1s ease-out forwards;
}

.percentage-value {
    font-weight: 600;
    color: #48bb78;
    font-size: 0.95rem;
}

.alert-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.alert-text {
    font-weight: 500;
    color: #f56565;
    font-size: 0.9rem;
}

.comparison-indicator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comparison-item {
    display: flex;
    flex-direction: column;
}

.comparison-label {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.comparison-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

/* ===========================================
   20. SUBSCRIPTION & PERMISSIONS
   =========================================== */
.subscription-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.subscription-card.inactive {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.subscription-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: #e2e8f0;
    border-radius: 12px;
    margin: 0.2rem;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.permission-badge:hover {
    background: #cbd5e0;
    border-color: #a0aec0;
    transform: translateY(-1px);
}

.transaction-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===========================================
   21. ALERTS & MESSAGES
   =========================================== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-icon {
    font-size: 20px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 3px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
}

.success-message i {
    font-size: 20px;
}

.message-content-box {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    line-height: 1.7;
}

.reply-content-box {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    font-size: 1rem;
    line-height: 1.7;
}

.status-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon-wrapper i {
    font-size: 2.5rem;
}

/* Sender/Subject Info */
.sender-info,
.subject-info,
.page-info {
    display: flex;
    flex-direction: column;
}

.sender-name,
.subject-text,
.page-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.page-url {
    font-size: 0.75rem;
    color: #718096;
}

.message-preview {
    font-size: 0.75rem;
    color: #718096;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   22. BUSINESS CARD
   =========================================== */
.business-card {
    border: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(161, 172, 184, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(161, 172, 184, 0.2) !important;
}

.business-banner-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.business-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business-card:hover .business-banner-img {
    transform: scale(1.05);
}

.business-card .status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.owner-avatar-wrapper {
    position: absolute;
    bottom: 0px;
    left: 20px;
    padding: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.owner-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.card-content {
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.business-title a {
    color: #566a7f;
    transition: color 0.2s;
}

.business-title a:hover {
    color: #696cff;
}

.stat-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.business-stat-value {
    font-weight: 700;
    color: #566a7f;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.business-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a1acb8;
    margin-bottom: 0;
}

/* ===========================================
   23. AVATARS & USER INFO
   =========================================== */
.avatar-sm {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.user-email {
    font-size: 0.75rem;
    color: #718096;
}

/* Background Labels */
.bg-label-primary {
    background-color: rgba(90, 103, 216, 0.15) !important;
    color: #5a67d8 !important;
}

.bg-label-success {
    background-color: rgba(72, 187, 120, 0.15) !important;
    color: #48bb78 !important;
}

.bg-label-info {
    background-color: rgba(66, 153, 225, 0.15) !important;
    color: #4299e1 !important;
}

.bg-label-warning {
    background-color: rgba(237, 137, 54, 0.15) !important;
    color: #ed8936 !important;
}

/* Map Preview */
.map-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.map-preview i {
    font-size: 32px;
    color: #6c757d;
    margin-bottom: 10px;
}

.map-preview span {
    color: #6c757d;
    font-size: 14px;
}

/* ===========================================
   24. SCROLLBAR & UTILITIES
   =========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.cursor-pointer {
    cursor: pointer;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-sm th,
.table-sm td {
    padding: 0.75rem 0.5rem;
}

/* ===========================================
   25. RESPONSIVE DESIGN (Consolidated)
   =========================================== */

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
    .toggle-btn {
        display: none;
    }
}

/* Medium-Large Screens (1200px and below) */
@media (max-width: 1199.98px) {
    .layout-navbar {
        padding: 0.75rem 1rem;
    }

    .search-container {
        max-width: 300px;
    }

    .layout-menu {
        transform: translateX(-100%);
        width: 280px;
    }

    .layout-menu.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .toggle-btn {
        display: flex;
    }

    .stats-icon .icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .stats-value {
        font-size: 2rem;
    }

    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets (992px and below) */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Tablets (768px and below) */
@media (max-width: 767.98px) {
    .search-container {
        display: none !important;
    }

    .navbar-brand {
        flex: 1;
    }

    .nav-notification {
        margin-right: 0.25rem;
    }

    .user-info {
        display: none !important;
    }

    .dropdown-user .nav-link {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .user-management-page {
        padding: 1rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-group {
        margin-bottom: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-filter {
        width: 100%;
        justify-content: center;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .table-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .users-table,
    .data-table {
        display: block;
        overflow-x: auto;
    }

    .table-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-icon .icon-wrapper {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .stats-value {
        font-size: 2.5rem;
    }

    .comparison-indicator {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stats-section .row>div {
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .settings-wrapper,
    .profile-wrapper {
        padding: 15px;
    }

    .settings-body {
        padding: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .tab-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .profile-header-section {
        padding: 1.5rem;
        text-align: center;
    }

    .page-hero-content {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .page-hero-content .ms-auto {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .message-hero-content {
        flex-direction: column;
    }
}

/* Small Screens (576px and below) */
@media (max-width: 575.98px) {
    .layout-navbar {
        padding: 0.75rem 0.75rem;
    }

    .layout-menu-toggle .nav-link {
        width: 36px;
        height: 36px;
    }

    .nav-notification .nav-link,
    .dropdown-user .nav-link {
        width: 36px;
        height: 36px;
    }

    .stats-content {
        padding: 1.5rem;
    }

    .stats-icon .icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .stats-value {
        font-size: 2.25rem;
    }
}

/* Extra Small Screens (480px and below) */
@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .action-buttons-small {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        height: auto;
        padding: 0.5rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.table-responsive {
    padding: 15px !important;
}

.cke_notifications_area{
    display: none !important;
}