/* Custom Client Dashboard Styles */

/* Status Badges */
.status-badge-urgent {
    background: transparent;
    background: #dc3545;
    color: white;
    animation: pulse 2s infinite;
}

.status-badge-warning {
    background: transparent;
    background: #ffc107;
    color: #212529;
}

.status-badge-success {
    background: transparent;
    color: #198754;
    border: 1px solid #198754;
}
.icon-bg-white {
    background-color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

/* Enhanced Summary Cards Styling */
.summary-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px !important;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card .card-body {
    position: relative;
    z-index: 2;
}

/* Enhanced Icon Styling */
.summary-card .bg-white.bg-opacity-25 {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.summary-card:hover .bg-white.bg-opacity-25 {
    transform: scale(1.1);
    background-color: rgba(255,255,255,0.35) !important;
}

/* Enhanced Typography */
.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-6 {
        font-size: 2rem;
    }
    
    .summary-card .card-body {
        padding: 1.5rem !important;
    }
}

/* Animation for numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-card h3 {
    animation: countUp 0.6s ease-out;
}

/* Enhanced Trustpilot section */
.alert-info {
    border-radius: 15px;
    border: none;
}

/* Enhanced action buttons */
.btn-group .btn {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Enhanced table styling */
.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: none;
    font-weight: 600;
    color: #374151;
}

/* Enhanced modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

/* Loading animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Enhanced empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Enhanced badge styling */
.badge {
    border-radius: 20px;
}

/* Enhanced tab styling */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
        background-color: #f8fafc;

}

.nav-tabs .nav-link:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white!important;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Pulse Animation for Urgent Items */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Tab Styling */
.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-bottom: 3px solid #0d6efd;
}

/* Button Enhancements */
.btn-renewal {
    background: #198754;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-renewal:hover {
    background: #157347;
    color: white;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Badge */
.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Product Icon Styling */
.product-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transition: all 0.3s ease;
}

.product-icon:hover {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Ensure scrolling works properly */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* Override any overflow-hidden that might prevent scrolling */
body.overflow-y-hidden {
    overflow-y: auto !important;
}

/* Ensure main content area can scroll */
.main-content {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Fix for modal backdrop issues */
.modal-backdrop {
    z-index: 1040;
}

/* Ensure modals don't interfere with page scrolling */
.modal {
    overflow-y: auto;
}

/* Progress Bar for Renewal Countdown */
.renewal-progress {
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.renewal-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.renewal-progress-bar.urgent {
    background: #dc3545;
}

.renewal-progress-bar.warning {
    background: #ffc107;
}

.renewal-progress-bar.success {
    background: #198754;
}

/* Table Responsive Improvements */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 900px;
    width: 100%;
}

/* Badge Font Family */
.badge {
    font-family: "Cairo", sans-serif;
}

/* Dark Theme Support */
.dark-theme .bg-white {
    background-color: var(--dark-body) !important;
}

.bg-main{
    background-color: #fff !important;
}
.dark-theme .bg-main {
    background-color: var(--dark-theme) !important;
}

/* Modal enhancements for bg-main */
.modal-content.bg-main {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-content.bg-main .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.bg-main .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.bg-main .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dark-theme .card {
    background: var(--dark-theme);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.dark-theme .main-header {
    background: var(--dark-theme);
    border-block-end-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Card Styling */
.card2 {
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: 5px;
    border-top: 4px solid;
    margin-block-end: 1.3rem;
    box-shadow: -8px 12px 18px 0 #dadee8;
}

.dark-theme .card2 {
    position: relative;
    background: var(--dark-theme);
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: 5px;
    border-top: 4px solid;
    margin-block-end: 1.3rem;
    box-shadow: -8px 12px 18px 0 #dadee8;
}

/* Form Card Styling */
.dark-theme {
    --form-card-bg: #ecf0fa;
    --dark-body-form: #141B2D;
}

.dark-theme .form-card1 {
    background: var(--dark-body-form);
    color: #fff;
}

.light-theme .form-card1 {
    background: var(--form-card-bg);
    color: #000;
}



/* Modal Improvements */
.modal .card {
    transition: all 0.2s ease;
    border: none;
}

.modal .card-header {
    border-bottom: none;
    padding: 0.75rem 1.25rem;
}

.modal .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal .input-group-text {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

.modal .form-control, .modal .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

.modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.modal .form-label span.text-danger {
    font-weight: bold;
    margin-right: 4px;
}

/* Select2 Modal Styling */
.modal .select2-container--default .select2-selection--multiple {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    min-height: 38px;
}

.modal .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.modal .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
}

/* Custom styles for Select2 borders */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #0d6dfd20 !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #0d6efd;
    background-color: #e7f1ff;
}

/* Collapse Visibility */
.collapse {
    visibility: visible !important;
}


.border-left-danger {
    border-inline-start: 5px solid #dc3545 !important;
}

.border-left-primary {
    border-inline-start: 5px solid #0d6efd !important;
}

.border-left-warning {
    border-inline-start: 5px solid #ffc107 !important;
}

.border-left-success {
    border-inline-start: 5px solid #198754 !important;
}

.chart-container {
    background: var(--dark-body-form);
    border-radius: 8px;
    padding: 20px;
}

/* Stats Page Enhancements */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Card Enhancements for Stats */
.stats-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.stats-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Progress Bar Enhancements */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Table Enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table-light {
    background-color: #f8f9fa;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Print Styles */
@media print {
    .btn, .form-control, .form-select, .btn-group {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .bg-gradient-primary {
        background: #0d6efd !important;
    }
    
    .chart-container {
        background: var(--dark-body-form) !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .table {
        border-collapse: collapse !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #dee2e6 !important;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stats-card .card-body {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .chart-container {
        height: 300px !important;
    }
}

/* Responsive Chart Adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 250px !important;
        padding: 10px;
    }
}

/* Transparent Background Classes */
.bg-primary-transparent {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success-transparent {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-transparent {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-transparent {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-info-transparent {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-secondary-transparent {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Templates Accordion Styles */
.slide-menu {
    transition: all 0.3s ease !important;
    display: block !important;
    list-style: none !important;
    padding: 0px 20px 0px 00px !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0) !important;
    border-radius: 0.375rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    width: 100% !important;
}

/* Accordion content when hidden */
#templatesAccordion[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Accordion content when visible */
#templatesAccordion[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}



/* Override any existing hover effects from main CSS */
#templatesAccordion .side-menu__item:hover .side-menu__label {
    color: inherit !important;
    text-decoration: none !important;
}

#templatesAccordion .side-menu__item:hover .side-menu__icon,
#templatesAccordion .side-menu__item:hover i {
    color: inherit !important;
}

#templatesAccordion .side-menu__item.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

#templatesAccordion .side-menu__item.bg-primary:hover {
    background-color: #0b5ed7 !important;
    color: white !important;
}

#templatesAccordion .side-menu__item.bg-primary:hover .side-menu__label {
    color: white !important;
}

#templatesAccordion .side-menu__item.bg-primary:hover i {
    color: white !important;
}

#templatesAccordionIcon {
    transition: transform 0.3s ease !important;
}

/* Hover effects for accordion parent - only affect the parent */
.slide > a.accordion-trigger:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Accordion parent styling */
.slide > a.accordion-trigger {
    cursor: pointer !important;
    user-select: none !important;
}

/* Prevent accordion from affecting other menu items */
.slide-menu {
    position: relative !important;
    z-index: 10 !important;
}

#templatesAccordion .side-menu__item {
    position: relative !important;
    z-index: 11 !important;
}


/* Responsive accordion */
@media (max-width: 768px) {
    #templatesAccordion .side-menu__item {
        padding-left: 1rem !important;
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }
}

.dropdown-open {
    overflow: hidden;
}

.main-header-notification .nav-link {
    position: relative;
    transition: all 0.2s ease;
    color: #fff;
}

.main-header-notification .nav-link:hover {
    color: #fefefe;
}

.main-header-notification .nav-link i {
    transition: transform 0.2s ease;
}

.main-header-notification .nav-link:hover i {
    transform: scale(1.1);
}

/* Dropdown display fix */
.notification-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.notification-dropdown .dropdown-menu {
    display: none;
}

.notification-dropdown.show .dropdown-menu {
    display: block;
}

/* إصلاح التلميحات في الوضع الداكن */
.dark-theme .tooltip .tooltip-inner {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.dark-theme .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #ffffff !important;
}

.dark-theme .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #ffffff !important;
}

.dark-theme .tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #ffffff !important;
}

.dark-theme .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #ffffff !important;
}

/* تحسين التلميحات في الوضع الفاتح أيضاً */
.light-theme .tooltip .tooltip-inner {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.light-theme .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #000000 !important;
}

.light-theme .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #000000 !important;
}

