/* ============================================
   Layout CSS - Grid, Flexbox, Positioning
   ============================================
   NOTE: Main content margin/width on desktop is handled by unified-layout.css
   This file provides base styles, unified-layout.css overrides for desktop
   ============================================ */

/* --- Main Content Area --- */
/* NOTE: Desktop margin/width is handled by unified-layout.css for consistency */
/* This file provides base styles, unified-layout.css overrides for desktop */
.main-content {
    /* Base styles - will be overridden by unified-layout.css on desktop */
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding: 30px;
    min-height: auto;
    /* Changed from 100vh to auto to prevent empty space */
    padding-bottom: 50px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-main-gradient);
    z-index: 1;
    overflow-x: hidden;
    transition: margin-inline-start 0.3s ease,
        width 0.3s ease,
        background 0.3s ease,
        margin-inline-end 0.3s ease,
        max-width 0.3s ease;
}

/* NOTE: Mobile/tablet .main-content rules are now in unified-layout.css */

/* NOTE: All .main-content-section rules are now in unified-layout.css */
/* DELETED: Conflicting rules removed - unified-layout.css is the single source of truth */

/* --- Modern Sidebar Styles --- */
/* NOTE: All .modern-sidebar rules are now in unified-layout.css
   This file should NOT define sidebar positioning rules to avoid conflicts */

/* --- Site Controls Header --- */
/* Note: Main styles are in dashboard.html for specificity */
/* These are fallback/base styles - DO NOT OVERRIDE */
/* .site-controls styles are defined in dashboard.html */

.quick-search-container {
    position: relative;
    flex: 1;
    min-width: clamp(150px, 25vw, 220px);
    max-width: clamp(220px, 35vw, 320px);
    display: flex;
    align-items: center;
}