.light-theme .tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #000000 !important;
}

.light-theme .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #000000 !important;
}

/* تحسين عام للتلميحات */
.tooltip {
    font-size: 12px !important;
    font-weight: 500 !important;
    z-index: 9999 !important;
}

.tooltip .tooltip-inner {
    padding: 6px 10px !important;
    border-radius: 4px !important;
    max-width: 200px !important;
    text-align: center !important;
}

/* ========================================
   END OF MOVED CSS FROM APP.CSS
   ======================================== */

/* ========================================
   CLIENT DASHBOARD TABLE FIXES
   ======================================== */

/* Remove table hover effects completely */
.table tbody tr:hover,
.table-hover tbody tr:hover,
table tbody tr:hover,
.table tbody tr:hover td,
.table-hover tbody tr:hover td,
table tbody tr:hover td {
    background-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}


/* Remove table header light styling */

/* Disable hover effects for specific tables */
.no-hover tbody tr:hover,
.no-hover tbody tr:hover td {
    background-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Remove top border from orders table */
.no-top-border {
    border-top: none !important;
}

.no-top-border thead th {
    border-top: none !important;
}

.no-top-border thead tr {
    border-top: none !important;
}
.table thead th,
.table-warning,
thead.table-warning,
.table thead th.table-warning {
    background-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
    border-color: inherit !important;
}

/* Dark mode table support */
[data-bs-theme="dark"] .table,
.dark-theme .table,
body[data-bs-theme="dark"] .table,
body.dark-theme .table {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .table thead th,
.dark-theme .table thead th,
body[data-bs-theme="dark"] .table thead th,
body.dark-theme .table thead th {
    background-color: #061429 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

[data-bs-theme="dark"] .table tbody tr,
.dark-theme .table tbody tr,
body[data-bs-theme="dark"] .table tbody tr,
body.dark-theme .table tbody tr {
    background-color: #1f283f !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

[data-bs-theme="light"] .table tbody tr:hover,
.light-theme .table tbody tr:hover,
body[data-bs-theme="light"] .table tbody tr:hover,
body.light-theme .table tbody tr:hover {
    background-color: #e2e8f0 !important;
}

/* Light mode table headers */
[data-bs-theme="light"] .table thead th,
.light-theme .table thead th,
body[data-bs-theme="light"] .table thead th,
body.light-theme .table thead th {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border-color: #dee2e6 !important;
}

/* Remove specific Bootstrap table classes that cause issues */
.table-warning {
    background-color: transparent !important;
    color: inherit !important;
}

[data-bs-theme="dark"] .table-warning,
.dark-theme .table-warning,
body[data-bs-theme="dark"] .table-warning,
body.dark-theme .table-warning {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Disable all table transitions and animations */
.table,
.table *,
.table tbody tr,
.table tbody td,
.table thead th {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.table
{
border-radius:10px!important;
}
/* Force transparent backgrounds for all table elements */
.table tbody tr,
.table tbody td,
.table-responsive .table tbody tr,
.table-responsive .table tbody td {
    background-color: #fff !important; /* Light mode: white */
}

.dark-theme .table tbody tr,
.dark-theme .table tbody td,
.dark-theme .table-responsive .table tbody tr,
.dark-theme .table-responsive .table tbody td {
    background-color: #1F2940 !important; /* Dark mode: your specified color */
}

.light-theme .table tbody tr,
.light-theme .table tbody td,
.light-theme .table-responsive .table tbody tr,
.light-theme .table-responsive .table tbody td {
    background-color: #fff !important; /* Light mode: white */
}

/* ارتفاع افتراضي لسطح المكتب */
.revenue-chart-wrap { height: 260px; }

/* للموبايل: قلّل الارتفاع والـ paddings وألغِ أي إجبار على الطول */
@media (max-width: 576px) {
  .revenue-row { min-height: auto; }
  .revenue-chart-wrap { height: 160px; }   /* جرّب 140–180 حسب ذوقك */
  .revenue-card .p-4 { padding: 1rem !important; } /* لا تعمّم عالمشروع، استهدف الكارد فقط */
}

/* حدود مناسبة: يمين على الشاشات الكبيرة وأسفل على الصغيرة */
.border-lg-end { border-right: 1px solid var(--bs-border-color) !important; }
@media (max-width: 991.98px) {
  .border-lg-end { border-right: 0 !important; border-bottom: 1px solid var(--bs-border-color) !important; }
}


/* ========================================
   END OF MOVED CSS FROM APP.CSS
   ======================================== */

/* ========================================
   CUSTOM SELECT2 STYLES FOR DARK THEME
   ======================================== */

/* Select2 Container */
.select2-container {
    z-index: 9999;
}

/* Select2 Dropdown */
.select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    background: transparent;
    border: none;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: textfield;
    appearance: textfield;
    color: #fff!important;
}

/* Select2 Results */
.select2-results__option:hover {
    background-color: #007bff !important;
    color: #fff !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #007bff !important;
    color: #fff !important;
}

.select2-results__option[aria-selected=true] {
    background-color: #0056b3 !important;
    color: #fff !important;
}

/* Select2 Selection */
.select2-selection--single {
    height: 38px !important;
    line-height: 36px !important;
}

.select2-selection--multiple {
    min-height: 38px !important;
    padding: 4px !important;
}

.select2-selection--multiple .select2-selection__rendered {
    color: #fff !important;
    padding: 0 !important;
}

/* Select2 Selection Arrow */
.select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #fff transparent !important;
}

/* Select2 Tags (for multiple selection) */
.select2-selection--multiple .select2-selection__choice {
    background-color: #007bff !important;
    color: #fff !important;
    border: 1px solid #0056b3 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    margin: 2px !important;
}

.select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    font-weight: bold !important;
}

.select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff6b6b !important;
}

/* Select2 Placeholder */
.select2-selection--single .select2-selection__placeholder {
    color: #aaa !important;
}

/* Select2 Clear Button */
.select2-selection--single .select2-selection__clear {
    color: #fff !important;
    margin-right: 20px !important;
}

.select2-selection--single .select2-selection__clear:hover {
    color: #ff6b6b !important;
}

/* Select2 Loading */
.select2-results__option--loading {
    color: #aaa !important;
    font-style: italic !important;
}

/* Select2 No Results */
.select2-results__option--no-results {
    color: #aaa !important;
    font-style: italic !important;
    background-color: #2a2a2a !important;
}

/* Select2 Focus States */
.select2-container--focus .select2-selection {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Select2 Open State */
.select2-container--open .select2-dropdown {
    border-color: #007bff !important;
}

/* Select2 Disabled State */
.select2-container--disabled .select2-selection {
    background-color: #444 !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

/* Select2 RTL Support */
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    left: 8px !important;
    right: auto !important;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__clear {
    margin-left: 20px !important;
    margin-right: 0 !important;
}

/* Select2 in Modal */
.modal .select2-container {
    z-index: 9999 !important;
}

.modal .select2-dropdown {
    z-index: 10000 !important;
}

/* Select2 Responsive */
@media (max-width: 768px) {
    .select2-container {
        width: 100% !important;
    }
    
    .select2-selection {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Select2 Custom Animations */
.select2-dropdown {
    animation: select2FadeIn 0.2s ease-in-out;
}

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

/* Select2 Loading Spinner */
.select2-results__option--loading::before {
    content: "⏳";
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   END OF CUSTOM SELECT2 STYLES
   ======================================== */

/* Custom CSS for Client CRM */

/* General improvements */
.bg-primary-transparent {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-danger-transparent {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-warning-transparent {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-success-transparent {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-info-transparent {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-secondary-transparent {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Card improvements */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Button improvements */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Modal improvements */
.modal-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Form improvements */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert improvements */
.alert {
    border-radius: 0.375rem;
    border: 1px solid transparent;
}


/* Archive page specific styles */
.archived-table th {
    background-color: #343a40;
    color: white;
    font-weight: 600;
}

.archived-table td {
    vertical-align: middle;
}

/* Product toggle animation */
.product-toggle {
    transition: all 0.3s ease;
}

.product-toggle:hover {
    color: #0d6efd !important;
    text-decoration: underline;
}

/* Status badge colors */
.status-declined {
    background-color: #dc3545 !important;
}

.status-no-answer {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.status-not-renewing {
    background-color: #0dcaf0 !important;
}

.status-not-contacted {
    background-color: #6c757d !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .bg-primary-transparent {
        background-color: rgba(13, 110, 253, 0.2) !important;
    }
    
    .bg-danger-transparent {
        background-color: rgba(220, 53, 69, 0.2) !important;
    }
    
    .bg-warning-transparent {
        background-color: rgba(255, 193, 7, 0.2) !important;
    }
    
    .bg-success-transparent {
        background-color: rgba(25, 135, 84, 0.2) !important;
    }
    
    .bg-info-transparent {
        background-color: rgba(13, 202, 240, 0.2) !important;
    }
    
    .bg-secondary-transparent {
        background-color: rgba(108, 117, 125, 0.2) !important;
    }
}

/* Animation for loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Export button styling */
.export-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Restore button styling */
.restore-btn {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.restore-btn:hover {
    background: linear-gradient(45deg, #138496, #5a32a3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Advanced search styles */
.advanced-search-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advanced-search-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.advanced-search-card .card-title {
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 1rem;
}

.advanced-search-card .form-control:focus,
.advanced-search-card .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-input {
    position: relative;
}

.search-input .form-control {
    padding-left: 40px;
    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='m11 11 3.5 3.5M9 2a7 7 0 1 1-7 7 7 7 0 0 1 7-7z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px;
}

.search-input .form-control::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Filter button enhancements */
.filter-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.reset-btn {
    background: linear-gradient(45deg, #6c757d, #545b62);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 500;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #545b62, #3d4449);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* ========================================
   SIDEBAR LOGO STYLES
   ======================================== */
/* Moved to assets/css/logo.css */
/* ========================================
   END OF SIDEBAR LOGO STYLES
   ======================================== */

/* Accordion Icon Animation */
#templatesAccordionIcon {
    transition: transform 0.3s ease !important;
    color: #6c757d !important;
}


/* Animation for accordion expansion */
#templatesAccordion {
    transition: all 0.3s ease !important;
    transform-origin: top !important;
}

#templatesAccordion[style*="display: block"] {
    animation: slideDown 0.3s ease !important;
}

#templatesAccordion[style*="display: none"] {
    animation: slideUp 0.3s ease !important;
}

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

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




/* Dark mode styles for accordion components */
[data-bs-theme="dark"] .accordion-header {
    background-color: var(--dark-body-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-bs-theme="dark"] .accordion-button {
    background-color: transparent !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .accordion-body {
    background-color: var(--dark-body-bg) !important;
    color: #e5e7eb !important; /* gray-200 */
}

[data-bs-theme="dark"] .accordion-button::after {
    filter: invert(1) grayscale(1);
}

/* Duplicate dark-mode rules for layouts that use body.dark-theme instead of data attribute */
.dark-theme .accordion-header {
    background-color: var(--dark-body-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dark-theme .accordion-item,
.dark-theme .accordion-body {
    background-color: var(--dark-body-bg) !important;
    color: #e5e7eb !important;
}

.dark-theme .accordion .accordion-button {
    background-color: transparent !important;
    color: #e5e7eb !important;
}

.dark-theme .accordion .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.dark-theme .accordion .accordion-button::after {
    filter: invert(1) grayscale(1);
}
/* ========================================
   END OF SIDEBAR LOGO STYLES
   ======================================== */



/* Force small buttons in tables */
.table .btn-sm,
.table-responsive .btn-sm {
    min-width: 48px !important;
    min-height: 32px !important;
    padding: 0.45rem 0.6rem !important;
    font-size: 0.85rem !important;
    line-height: 1.1 !important;
    border-radius: 0.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Header logo theme switching */
.dark-theme .light-logo { display: none !important; }
.dark-theme .dark-logo { display: inline-block !important; }

[data-bs-theme="dark"] .light-logo { display: none !important; }
[data-bs-theme="dark"] .dark-logo { display: inline-block !important; }

[data-bs-theme="light"] .light-logo { display: inline-block !important; }
[data-bs-theme="light"] .dark-logo { display: none !important; }

/* Auth logo sizing */
.auth-logo { height: 42px; }

 .app-sidebar:hover{
overflow: hidden!important;
 }

/* Global Search Results Styling */
#searchResults {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#searchResults .list-group-item {
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

#searchResults .list-group-item:last-child {
    border-bottom: none;
}

#searchResults .list-group-item:hover {
    background-color: #f8f9fa !important;
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark theme search results */
.dark-theme #searchResults {
    background-color: #2d3748;
    border-color: #4a5568;
}

.dark-theme #searchResults .list-group-item {
    background-color: #2d3748;
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

.dark-theme #searchResults .list-group-item:hover {
    background-color: #4a5568 !important;
    color: #ffffff !important;
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Ensure proper contrast for search result items */
#searchResults .list-group-item-action {
    color: #495057;
    text-decoration: none;
}

.dark-theme #searchResults .list-group-item-action {
    color: #e2e8f0;
}

#searchResults .list-group-item-action:hover {
    text-decoration: none;
}
/* Custom notification pulse animation */
@keyframes customPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Override any existing notification-dropdown styles that might interfere */
.notification-dropdown {
    display: none !important;
}

.notification-dropdown.show {
    display: none !important;
}

/* Custom scrollbar styling for notification panel */
#customNotificationPanel::-webkit-scrollbar {
    width: 6px;
}

#customNotificationPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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



  /* Search functionality styles */
  .spin {
    animation: spin 1s linear infinite;
}

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

#searchResults {
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

#searchResults .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

#searchResults .list-group-item:first-child {
    border-top: none;
}

#searchResults .list-group-item:last-child {
    border-bottom: none;
}

#searchResults .list-group-item-action:hover,
#searchResults a.list-group-item-action:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

.dark-theme #searchResults .list-group-item-action:hover,
.dark-theme #searchResults a.list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

#globalSearchInput:focus {
    outline: 2px solid rgba(0, 123, 255, 0.25);
    border-color: #80bdff;
}

.main-header-center {
    position: relative;
}

#globalSearchInput {
    padding-inline: 12px;
}

/* Global select icon wrapper */

/* Custom overrides for sidebar and logo classes */

.app .app-sidebar__overlay {
	visibility: hidden;
}

.app.sidenav-toggled .app-sidebar__overlay {
	visibility: visible;
}

@media (max-width: 991px) {
	.app-sidebar__overlay {
		position: fixed;
		top: 0;
		inset-inline-start: 0;
		bottom: 0;
		inset-inline-end: 0;
		z-index: 9;
	}

	.app-sidebar {
		z-index: 1029 !important;
		top: 63px !important;
	}
}

.main-sidebar-header {
	width: 240px;
	z-index: 999;
}

.logo-icon {
	display: block !important;
	height: 2.2rem;
}

.desktop-logo.logo-dark .main-logo.dark-theme {
	display: none !important;
}

.logo-icon.mobile-logo.icon-light {
	display: block !important;
}

.logo-icon.mobile-logo.icon-dark {
	display: none !important;
}

.color-menu .app-sidebar.sidebar-scroll .main-sidebar-header {
	background: var(--primary-bg-color) !important;
}

.dark-menu .app-sidebar.sidebar-scroll .main-sidebar-header {
	background: var(--dark-theme) !important;
}

.gradient-menu .app-sidebar.sidebar-scroll .main-sidebar-header {
	background: linear-gradient(to right, var(--primary-bg-color) 0%, #0db2de 100%) !important;
}


/* Header logos and responsive logo behavior */
.responsive-logo {
	display: none;
}

.main-header-left .responsive-logo {
	margin-inline-start: 40px !important;
}

@media (max-width: 991px) {
	.responsive-logo img {
		height: 2rem;
		margin: 0 auto;
	}

	.responsive-logo .header-logo {
		display: block;
		margin: 0 auto;
		inset-inline-start: 0;
		inset-inline-end: 0;
		text-align: center;
		position: absolute;
		top: 14px;
	}

	.dark-theme .responsive-logo .header-logo .logo-1 {
		display: none;
	}

	.dark-theme .responsive-logo .header-logo .dark-logo-1 {
		display: block;
	}
}

.dark-logo-1 {
	display: none;
}

.horizontal.dark-theme .logo-1 {
	display: none !important;
}

.horizontal.dark-theme .dark-logo-1 {
	display: block !important;
}

@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none !important;
    }

    
}

@media (min-width: 768px) {
    .d-desktop-none {   display: none !important;
    }
}

@media (min-width: 992px) {
    .d-mobile-none {
        margin-right: 90px !important;
    }
}


/* Override existing mobile styles that hide search */
@media (max-width: 991px) {
    .main-header-left .form-control,
    .main-header-center .btn {
        display: block !important;
        
    }
    
    .main-header-center {
        display: none !important; /* Hide search box on mobile */
    }
}
@media (max-width: 991px) {
    .app.sidebar-gone.sidenav-toggled .app-sidebar{
        margin-top: -20px!important;
    }


}



/* Very small mobile devices */
@media (max-width: 375px) {
    .main-header {
        min-height: 40px;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-header .container-fluid {
        height: 40px;
        padding: 0 0.0625rem;
    }
    
    .main-header-left {
        gap: 0.0625rem;
    }
    
    .main-header-left .fe-align-left {
        margin-right: 0.0625rem;
        font-size: 0.8rem;
        min-width: 24px;
        min-height: 24px;
    }
    
    .responsive-logo {
        margin-right: 0.0625rem;
        max-width: 60px;
    }
    
    .responsive-logo .header-logo img {
        max-height: 18px;
    }
    
    .main-header-center {
        margin: 0 0.0625rem;
        display: none !important; /* Keep search hidden */
    }
    
    .main-header-center .form-control {
        font-size: 0.65rem;
        padding: 0.0625rem 0.25rem;
        height: 20px;
        display: none !important; /* Keep search hidden */
    }
    
    .main-header-right {
        gap: 0.0625rem;
    }
    
    .main-header-right > div {
        margin-right: 0.0625rem;
    }
    
    .main-header-right .nav-link {
        padding: 0.0625rem;
        font-size: 0.75rem;
        min-width: 24px;
        min-height: 24px;
    }
    
    .profile-user img {
        width: 20px;
        height: 20px;
    }
    
    .mobile-notification-btn {
        padding: 0.0625rem;
        font-size: 0.7rem;
        min-width: 24px;
        min-height: 24px;
    }
    
    .layout-setting {
        padding: 0.0625rem;
        min-width: 24px;
        min-height: 24px;
    }
    
    .layout-setting i {
        font-size: 0.75rem;
    }
    
    /* Notification dropdown adjustments */
    .centered-notification-icon .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: 350px !important;
        margin-top: 0.125rem !important;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1060 !important;
    }
}

/* Ultra small mobile devices - hide search */
@media (max-width: 320px) {
    .main-header {
        min-height: 35px;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        border-bottom: 1px solid #e9ecef;
        padding: 8px!important;
    }
    
    .main-header .container-fluid {
        height: 35px;
        padding: 0 0.0625rem;
    }
    
    .main-header-center {
        display: none !important;
    }
    
    .main-header-left {
        flex: 1;
        justify-content: flex-start;
    }
    
    .main-header-right {
        flex-shrink: 0;
        justify-content: flex-end;
    }
    
    .main-header-left .fe-align-left {
        font-size: 0.75rem;
        min-width: 20px;
        min-height: 20px;
    }
    
    .responsive-logo {
        max-width: 50px;
    }
    
    .responsive-logo .header-logo img {
        max-height: 16px;
    }
    
    .main-header-right .nav-link {
        font-size: 0.65rem;
        min-width: 18px;
        min-height: 18px;
    }
    
    .profile-user img {
        width: 16px;
        height: 16px;
    }
    
    .mobile-notification-btn {
        font-size: 0.6rem;
        min-width: 18px;
        min-height: 18px;
    }
    
    .layout-setting {
        min-width: 18px;
        min-height: 18px;
    }
    
    .layout-setting i {
        font-size: 0.65rem;
    }
    
    /* Notification dropdown adjustments */
    .centered-notification-icon .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: 350px !important;
        margin-top: 0.125rem !important;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1060 !important;
    }
}

/* Ensure search results are properly positioned on mobile */
@media (max-width: 767.98px) {
    #searchResults {
        position: fixed !important;
        top: 50px !important;
        left: 0.25rem !important;
        right: 0.25rem !important;
        width: auto !important;
        max-height: 50vh;
        overflow-y: auto;
        z-index: 9999;
    }
    
    #searchResults .list-group-item {
        padding: 0.375rem;
        font-size: 0.8rem;
    }
}

/* Ensure proper spacing for notification pulse */


/* Fix dropdown positioning for mobile */
@media (max-width: 767.98px) {
    .main-profile-menu .dropdown-menu {
        position: fixed !important;
        top: 50px !important;
        left: 0.25rem !important;
        right: 0.25rem !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* Additional mobile optimizations */
@media (max-width: 767.98px) {
    /* Ensure proper flex behavior */
    .main-header .container-fluid {
        align-items: center;

    }
    
    /* Prevent text overflow */
    .responsive-logo .header-logo {
        max-width: 100px;
        overflow: hidden;
    }
    
    /* Improve dropdown positioning */
    .dropdown-menu {
        margin-top: 0 !important;
    }
    
    /* Ensure all interactive elements are touch-friendly */
    .main-header a,
    .main-header button,
    .main-header .nav-link {
        touch-action: manipulation;
    }
}

/* Fix for very small screens - stack elements if needed */
@media (max-width: 280px) {
    .main-header .container-fluid {
        flex-direction: column;
        height: auto;
        min-height: 60px;
        padding: 0.25rem;
    }
    
    .main-header-left,
    .main-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-header-center {
        display: none !important;
    }
}




/* RTL specific adjustments for mobile */
@media (max-width: 767.98px) {
    .main-header-left {
        flex-direction: row;
    }
    
    .main-header-right {
        flex-direction: row;
    }
    
    /* Ensure proper RTL spacing */
    .me-3 {
        margin-left: 0.75rem !important;
        margin-right: 0 !important;
    }
    
    .ms-3 {
        margin-right: 0.75rem !important;
        margin-left: 0 !important;
    }
    
    .me-2 {
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
    }
    
    .ms-2 {
        margin-right: 0.5rem !important;
        margin-left: 0 !important;
    }
}
    .filter-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #6c757d;
        margin-bottom: 4px;
    }
    
    .filter-select {
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 6px 12px;
        font-size: 0.875rem;
        transition: border-color 0.15s ease-in-out;
        background-color: #fff;
    }
    
    .filter-select:focus {
        border-color:rgb(59, 137, 255);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
    
    .clear-filters-btn {
        border: 1px solid #6c757d;
        color: #6c757d;
        transition: all 0.15s ease-in-out;
        font-size: 0.875rem;
        padding: 6px 12px;
    }
    
    .clear-filters-btn:hover {
        background-color: #6c757d;
        border-color: #6c757d;
        color: white;
    }

    

    /* Sortable headers styling */
    .sortable {
        cursor: pointer;
        user-select: none;
        transition: all 0.2s ease;
        position: relative;
    }

    .sortable:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-1px);
    }

    .sortable:active {
        transform: translateY(0);
    }

    .sorted-header {
        background-color: rgba(255, 193, 7, 0.2) !important;
    }

    .sort-icon {
        transition: all 0.2s ease;
        opacity: 0.6;
    }

    .sortable:hover .sort-icon {
        opacity: 1;
        transform: scale(1.1);
    }

    .sorted-header .sort-icon {
        opacity: 1;
    }

    /* URL display improvements */
    .website-url-cell {
        max-width: 300px;
        word-wrap: break-word;
        word-break: break-all;
    }
    
    .website-url-link {
        font-size: 0.875rem;
        line-height: 1.4;
        color:rgb(48, 131, 255);
        text-decoration: none;
        display: block;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s ease;
        background-color: rgba(13, 110, 253, 0.05);
        border: 1px solid rgba(13, 110, 253, 0.1);
    }
    
    .website-url-link:hover {
        background-color: rgba(13, 110, 253, 0.1);
        border-color: rgba(13, 110, 253, 0.2);
        color: #0a58ca;
        text-decoration: none;
    }
    
    .website-url-text {
        word-break: break-all;
        hyphens: auto;
    }

    /* Sorting animation */
    tbody {
        transition: opacity 0.15s ease;
    }

    /* Badge improvements */
    .badge {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.025em;
    }

    /* Link styling */
    a {
        transition: all 0.2s ease;
    }

    a:hover {
        transform: translateY(-1px);
    }

    /* Button improvements */
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
    }

    .btn-sm:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
        .table-responsive {
            border-radius: 0.5rem;
        }
        
        .table thead th {
            font-size: 0.75rem;
            padding: 0.5rem 0.25rem;
        }
        
        .table tbody td {
            padding: 0.5rem 0.25rem;
            font-size: 0.875rem;
        }
        
        .badge {
            font-size: 0.65rem;
            padding: 0.25rem 0.5rem;
        }
        
        .btn-sm {
            padding: 0.2rem 0.4rem;
            font-size: 0.7rem;
        }
        
        .text-truncate {
            max-width: 120px !important;
        }
        
        /* Pagination mobile fixes */
        .pagination {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.25rem;
        }
        
        .pagination .page-link {
            padding: 0.375rem 0.5rem;
            font-size: 0.875rem;
            min-width: 2.5rem;
            text-align: center;
        }
        
        .pagination .page-item:not(.active) .page-link {
            margin: 0 0.125rem;
        }
        
        /* Hide some pagination numbers on very small screens */
        @media (max-width: 480px) {
            .pagination .page-item:not(.active):not(.prev):not(.next):not(:first-child):not(:last-child) {
                display: none;
            }
            
            .pagination .page-item.active {
                order: 1;
            }
            
            .pagination .page-item.prev {
                order: 0;
            }
            
            .pagination .page-item.next {
                order: 2;
            }
        }
        
        /* Ensure pagination text doesn't overflow */
        .pagination-info {
            word-wrap: break-word;
            hyphens: auto;
        }
        
        /* Additional mobile pagination improvements */
        @media (max-width: 576px) {
            .pagination {
                margin: 0;
                padding: 0;
            }
            
            .pagination .page-link {
                padding: 0.5rem 0.75rem;
                font-size: 0.9rem;
                border-radius: 0.375rem;
            }
            
            /* Ensure pagination container doesn't overflow */
            .pagination-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }
    }

    /* Loading animation for better UX */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .table tbody tr {
        animation: fadeIn 0.3s ease-out;
    }

    /* Print styles */
    @media print {
        .btn, .form-check-input, .sortable .sort-icon {
            display: none !important;
        }
        
        .table {
            font-size: 12px;
        }
        
        .badge {
            border: 1px solid #000;
            color: #000 !important;
            background: transparent !important;
        }
    }

    /* Ensure table rows stay in single line */
    .table tbody tr {
        height: 60px;
        white-space: nowrap;
    }
    
    .table tbody td {
        vertical-align: middle;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Specific column adjustments */
    .table tbody td:nth-child(2) { /* Customer name column */
        max-width: 180px;
        min-width: 150px;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .table tbody td:nth-child(4) { /* Website URL column */
        max-width: 200px;
    }
    
    /* Ensure badges don't wrap */
    .badge {
        white-space: nowrap;
        display: inline-block;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Ensure action buttons stay in line */
    .d-inline-flex {
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    /* Prevent text wrapping in cells */
    .text-truncate {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    /* Customer name specific styling */
    .table tbody td:nth-child(2) .d-inline-block {
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
    }
    
    .table tbody td:nth-child(2) .text-truncate {
        max-width: 80px;
        vertical-align: middle;
    }
    
    /* Ensure table is responsive but maintains single row */
    @media (max-width: 1200px) {
        .table-responsive {
            overflow-x: auto;
        }
        
        .table {
            min-width: 1200px; /* Ensure minimum width to prevent wrapping */
        }
    }

/* Tablet-specific fixes for theme switcher */
@media (min-width: 768px) and (max-width: 991px) {
    .layout-setting {
        position: relative !important;
        z-index: 1002 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }
    
    .layout-setting:hover {
        opacity: 0.8;
    }
    
    .layout-setting:active {
        transform: scale(0.95);
    }
    
    /* Ensure the button doesn't interfere with other elements */
    .main-header .layout-setting {
        margin: 0 !important;
        padding: 0.5rem !important;
        border: none !important;
        background: transparent !important;
        outline: none !important;
    }
    
    /* Prevent any default link behavior */
    .layout-setting[href="javascript:void(0);"] {
        text-decoration: none !important;
    }
}

/* Pagination Layout Fixes */
.pagination-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Center the entire pagination controls */
}

.pagination-controls .per-page-section {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: center; /* Center the entire per-page section */
}

.pagination-controls .per-page-section .form-label {
    margin-bottom: 0;
    font-weight: 500;
    color: #6c757d;
    margin-right: 0.5rem;
}

.pagination-controls .per-page-section .label-group {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the entire label group */
    gap: 0.5rem;
    margin-right: 0.5rem;
}





.pagination-controls .per-page-section .records-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0;
    margin-left: 0.75rem;
}

.pagination-controls .pagination-nav {
    align-self: center;
}

/* Responsive pagination layout */
@media (min-width: 768px) {
    .pagination-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .pagination-controls .per-page-section {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Enhanced Notification Panel Styles */
.notification-panel {
    position: absolute;
    top: 100%;
    right: -309px;
    width: 350px;
    max-height: 400px;
    background: var(--dark-body-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--dark-border-color, #141B2D);
    animation: notificationSlideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

/* Light Mode Styles */
[data-theme="light"] .notification-panel,
.light-theme .notification-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Dark Mode Styles */
[data-theme="dark"] .notification-panel,
.dark-theme .notification-panel {
    background: #141B2D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.notification-panel .notification-header {
    background: var(--primary);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.notification-panel .notification-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.notification-panel .notification-title {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.notification-panel .notification-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}



.notification-panel .notification-list {
    background: var(--dark-body-bg, #ffffff);
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    transition: background 0.3s ease;
}

/* Light Mode - Notification List */
[data-theme="light"] .notification-panel .notification-list,
.light-theme .notification-panel .notification-list {
    background: #ffffff;
}

/* Dark Mode - Notification List */
[data-theme="dark"] .notification-panel .notification-list,
.dark-theme .notification-panel .notification-list {
    background: #141B2D;
}

.notification-panel .notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--dark-border-color, rgba(0, 0, 0, 0.06));
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* Light Mode - Notification Items */
[data-theme="light"] .notification-panel .notification-item,
.light-theme .notification-panel .notification-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dark Mode - Notification Items */
[data-theme="dark"] .notification-panel .notification-item,
.dark-theme .notification-panel .notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-panel .notification-item:hover {
    background: var(--dark-hover-bg, rgba(102, 126, 234, 0.05));
    transform: translateX(-4px);
}

/* Light Mode - Hover Effects */
[data-theme="light"] .notification-panel .notification-item:hover,
.light-theme .notification-panel .notification-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Dark Mode - Hover Effects */
[data-theme="dark"] .notification-panel .notification-item:hover,
.dark-theme .notification-panel .notification-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

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

.notification-panel .notification-item.unread {
    background: var(--dark-unread-bg, rgba(102, 126, 234, 0.15));
    border-left: 4px solid var(--primary, #667eea);
}

.notification-panel .notification-item.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: notificationPulse 2s infinite;
}

.notification-panel .notification-icon {
    width: 40px;
    height: 40px;
    background: var(--primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-left: 12px;
    flex-shrink: 0;
}

.notification-panel .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-panel .notification-text {
    color: var(--dark-text-color, #2c3e50);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Light Mode - Text Colors */
[data-theme="light"] .notification-panel .notification-text,
.light-theme .notification-panel .notification-text {
    color: #2c3e50;
}

/* Dark Mode - Text Colors */
[data-theme="dark"] .notification-panel .notification-text,
.dark-theme .notification-panel .notification-text {
    color: #ffffff;
}

.notification-panel .notification-time {
    color: var(--dark-muted-text, #7f8c8d);
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Light Mode - Time Colors */
[data-theme="light"] .notification-panel .notification-time,
.light-theme .notification-panel .notification-time {
    color: #7f8c8d;
}

/* Dark Mode - Time Colors */
[data-theme="dark"] .notification-panel .notification-time,
.dark-theme .notification-panel .notification-time {
    color: rgba(255, 255, 255, 0.7);
}

.notification-panel .notification-footer {
    background: var(--primary);
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--dark-border-color, rgba(0, 0, 0, 0.08));
    transition: border-color 0.3s ease;
}

/* Light Mode - Footer Border */
[data-theme="light"] .notification-panel .notification-footer,
.light-theme .notification-panel .notification-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark Mode - Footer Border */
[data-theme="dark"] .notification-panel .notification-footer,
.dark-theme .notification-panel .notification-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-panel .view-all-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
}

.notification-panel .view-all-link:hover {
   
    transform: translateY(-1px);
}

.notification-panel .notification-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-muted-text, #95a5a6);
    transition: color 0.3s ease;
}

/* Light Mode - Placeholder */
[data-theme="light"] .notification-panel .notification-placeholder,
.light-theme .notification-panel .notification-placeholder {
    color: #95a5a6;
}

/* Dark Mode - Placeholder */
[data-theme="dark"] .notification-panel .notification-placeholder,
.dark-theme .notification-panel .notification-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.notification-panel .notification-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--dark-muted-text, rgba(255, 255, 255, 0.6));
}

.notification-panel .notification-placeholder .placeholder-text {
    font-size: 14px;
    color: var(--dark-muted-text, rgba(255, 255, 255, 0.6));
}

/* Notification animations */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notificationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Custom notification bell styles */
.notification-bell {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-bell .notification-indicator {
    position: absolute;
    top: 4px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(94, 231, 60);
    box-shadow: 0 0 0 2px rgba(60, 231, 74, 0.3);
    animation: customPulse 2s infinite;
    z-index: 10;
}

@keyframes customPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 231, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Responsive notification panel */
@media (max-width: 768px) {
    .notification-panel {
        right: -200px;
        width: 300px;
        max-height: 350px;
    }
    
    .notification-panel .notification-header {
        padding: 16px;
    }
    
    .notification-panel .notification-item {
        padding: 12px 16px;
    }
    
    .notification-panel .notification-footer {
        padding: 12px;
    }
}

/* Force Active Menu to be White */
.side-menu__item.active,
.side-menu__item.active .side-menu__label,
.side-menu__item.active .side-menu__icon,
.side-menu__item.active i,
.side-menu__item.active .angle,
.side-menu__item.bg-primary,
.side-menu__item.bg-primary .side-menu__label,
.side-menu__item.bg-primary .side-menu__icon,
.side-menu__item.bg-primary i,
.side-menu__item.bg-primary .angle {
    color: #ffffff !important;
}

/* Dark theme active menu - ensure white text */
.dark-theme .side-menu__item.active,
.dark-theme .side-menu__item.active .side-menu__label,
.dark-theme .side-menu__item.active .side-menu__icon,
.dark-theme .side-menu__item.active i,
.dark-theme .side-menu__item.active .angle,
.dark-theme .side-menu__item.bg-primary,
.dark-theme .side-menu__item.bg-primary .side-menu__label,
.dark-theme .side-menu__item.bg-primary .side-menu__icon,
.dark-theme .side-menu__item.bg-primary i,
.dark-theme .side-menu__item.bg-primary .angle {
    color: #ffffff !important;
}

/* Light theme active menu - ensure white text */
.light-theme .side-menu__item.active,
.light-theme .side-menu__item.active .side-menu__label,
.light-theme .side-menu__item.active .side-menu__icon,
.light-theme .side-menu__item.active i,
.light-theme .side-menu__item.active .angle,
.light-theme .side-menu__item.bg-primary,
.light-theme .side-menu__item.bg-primary .side-menu__label,
.light-theme .side-menu__item.bg-primary .side-menu__icon,
.light-theme .side-menu__item.bg-primary i,
.light-theme .side-menu__item.bg-primary .angle {
    color: #ffffff !important;
}

/* Hover Effects - Icons in Primary Color */
.side-menu__item:hover .side-menu__icon,
.side-menu__item:hover i,
.side-menu__item:hover .angle {
    color: var(--primary, #0d6efd) !important;
    transition: color 0.3s ease;
}

/* Dark theme hover effects */
.dark-theme .side-menu__item:hover .side-menu__icon,
.dark-theme .side-menu__item:hover i,
.dark-theme .side-menu__item:hover .angle {
    color: var(--primary, #0d6efd) !important;
}

/* Light theme hover effects */
.light-theme .side-menu__item:hover .side-menu__icon,
.light-theme .side-menu__item:hover i,
.light-theme .side-menu__item:hover .angle {
    color: var(--primary, #0d6efd) !important;
}

/* Alternative pagination layout for better Arabic text handling */
.pagination-controls-alt {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.pagination-controls-alt .per-page-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pagination-controls-alt .per-page-section .label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-controls-alt .per-page-section .records-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 767px) {
    .pagination-controls-alt {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pagination-controls-alt .pagination-nav {
        justify-self: center;
    }
}