.quick-search-input {
    width: 100%;
    padding: var(--spacing-sm, 12px) var(--spacing-xl, 40px) var(--spacing-sm, 12px) var(--spacing-md, 16px);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.quick-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

.quick-search-icon {
    position: absolute;
    inset-inline-end: var(--spacing-md, 16px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    pointer-events: none;
    transition: all 0.3s ease;
}

#siteSelect,
.site-select {
    padding: var(--spacing-sm, 12px) var(--spacing-xl, 40px) var(--spacing-sm, 12px) var(--spacing-md, 16px);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 2px solid var(--border);
    background: var(--bg-card);
    min-width: clamp(150px, 20vw, 180px);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* Light mode - dark text */
:root #siteSelect,
:root .site-select {
    color: #1a1a1a;
}

/* Dark mode - light text */
[data-theme="dark"] #siteSelect,
[data-theme="dark"] .site-select {
    color: #f1f5f9;
}

/* Select options styling - explicit colors for dropdown */
#siteSelect option,
.site-select option {
    padding: 10px;
}

/* Light mode - dark text on light background */
:root #siteSelect option,
:root .site-select option {
    background: #ffffff;
    color: #1a1a1a;
}

/* Dark mode - light text on dark background */
[data-theme="dark"] #siteSelect option,
[data-theme="dark"] .site-select option {
    background: #1e293b;
    color: #f1f5f9;
}

#siteSelect:hover,
.site-select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#siteSelect:focus,
.site-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

.refresh-btn {
    padding: var(--spacing-sm, 12px) var(--spacing-md, 16px);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    display: flex;
    align-items: center;
    gap: var(--gap-xs, 8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.refresh-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Delete Button Styles */
.delete-btn {
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 2px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-sizing: border-box;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-btn i {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
}

.notifications-bell {
    position: relative;
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
    border-radius: clamp(8px, 1.5vw, 12px);
    border: 2px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-sizing: border-box;
}

.notifications-bell:hover {
    background: var(--bg-elevated);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    background: var(--danger);
    color: white;
    font-size: clamp(0.65rem, 1vw, 0.7rem);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Legacy notifications dropdown styles are now handled in components.css */

.notifications-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated);
}

.notifications-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.mark-all-read {
    font-size: 0.8rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Notification items in dropdown */
.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-item:hover {
    background: var(--bg-elevated);
}

.notification-item.read {
    opacity: 0.6;
}

.notification-item .notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    word-wrap: break-word;
}

.notification-item .notification-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: var(--text-disabled);
    margin-top: 4px;
}

.notifications-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.notifications-footer a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- Stats Grid --- */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    /* Performance optimization */
    will-change: transform;
    /* Prevent layout shift */
    min-height: 150px;
    contain: layout style paint;
}

.stat-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    /* Remove will-change after hover */
    will-change: auto;
}

.stat-card h3 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card .val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .sub-val {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Dashboard Responsive Grid --- */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    width: 100%;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 140px;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.quick-action-btn i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.quick-action-btn:hover i {
    transform: scale(1.1);
    -webkit-text-fill-color: white;
    color: white;
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Header */
.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    margin: -8px;
    border-radius: 12px;
}

.brand-container:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.brand-container:hover .brand-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.brand-container:active {
    transform: translateY(0);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
}

/* Badges */
.user-plan-badge {
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
}

.badge-free {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.badge-starter {
    background: var(--gradient-warning);
    box-shadow: var(--shadow-sm);
    color: white;
}

.badge-pro {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
    color: white;
}

.badge-enterprise {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: var(--shadow-md);
    color: white;
}

.badge-admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Control Panel Button - Modern Design */
.control-panel-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    border-radius: 14px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    margin-block-end: 0;
}

.control-panel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.control-panel-btn:hover::before {
    left: 100%;
}

.control-panel-btn i.fa-gear {
    font-size: 1rem;
    color: var(--text-main);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.control-panel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    flex: 1;
    text-align: right;
}

[dir="rtl"] .control-panel-text,
html[dir="rtl"] .control-panel-text {
    text-align: right;
    align-items: flex-end;
}

[dir="ltr"] .control-panel-text,
html[dir="ltr"] .control-panel-text {
    text-align: left;
    align-items: flex-start;
}

[dir="rtl"] .control-panel-btn,
html[dir="rtl"] .control-panel-btn {
    flex-direction: row;
}

[dir="ltr"] .control-panel-btn,
html[dir="ltr"] .control-panel-btn {
    flex-direction: row;
}

.control-panel-line1,
.control-panel-line2 {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.control-panel-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.control-panel-btn:hover:not(:disabled) i.fa-gear {
    transform: rotate(90deg) scale(1.1);
}

.control-panel-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Very Small Screens: Max 480px */
@media (max-width: 480px) {

    .main-content,
    .main-content-section {
        padding: 15px;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* NOTE: Sidebar rules moved to unified-layout.css */
}

/* Very Small Screens: Max 480px */
@media (max-width: 480px) {
    .control-panel-btn {
        padding: 10px 14px;
    }

    .control-panel-text {
        display: none;
    }

    .control-panel-btn {
        justify-content: center;
    }
}

/* Navigation Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: end;
}

.nav-link:hover {
    color: var(--text-main);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    font-weight: 600;
}

.nav-link.active .nav-icon {
    color: var(--primary);
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-icon-sm {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 10px 0;
}

/* Nav Groups */
.nav-group-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-group-trigger:hover {
    color: var(--text-main);
    background: var(--bg-elevated);
}

.nav-group-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-group.expanded .group-arrow {
    transform: rotate(180deg);
}

.nav-group.expanded .nav-group-trigger {
    color: var(--text-main);
    font-weight: 600;
}

.nav-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-inline-end: 18px;
    border-inline-end: 1px solid var(--border-glass);
    margin-inline-end: 18px;
}

.nav-group.expanded .nav-group-content {
    max-height: 500px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.nav-link.sub-link {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-disabled);
    transition: all 0.2s;
}

.nav-link.sub-link:hover .nav-dot {
    background: var(--text-muted);
}

.nav-link.sub-link.active .nav-dot {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Special Links */
.upgrade-link {
    color: #fbbf24 !important;
}

.upgrade-link:hover {
    background: rgba(251, 191, 36, 0.1) !important;
}

.owner-link {
    color: #facc15 !important;
}

.admin-link {
    color: #a78bfa !important;
}

/* Footer */
.sidebar-footer {
    padding: 20px;
    background: var(--bg-glass-sidebar);
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quota-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quota-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quota-value {
    color: var(--text-main);
    font-weight: 600;
}

.quota-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.quota-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-info);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    overflow: hidden;
}

.user-name {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

/* Scrollbar specific for sidebar */
.simplebar-scrollable-y::-webkit-scrollbar {
    width: 4px;
}

.simplebar-scrollable-y::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Common Header & Breadcrumbs preserved */
/* CRITICAL: Ensure header uses full width on mobile */
.header {
    background: var(--bg-card);
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* CRITICAL: Mobile header - Full width and flexible */
@media (max-width: 768px) {
    .header {
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .header-title {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .header-title h2,
    .header-title p {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Helper Classes */
.mt-auto {
    margin-top: auto;
}

/* =========================================
   RESPONSIVE & RTL LOGIC
   ========================================= */

/* Medium Screens: 993px - 1200px */
/* NOTE: Sidebar and main content positioning handled by unified-layout.css */

/* NOTE: Tablet rules (769px - 992px) are now in unified-layout.css */

/* Desktop: Min Width 993px */
@media (min-width: 993px) {

    /* NOTE: All sidebar and main-content positioning is now handled by unified-layout.css */
}

/* RTL Global Adjustments (Non-Media Query Dependent) */
html[dir="rtl"] .sidebar-content {
    text-align: right;
}

html[dir="ltr"] .sidebar-content {
    text-align: left;
}