﻿/* ==================================================================================== */
/* ================================= CSS STYLE GUIDE ================================== */
/* ==================================================================================== */
/*
  This stylesheet follows enterprise-grade CSS architecture principles:
  
  1. ORGANIZATION:
    - Styles are grouped by component/functionality
    - Each section is clearly marked with start/end comments
    - Related styles are kept together
  
  2. NAMING CONVENTIONS:
    - BEM-like naming for complex components
    - Semantic class names that describe purpose
    - Consistent naming patterns
  
  3. MAINTAINABILITY:
    - Heavy commenting for all major sections
    - Clear section headers
    - Consistent formatting
    - Logical grouping
  
  4. PERFORMANCE:
    - Efficient selectors
    - Minimal redundancy
    - Optimized properties
  
  5. SCALABILITY:
    - Modular structure
    - Reusable components
    - Clear dependencies
*/

/* ==================================================================================== */
/* ================================= START OF GLOBAL STYLES =========================== */
/* ==================================================================================== */
/* Character encoding declaration */
@charset "UTF-8";
/* Import Google Fonts - Tajawal for Arabic and Outfit for English */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600&display=swap");
/* Universal reset and base styles */
* {
    /* Set default font family */
    font-family: "Tajawal", sans-serif;
    /* Remove default padding */
    padding: 0;
}

#historyTable_length {
    margin-bottom: -10px !important;
}
/* Text selection styling */
*::selection {
    /* Dark red background for selected text */
    background-color: #bc2518 !important;
    /* White text for contrast */
    color: white !important;
}

/* ====================================================================================== */
/* GLOBAL TABLE HEADER ALIGNMENT STYLES */
/* ====================================================================================== */

/* Global table header alignment - applies to all th elements across the application */
th {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Ensure DataTables headers are also aligned */
table.dataTable thead th,
table.dataTable thead td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Bootstrap table headers alignment */
.table th,
.table thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Responsive table headers alignment */
.table-responsive th,
.table-responsive thead th {
    text-align: center !important;
    vertical-align: middle !important;
}

/* ====================================================================================== */
/* DATATABLE LENGTH DROPDOWN STYLING */
/* ====================================================================================== */

/* Center align and add borders to DataTable length dropdown for report tables */
.report-page #reportTable_length select,
#reportTable_length select {
    text-align: center !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    padding: 4px 25px 4px 8px !important;
    margin-left: 5px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
}

    /* Rotate arrow to the right when dropdown is opened */
    .report-page #reportTable_length select:focus,
    #reportTable_length select:focus {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' transform='rotate(90)'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    }

/* Role page DataTable length dropdown styling - Arabic arrow on left, no rotation */
#rolesTable_length select {
    text-align: center !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    padding: 4px 8px 4px 25px !important;
    margin-left: 5px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 8px center !important;
    background-size: 12px !important;
    direction: rtl !important;
    float: left !important;
}

    /* Remove focus arrow rotation for role table - keep same arrow */
    #rolesTable_length select:focus {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    }

    /* Center align dropdown options and add borders for role table */
    #rolesTable_length select option {
        text-align: center !important;
        border: 1px solid #ddd !important;
        padding: 5px 10px !important;
        background-color: white !important;
    }

/* Position the entire length container on the left for role table */
#rolesTable_length {
    text-align: left !important;
    float: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 10px;
}

    #rolesTable_length label {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        width: auto !important;
    }

/* Center align dropdown options and remove borders */
.report-page #reportTable_length select option,
#reportTable_length select option {
    text-align: center !important;
    /* border: none !important; */
    padding: 5px 10px !important;
    background-color: white !important;
}

/* Center the entire length container */
.report-page #reportTable_length,
#reportTable_length {
    text-align: center !important;
}

    .report-page #reportTable_length label,
    #reportTable_length label {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

/* Apply same styling to other report tables if needed */
.report-page select[id$="_length"] select,
select[id$="_length"] select {
    text-align: center !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* ====================================================================================== */

/* HTML root element styles */
html {
    /* Base font size for rem calculations */
    font-size: 14px;
    /* Positioning context */
    position: relative;
    /* Minimum height of viewport */
    min-height: 100%;
}

/* Medium screen responsive adjustments */
@media (min-width: 768px) {
    html {
        /* Increase base font size */
        font-size: 16px;
    }
}

/* Anchor/link styles */
a {
    /* Inherit color from parent */
    color: inherit;
    /* Remove underline */
    text-decoration: none;
}

/* ==================================================================================== */
/* ================================= END OF GLOBAL STYLES ============================= */
/* ==================================================================================== */
/* ==================================================================================== */
/* ================================= START OF TYPOGRAPHY ============================== */
/* ==================================================================================== */
/* Muted text - secondary content */
.text-muted {
    color: #6c757d !important;
}

/* Primary colored text */
.text-primary {
    color: #931c11 !important;
}

/* Danger/error colored text */
.text-danger {
    color: #931c11 !important;
}

.text-white {
    color: white;
}
/* Bold text with custom color */
.fw-bold {
    color: #931c11;
}

/* Page title styling */
.page-title {
    color: black;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Header title styling */
.header-title {
    color: #931c11;
    font-weight: 600;
    margin: 0;
}

/* Section title styling */
.section-title {
    color: #931c11;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #931c11;
}

.bg-danger {
    background-color: #931c11 !important;
}

.bg-opacity-10 {
    background-color: rgba(147, 28, 17, 0.1) !important;
}
/* ==================================================================================== */
/* ================================= END OF TYPOGRAPHY ================================ */
/* ==================================================================================== */



/*===================================================================================== */
/*================================= START OF PASSWORD METER STYLES ==================== */
/*===================================================================================== */
/* Password Strength Meter Styles */
.password-strength-container {
    width: 100%;
}

.password-strength-meter {
    height: 5px;
    width: 70%;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .password-strength-meter.weak {
        background-color: #dc3545;
        width: 25%;
    }

    .password-strength-meter.medium {
        background-color: #fd7e14;
        width: 50%;
    }

    .password-strength-meter.strong {
        background-color: #28a745;
        width: 75%;
    }

    .password-strength-meter.very-strong {
        background-color: #20c997;
        width: 100%;
    }

.password-strength-text {
    font-weight: 500;
    font-size: 0.75rem;
}

    .password-strength-text.weak {
        color: #dc3545;
    }

    .password-strength-text.medium {
        color: #fd7e14;
    }

    .password-strength-text.strong {
        color: #28a745;
    }

    .password-strength-text.very-strong {
        color: #20c997;
    }

/*===================================================================================== */
/*================================= END OF PASSWORD METER STYLES ==================== */
/*===================================================================================== */

/* ==================================================================================== */
/* ================================= START OF BUTTON STYLES =========================== */
/* ==================================================================================== */

/* Base button and form control styles */
.btn {
    width: 130px;
    height: 25px;
    font-size: 7px;
}

.btn,
.form-select,
input[type="date"] {
    padding: 4px 8px !important;
    font-size: 13px;
}

    /* Focus states for interactive elements */
    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

/* Add user button - primary action */
.btn-add-user {
    background-color: #931c11;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    /* Add user button hover state */
    .btn-add-user:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(2, 192, 206, 0.2);
    }

/* Outline danger button - custom properties */
.btn-outline-danger {
    --highdmin-btn-color: #931c11 !important;
    --highdmin-btn-border-color: #931c11 !important;
    --highdmin-btn-hover-color: #fff !important;
    --highdmin-btn-hover-bg: #931c11 !important;
    --highdmin-btn-hover-border-color: #931c11 !important;
    --highdmin-btn-focus-shadow-rgb: 147, 28, 17 !important;
    --highdmin-btn-active-color: #fff !important;
    --highdmin-btn-active-bg: #7a180e !important;
    --highdmin-btn-active-border-color: #7a180e !important;
    --highdmin-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --highdmin-btn-disabled-color: #931c11 !important;
    --highdmin-btn-disabled-bg: transparent !important;
    --highdmin-btn-disabled-border-color: #931c11 !important;
    --highdmin-gradient: none !important;
}

/* Solid danger button - custom properties */
.btn-danger {
    --highdmin-btn-color: #fff !important;
    --highdmin-btn-bg: #931c11 !important;
    --highdmin-btn-border-color: #931c11 !important;
    --highdmin-btn-hover-color: #fff !important;
    --highdmin-btn-hover-bg: #7a180e !important;
    --highdmin-btn-hover-border-color: #7a180e !important;
    --highdmin-btn-focus-shadow-rgb: 147, 28, 17 !important;
    --highdmin-btn-active-color: #fff !important;
    --highdmin-btn-active-bg: #5f130b !important;
    --highdmin-btn-active-border-color: #5f130b !important;
    --highdmin-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --highdmin-btn-disabled-color: #fff !important;
    --highdmin-btn-disabled-bg: #931c11 !important;
    --highdmin-btn-disabled-border-color: #931c11 !important;
}

/* Success button with soft background */
.btn-soft-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-color: transparent;
}

/* Primary button with soft background */
.btn-soft-primary {
    color: #931c11;
    background-color: rgba(147, 28, 17, 0.1);
    border-color: transparent;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

    .btn-soft-primary:hover {
        background-color: rgba(0, 123, 255, 0.1);
        /* Soft transparent blue */
        color: #007bff;
        /* Primary text color */
        border: 1px solid rgba(0, 123, 255, 0.2);
        /* Optional soft border */
    }

/* Danger button with soft background */
.btn-soft-danger {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: transparent;
}
/* Warning button with soft background */
.btn-soft-warning {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
    border-color: transparent;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

    .btn-soft-warning:hover {
        background-color: #ffc107;
        color: white;
    }

/* Button styles */
.btn-outline-primary {
    border: 1px solid #931c11;
    color: #931c11;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
    /* Outline primary button hover state */
    .btn-outline-primary:hover {
        background-color: #931c11;
        color: white;
    }
/* Primary button */
.btn-primary {
    background-color: #931c11;
    border-color: #931c11;
}

    /* Primary button hover state */
    .btn-primary:hover {
        background-color: #7a180e;
        border-color: #7a180e;
    }

/* Modal button base styles */
.btn-modal {
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

/* Primary modal button */
.btn-modal-primary {
    background-color: #931c11;
    color: white;
}

    /* Primary modal button hover state */
    .btn-modal-primary:hover {
        background-color: #7a180e;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(147, 28, 17, 0.2);
        color: white;
    }

/* Secondary modal button */
.btn-modal-secondary {
    background-color: #ffffff;
    color: #6c757d;
}

/* Print action button */
.btn-print {
    background-color: #931c11;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    /* Print button hover state */
    .btn-print:hover {
        background-color: #7a180e;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(147, 28, 17, 0.2);
    }

/* Graph action button */
.btn-graph {
    background-color: #931c11;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    /* Graph button hover state */
    .btn-graph:hover {
        background-color: #7a180e;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(147, 28, 17, 0.2);
    }

/* Graph icon button */
.btn-graph-icon {
    background-color: #931c11;
    color: white;
    border: 1px solid rgba(147, 28, 17, 0.3);
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Graph icon button hover state */
    .btn-graph-icon:hover {
        background-color: #931c11;
        color: white;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(147, 28, 17, 0.3);
    }

    /* Graph icon size */
    .btn-graph-icon i {
        font-size: 14px;
    }

/* Loading state button */
.btn-loading {
    position: relative;
    pointer-events: none;
}

    /* Loading spinner animation */
    .btn-loading:after {
        content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
        margin-right: 8px;
        vertical-align: middle;
    }

/* Circular delete button */
.btn-delete-circle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f8d7da;
    background-color: #fdf0f0;
    transition: all 0.3s ease;
}

.btn-soft-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-color: rgba(23, 162, 184, 0.2);
}

    .btn-soft-info:hover {
        background-color: #17a2b8;
        color: white;
    }
/* Delete icon styling */
.delete-icon {
    font-size: 14px;
    color: #931c11;
    transition: inherit;
}

/* Soft danger button hover state */
.btn-soft-danger:hover {
    background-color: #f8d7da !important;
    border-color: #931c11 !important;
}

    /* Soft danger button icon hover state */
    .btn-soft-danger:hover i {
        color: #721c24 !important;
        transform: scale(1.1);
    }

/* Custom close button for modal headers */
.modal-header .btn-close-white-custom {
    filter: invert(1) brightness(2) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

    /* Close button hover state */
    .modal-header .btn-close-white-custom:hover {
        opacity: 0.8 !important;
        transform: scale(1.1);
    }

/* Custom primary button variant */
.btn-primary-custom {
    background-color: #931c11;
    border-color: #931c11;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white !important;
}

    /* Custom primary button hover state */
    .btn-primary-custom:hover {
        background-color: #992121;
        border-color: #7a180e;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(147, 28, 17, 0.3);
    }

/* Custom outline button */
.btn-outline-custom {
    border: 2px solid #931c11;
    color: #931c11;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

    /* Custom outline button hover state */
    .btn-outline-custom:hover {
        background-color: #992121;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(147, 28, 17, 0.2);
    }

.btn-modal-toggle {
    color: #931c11;
    border-color: #931c11;
    background-color: transparent;
}

    .btn-modal-toggle:hover {
        color: #fff;
        background-color: #931c11;
    }

    .btn-modal-toggle:focus {
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }

.filter-btn {
    background-color: var(--card-bg);
    border: 1px solid #931c11;
    color: #931c11;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

    .filter-btn:hover {
        background-color: #931c11;
        color: white;
    }
/* ==================================================================================== */
/* ================================= END OF BUTTON STYLES ============================= */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF FORM STYLES ============================= */
/* ==================================================================================== */

/* Form label styling */
.form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

/* Form control base styles */
.form-control,
.form-select {
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #212529;
    width: 100%;
    box-sizing: border-box !important;
}

    /* Form control focus state */
    .form-control:focus,
    .form-select:focus {
        border-color: #931c11;
        box-shadow: 0 0 0 0.2rem rgba(147, 28, 17, 0.25);
    }

/* Input group text styling */
.input-group-text {
    background-color: rgba(147, 28, 17, 0.1);
    color: #931c11;
    border-color: #dee2e6;
}

/* Form validation message styling */
.validation-message {
    color: #931c11;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

/* Custom checkbox styling */
.custom-checkbox {
    width: 1.2em;
    height: 1.2em;
    margin-left: 0.5em;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #931c11;
    border-radius: 0.25em;
    outline: none;
    cursor: pointer;
    position: relative;
}

    /* Custom checkbox checked state */
    .custom-checkbox:checked {
        background-color: #931c11;
        border-color: #931c11;
    }

        /* Custom checkbox checkmark */
        .custom-checkbox:checked::before {
            content: "✓";
            position: absolute;
            color: white;
            font-size: 0.9em;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    /* Custom checkbox focus state */
    .custom-checkbox:focus {
        box-shadow: 0 0 0 0.2rem rgba(147, 28, 17, 0.25); /* Changed rgba values */
    }

.custom-checkbox-box {
    direction: rtl !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease-in-out !important;
}

    .custom-checkbox-box:hover {
        transform: translateX(-4px) !important;
    }

.form-check-input:checked {
    background-color: #931c11 !important;
    border-color: #931c11 !important;
}

.delete-option-shadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.styled-checkbox {
    width: 1.2em;
    height: 1.2em;
    accent-color: #931c11;
    cursor: pointer;
    flex-shrink: 0;
}

.twofa-title {
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-all-centers {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

    .select-all-centers:hover {
        background-color: #e9ecef;
    }
/* ==================================================================================== */
/* ================================= END OF FORM STYLES =============================== */
/* ==================================================================================== */

/* ======================================================================================== */
/* ================================= START OF PAGINATION STYLES =========================== */
/* ======================================================================================== */
/* Pagination styles - RTL support */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    gap: 8px;
    padding: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: #000; /* Black text for all items */
    background-color: #fff; /* White background by default */
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .page-link:hover {
        background-color: #f5f5f5;
        border-color: #ddd;
    }

/* Active page styling */
.page-item.active .page-link {
    color: #fff !important;
    background-color: #992121 !important; /* Dark red for active page */
    border-color: #992121 !important;
}

/* Previous/Next buttons */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    color: #000; /* Black arrows */
    background-color: #fff; /* White background */
}

/* Disabled state */
.page-item.disabled .page-link {
    color: #999 !important;
    background-color: #fff !important;
    border-color: #ddd !important;
    pointer-events: none;
}

/* Arrow icons */
.page-link i {
    font-size: 14px;
}
/* ====================================================================================== */
/* ================================= END OF PAGINATION STYLES =========================== */
/* ====================================================================================== */

/* ==================================================================================== */
/* ================================= START OF AVATAR STYLES =========================== */
/* ==================================================================================== */
/* Modal avatar styling */
.avatar-lg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .avatar-lg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #931c11;
    }

.avatar-modal {
    background-color: #ffffff1a !important;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

    /* Modal avatar hover state */
    .avatar-modal:hover {
        background-color: #ffffff33 !important;
    }

    .avatar-modal i {
        font-size: 16px;
    }

/* Extra small avatar */
.avatar-xs {
    width: 36px;
    height: 40px;
    font-size: 16px;
}

/* Avatar with title/initials */
.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(147, 28, 17, 0.1);
    color: #931c11;
    transition: all 0.3s ease !important;
}

    .avatar-title i {
        font-size: 16px;
    }
/* User avatar styling */
.user-avatar {
    width: 30px;
    height: 30px;
    background-color: rgba(147, 28, 17, 0.1); /* Changed rgba values */
    color: #931c11;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

    /* User avatar icon */
    .user-avatar i {
        color: #931c11;
    }
/* Profile Picture Styles */
.profile-pic-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pic-holder {
    text-align: center;
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

    .pic-holder .pic {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #931c11;
        position: absolute;
    }

    .pic-holder .upload-file-block {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        color: #f8f9fa;
        font-size: 12px;
        font-weight: 600;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        cursor: pointer;
        border-radius: 50%;
    }

    .pic-holder img:not([src*="default-user.png"]) + input + .upload-file-block {
        opacity: 0;
    }

    .pic-holder:hover
    img:not([src*="default-user.png"]) + input + .upload-file-block {
        opacity: 0.8;
    }

    .pic-holder i {
        color: white;
    }
/* ==================================================================================== */
/* ================================== END OF AVATAR STYLES ============================ */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF BADGE STYLES ============================ */
/* ==================================================================================== */

/* Base badge styling */
.badge {
    background-color: rgba(147, 28, 17, 0.1);
    color: #931c11;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

    /* Secondary badge variant */
    .badge.bg-secondary {
        background-color: #02c0ce !important;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
    }

/* Records count box */
.records-count-box {
    padding: 5px 8px;
}

/* Role badge styling */
.badge-role {
    background-color: rgba(147, 28, 17, 0.1);
    color: #931c11;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* User badge styling */
.user-badge {
    display: inline-flex !important;
    align-items: center !important;
    background-color: rgba(147, 28, 17, 0.1) !important;
    color: #931c11 !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    gap: 8px !important;
    border: 1px solid rgba(147, 28, 17, 0.3) !important;
    transition: all 0.3s ease !important;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.stat-card,
.services-card,
.users-card {
    border-radius: 10px;
    border: 1px solid #eee;
    height: 100%;
}

    .stat-card .card-header,
    .services-card .card-header,
    .users-card .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #eee;
        padding: 12px 15px;
        font-weight: 600;
    }
/* Statistic badge base */
.stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Primary stat badge */
.stat-primary {
    background-color: rgba( 147, 28, 17, 0.1 ); /* Changed from rgba(231, 76, 60, 0.1) */
    color: #931c11; /* Changed from #e74c3c to #931c11 */
}

/* Success stat badge */
.stat-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Warning stat badge */
.stat-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.deleted-badge {
    background-color: #931c11 !important;
    color: white !important;
}

/* ==================================================================================== */
/* ================================= END OF BADGE STYLES ============================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF MODAL STYLES ============================ */
/* ==================================================================================== */

/* Modal base styles */
.modal {
    transition: all 0.4s ease;
}

    /* Modal fade animation */
    .modal.fade .modal-dialog {
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }

    /* Modal show state */
    .modal.show .modal-dialog {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

/* Modal content container */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
/* Modal header styling */
.modal-header {
    background-color: #931c11 !important;
    padding: 18px 25px;
    color: white;
    border-bottom: none;
}

/* Modal title styling */
.modal-title {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

    /* Modal title icon */
    .modal-title i {
        font-size: 1.5rem;
    }

/* Modal body content area */
.modal-body {
    padding: 25px;
    background-color: #ffffff;
}

/* Modal footer area */
.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 25px;
    background-color: #ffffff;
}

/* Section header within modals */
.modal-section-header {
    font-weight: 600;
    color: #931c11; /* Changed from #e74c3c to #931c11 */
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User details modal sizing */
#userDetailsModal .modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

/* User details modal content layout */
#userDetailsModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* User details modal scrollable area */
#userDetailsModal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem;
}
/* Role Details Modal Styles - Improved to match the second code */
#roleDetailsModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white;
    border-radius: 0.8rem;
    overflow: hidden;
}

#roleDetailsModal .modal-header {
    background-color: #931c11 !important;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
    color: #495057;
    position: relative;
}

.modal-header {
    background-color: #931c11 !important;
    padding: 18px 25px;
    color: white;
}

#roleDetailsModal .modal-title {
    color: #212529;
    font-weight: 700;
    font-size: 1.5rem;
}

#roleDetailsModal .modal-body {
    padding: 2rem;
    background-color: white;
}

#roleDetailsModal .modal-footer {
    padding: 1.5rem;
}

#roleDetailsModal .modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

#roleDetailsModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#roleDetailsModal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 2rem;
}

/* Detail Items Styling */
#roleDetailsModal .detail-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.6rem;
    border-left: 4px solid #dc3545;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid #e9ecef;
}

    #roleDetailsModal .detail-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

#roleDetailsModal .detail-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

    #roleDetailsModal .detail-label i {
        margin-left: 0.5rem;
        color: #6c757d;
        font-size: 1rem;
    }

#roleDetailsModal .detail-value {
    color: #212529;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

/* Status Badges */
#roleDetailsModal .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
}

    #roleDetailsModal .status-badge.active {
        background-color: rgba(25, 135, 84, 0.1);
        color: #198754;
        border: 1px solid rgba(25, 135, 84, 0.2);
    }

    #roleDetailsModal .status-badge.deleted {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.2);
    }

/* Role ID Badge */
#roleDetailsModal .role-id-badge {
    background: #931c11;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
}

/* Action Buttons */
#roleDetailsModal .modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    #roleDetailsModal .modal-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

    #roleDetailsModal .modal-actions .btn-outline-warning {
        color: #ffc107;
        border-color: #ffc107;
    }

        #roleDetailsModal .modal-actions .btn-outline-warning:hover {
            background-color: #ffc107;
            color: #212529;
        }

    #roleDetailsModal .modal-actions .btn-outline-success {
        color: #198754;
        border-color: #198754;
    }

        #roleDetailsModal .modal-actions .btn-outline-success:hover {
            background-color: #198754;
            color: white;
        }

    #roleDetailsModal .modal-actions .btn-outline-danger {
        color: #dc3545;
        border-color: #dc3545;
    }

        #roleDetailsModal .modal-actions .btn-outline-danger:hover {
            background-color: #dc3545;
            color: white;
        }

/* Close Button */
#roleDetailsModal .close-btn {
    background: #931c11;
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    #roleDetailsModal .close-btn:hover {
        background: #c82333;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }

.centers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.center-count-badge {
    background-color: #931c11;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
}

/* New styles for the requested changes */
#servicesTable tbody tr {
    cursor: pointer;
}

.session-filter-btn {
    background-color: #931c11;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .session-filter-btn:hover {
        background-color: #7a180f;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .session-filter-btn.active {
        background-color: #6c757d;
    }

.modal-details-body::-webkit-scrollbar {
    width: 8px;
}

.modal-details-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-details-body::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 10px;
}

    .modal-details-body::-webkit-scrollbar-thumb:hover {
        background: #7a180f;
    }

.modal-details-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}
/* ==================================================================================== */
/* ================================= END OF MODAL STYLES ============================== */
/* ==================================================================================== */

/* ============================================================================================== */
/* ================================= START OF MANAGE CLAIMS STYLES ============================== */
/* ============================================================================================== */
.card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

    .card-header h3 {
        margin: 0;
        font-size: 1rem;
        color: #212529;
        font-weight: 500;
        flex-grow: 1;
    }

.modern-claims-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

    .modern-claims-header h2 {
        margin: 0;
        color: #212529;
        font-weight: 600;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
    }

        .modern-claims-header h2 i {
            color: #931c11;
            margin-left: 10px;
            font-size: 1.2rem;
        }

.header-actions {
    display: flex;
    gap: 12px;
}

.modern-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

    .modern-btn i {
        font-size: 0.9rem;
    }

    .modern-btn.primary {
        background: #931c11;
        color: white;
    }

        .modern-btn.primary:hover {
            background: #c0392b;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
        }

    .modern-btn.secondary {
        background: #ffffff;
        color: #212529;
        border: 1px solid #e0e0e0;
    }

        .modern-btn.secondary:hover {
            background: #e0e0e0;
        }

.claims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.claims-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.claims-list {
    padding: 10px 15px;
    max-height: 300px;
    overflow-y: auto;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 10px 10px 35px;
    margin-bottom: 8px;
    cursor: pointer;
    color: #212529;
    border-radius: 6px;
    transition: background 0.2s;
    user-select: none;
}

    .modern-checkbox:hover {
        background: #b0b0b0;
    }

    .modern-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .modern-checkbox .checkmark {
        position: absolute;
        left: 10px;
        height: 18px;
        width: 18px;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        transition: all 0.2s;
    }

    .modern-checkbox:hover .checkmark {
        border-color: #b0b0b0;
    }

    .modern-checkbox input:checked ~ .checkmark {
        background-color: #931c11;
        border-color: #931c11;
    }

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modern-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.claim-label {
    font-size: 0.9rem;
}

/* Scrollbar styling */
.claims-list::-webkit-scrollbar {
    width: 6px;
}

.claims-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.claims-list::-webkit-scrollbar-thumb {
    background: #f1f1f1;
    border-radius: 10px;
}

    .claims-list::-webkit-scrollbar-thumb:hover {
        background: #931c11;
    }

@media (max-width: 768px) {
    .claims-grid {
        grid-template-columns: 1fr;
    }

    .modern-claims-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
/* ============================================================================================== */
/* ================================= END OF MANAGE CLAIMS STYLES ============================== */
/* ============================================================================================== */

/* ==================================================================================== */
/* ================================= START OF CARD STYLES ============================= */
/* ==================================================================================== */

/* Base card styling */
.card {
    /* Remove default borders */
    border: none;
    /* Rounded corners */
    border-radius: 8px;
    /* Subtle shadow for depth */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* White background */
    background-color: #ffffff;
    /* Smooth transition for hover effects */
    transition: all 0.3s ease;
    /* Compact padding variant */
    padding: 10px;
}

/* Card header styling */
.card-header {
    background-color: #ffffff;
    border-bottom: 2px solid #931c11; /* Changed from #e74c3c to #931c11 */
    padding: 15px 20px;
    border-radius: 8px 8px 0 0 !important;
}

/* Card body content area */
.card-body {
    max-height: 250px;
    overflow-y: auto;
    padding: 20px;
}

/* History card variant */
.card-history {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* History card header */
.card-header-history {
    background-color: #ffffff;
    border-bottom: 2px solid #931c11; /* Changed from #e74c3c to #931c11 */
    padding: 15px 20px;
}

/* Statistics card styling */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    border-top: 3px solid #02c0ce;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background-color: #ffffff;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* User card layout */
.user-card {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Center card variant */
.center-card {
    background-color: rgba(147, 28, 17, 0.05); /* Changed rgba values */
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 3px solid #931c11; /* Changed from #e74c3c to #931c11 */
    transition: all 0.3s ease;
}

/* Session card styling */
.session-card {
    border-left: 3px solid #931c11;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Login wallpaper background */
.login-wallpaper {
    background-image: url("../assets/images/login-wallpaper.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 1;
}

/* Glass effect container for login */
.login-container-glass {
    background-color: red; /* Solid background */
    border-radius: 16px;
    border: none; /* Remove translucent border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Strong drop shadow */
    z-index: 3;
}


/* Filter wallpaper background */
.filter-wallpaper {
    background-image: url("../assets/filter-background.jpeg");
    background-size: cover;
}

/* Filter image background */
.filterImg {
    background-image: url("../assets/side-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Bordered filter element */
.filter-bordered {
    border: solid !important;
    border-color: #992121 !important;
    border-width: 1px !important;
}

/* ==================================================================================== */
/* ================================= END OF CARD STYLES =============================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF LOADING STYLES ========================== */
/* ==================================================================================== */

/* Page loading indicator bar */
.hyper-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    overflow: hidden;
    background: rgba(147, 28, 17, 0.1); /* خلفية شبه شفافة حمراء */
}

    /* شريط التحميل المتحرك */
    .hyper-loader::before {
        content: "";
        position: absolute;
        left: 0;
        width: 30%;
        height: 100%;
        background: linear-gradient( 90deg, #ff5e62,
        /* أحمر فاتح */ #c0392b,
        /* أحمر متوسط */ #931c11,
        /* أحمر داكن */ #64120c ); /* أحمر داكن جداً */
        animation: hyper-loop 1.5s ease-in-out infinite;
        box-shadow: 0 0 15px rgba(255, 94, 98, 0.7);
        border-radius: 0 3px 3px 0;
    }

    /* تأثير اللمعة المتحركة */
    .hyper-loader::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 25px;
        height: 100%;
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0), rgba(255, 200, 200, 0.8), rgba(255, 255, 255, 0) );
        animation: hyper-shine 1.5s ease-in-out infinite;
        filter: blur(2px);
    }

/* حركة الشريط الرئيسي */
@keyframes hyper-loop {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(330%);
    }
}

/* حركة اللمعة */
@keyframes hyper-shine {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(500%);
    }
}

/* Full page loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 9998;
    display: none;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(147, 28, 17, 0.2); /* Changed rgba values */
    border-radius: 50%;
    border-top-color: #931c11; /* Changed from #e74c3c to #931c11 */
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

/* Loading backdrop overlay */
.ha-loading-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--bs-body-font-family);
}

    /* Loading spinner size */
    .ha-loading-backdrop .spinner-border {
        width: 3rem;
        height: 3rem;
        color: #02c0ce !important;
    }

/* Loading spinner container */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ==================================================================================== */
/* ================================= END OF LOADING STYLES ============================ */
/* ==================================================================================== */

/* ==================================================================================== */
/* ============================ START OF SIDEBAR STYLES =============================== */
/* ==================================================================================== */

/* Side navigation menu */
.sidenav-menu {
    box-shadow: -1px 0px 30px rgba(0, 0, 0, 0.4) !important;
    z-index: 1;
    width: 250px;
}

/* Side navigation item */
.side-nav-item {
    padding: 0 !important;
}

/* Side navigation link */
.side-nav-link {
    padding-block: 18px !important;
    padding-right: 20px !important;
}

    /* Active side navigation link */
    .side-nav-link.active {
        color: #992121;
    }

    /* Side navigation link hover state */
    .side-nav-link:hover {
        width: 100%;
        background-color: #f2f2f2;
        transition: background 0.5s ease-out;
    }

/* Side navigation link focus state */
.side-nav-item .side-nav-link:focus {
    box-shadow: 0 0 0 5px rgba(153, 33, 33, 0.25); /* Changed rgba values */
}

/* Active side navigation item */
.side-nav-item.active {
    color: #992121 !important;
}

/* Active background state */
.active-background {
    background-color: rgba(153, 33, 33, 0.1) !important; /* light reddish background */
}

/* Active text state */
.active-text {
    color: #992121 !important;
    font-weight: bold !important;
}

/* Side navigation text elements */
.menu-text,
.menu-arrow {
    color: black !important;
    font-size: 12px;
    /* font-weight: bold; */
}

/* Side navigation icon */
.menu-icon {
    color: black !important;
    font-size: 12px;
    font-weight: bold;
}

/* Expanded menu item text */
.side-nav-link[aria-expanded="true"] .menu-text {
    color: #931c11 !important;
}

/* Condensed side navigation hover state */
html[data-sidenav-size="condensed"]:not([data-layout="topnav"])
.sidenav-menu
.side-nav > .side-nav-item:hover > .side-nav-link {
    background-color: rgba(255, 0, 0, 0.05);
}

/* ==================================================================================== */
/* ============================= END OF SIDEBAR STYLES ================================ */
/* ==================================================================================== */

/* ======================================================================================== */
/* ============================= START OF NOTIFICATION STYLES ============================= */
/* ======================================================================================== */

.Notification-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .Notification-header h1 {
        color: #931c11;
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .Notification-header p {
        color: #95a5a6;
        font-size: 1rem;
    }

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.metric {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #931c11;
}

    .metric:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top-color: #7a180e;
    }

.metric-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

    .metric-title i {
        margin-left: 0.5rem;
        color: #931c11;
    }

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #931c11;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.metric:hover .metric-value {
    color: #7a180e;
}

.metric-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.metric-details {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.last-update {
    text-align: center;
    margin-top: 2rem;
    color: #95a5a6;
    font-size: 0.85rem;
    padding: 0.5rem;
    background: white;
    border-radius: 20px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

.emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

@media (max-width: 992px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
}
/* ======================================================================================== */
/* ============================= START OF NOTIFICATION STYLES ============================= */
/* ======================================================================================== */

/* ==================================================================================== */
/* ================================= START OF TIMELINE STYLES ========================= */
/* ==================================================================================== */

/* Timeline container */
.timeline {
    position: relative;
    padding: 40px 0 20px;
}

    /* Timeline vertical line */
    .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(50%);
        width: 4px;
        height: 100%;
        background-color: #931c11 !important;
        z-index: 1;
    }

/* Timeline item positioning */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 2;
}

    /* Odd timeline items (right side) */
    .timeline-item:nth-child(odd) {
        margin-right: auto;
        margin-left: 0;
    }

    /* Even timeline items (left side) */
    .timeline-item:nth-child(even) {
        margin-left: auto;
        margin-right: 0;
    }

/* Timeline dot indicator */
.timeline-dot {
    position: absolute;
    top: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff !important;
    border: 4px solid #931c11 !important;
    box-shadow: 0 0 0 3px #ffffff !important;
    z-index: 3;
}

/* Odd item dot positioning */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -12px;
}

/* Even item dot positioning */
.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

/* Timeline content area */
.timeline-content {
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
}

    /* Timeline content hover state */
    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        background-color: rgba(147, 28, 17, 0.05) !important;
    }

    /* Timeline content arrow */
    .timeline-content::before {
        content: "";
        position: absolute;
        top: 20px;
        width: 0;
        height: 0;
        border-style: solid;
    }

/* Odd item arrow positioning */
.timeline-item:nth-child(odd) .timeline-content::before {
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ffffff !important;
    right: -10px;
}

/* Even item arrow positioning */
.timeline-item:nth-child(even) .timeline-content::before {
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff !important;
    left: -10px;
}

/* Timeline title */
.timeline-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #931c11 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Timeline icon */
.timeline-icon {
    font-size: 1.1rem;
    color: #931c11 !important;
}

/* Timeline metadata */
.timeline-meta {
    display: flex;
    justify-content: space-between;
    color: #6c757d !important;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Timeline description */
.timeline-desc {
    color: #212529 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ==================================================================================== */
/* ================================= END OF TIMELINE STYLES =========================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF FILTER STYLES =========================== */
/* ==================================================================================== */

/* Average filter container */
.filter-container-average {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* Filter section layout */
.filter-section-average {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Search filter container */
.search-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* Search box styling */
.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

    /* Search input field */
    .search-box input {
        width: 100%;
        padding: 8px 15px 8px 35px;
        border-radius: 6px;
        border: 1px solid #931c11;
        background-color: #ffffff;
        color: #212529;
        transition: all 0.3s ease;
    }

        /* Search input focus state */
        .search-box input:focus {
            outline: none;
        }

    /* Search icon */
    .search-box i {
        position: absolute !important;
        left: 12px !important;
        top: 10px !important;
        color: #931c11 !important;
        font-size: 16px !important;
        transition: color 0.3s ease !important;
        z-index: 2 !important;
    }

/* Filter section layout */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Filter dropdown container */
.filter-dropdown {
    position: relative;
}

    /* Filter dropdown select */
    .filter-dropdown select {
        padding: 6px 12px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        background-color: #ffffff;
        color: #212529;
        cursor: pointer;
    }

/* Checkbox filter styling */
.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(147, 28, 17, 0.1); /* Changed rgba values */
    border-radius: 4px;
}

/* Date filter container */
.date-filter-container {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* Date filter element */
.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

    /* Date filter label */
    .date-filter label {
        color: #931c11;
        font-weight: 500;
        font-size: 14px;
    }

    /* Date filter input */
    .date-filter input {
        padding: 6px 10px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        background-color: #ffffff;
        color: #212529;
        font-size: 14px;
    }

/* Time dropdown container */
.time-dropdown {
    position: relative;
}

    /* Time dropdown select */
    .time-dropdown select {
        padding: 6px 10px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        background-color: #ffffff;
        color: #212529;
        cursor: pointer;
        font-size: 14px;
    }

/* ==================================================================================== */
/* ================================= END OF FILTER STYLES ============================= */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF SESSION STYLES ========================== */
/* ==================================================================================== */

/* Session base styles */
.session {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100vh;
    width: calc(100% - 33px);
}

/* Session container layout */
.container-session {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

/* Results container layout */
.result-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    /* Result item styling */
    .result-container > div {
        font-size: 1.3rem;
        padding: 0.5rem;
        margin: 5px 0;
        color: white;
        text-transform: capitalize;
    }

/* Age result styling */
#age {
    background: #1e94be;
}

/* Emotion result styling */
#emotion {
    background: #151f3a;
    border-radius: 10px;
    width: fit-content;
}

/* Gender result styling */
#gender {
    background: #62d8a5;
}

/* Video element styling */
video {
    width: 100%;
}

/* Load indicator */
#load {
    display: block;
    color: white;
}

/* End session button */
#endSessionBtn {
    box-shadow: 0 4px 15px rgba(2, 192, 206, 0.3);
}

/* Session end state */
.session-end {
    background-color: white !important;
}

/* Session completion container */
.session-completion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 92vh;
    text-align: center;
    padding: 2rem;
    background-color: white;
}

/* Completion icon */
.completion-icon {
    font-size: 5rem;
    color: #931c11;
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite alternate;
}

/* Completion title */
.completion-title {
    color: #931c11;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Completion message */
.completion-message {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==================================================================================== */
/* ================================= END OF SESSION STYLES ============================ */
/* ==================================================================================== */

/* ======================================================================================= */
/* ================================= START OF TATORIAL STYLES ============================ */
/* ======================================================================================= */

/* Tour styles */
.tour-overlay {
    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.tour-highlight {
    position: relative;
    z-index: 1052;
    background-color: #ffffff;
    border-radius: 8px;
    transition: opacity 0.25s ease, box-shadow 0.25s ease;
    animation: pulse 2s infinite;
    border: none !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 20px rgb(153, 34, 34);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 255, 255, 1), 0 0 25px rgb(153, 34, 34);
    }

    100% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 20px rgb(153, 34, 34);
    }
}

.tour-step {
    position: absolute;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 248, 0.9) );
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    width: 360px;
    min-height: 260px;
    z-index: 1051;
    display: none;
    overflow: hidden;
    font-family: "Noto Kufi Arabic", sans-serif;
    transition: top 0.4s ease-out, left 0.4s ease-out, opacity 0.3s ease;
}

@media (max-width: 768px) {
    .tour-step {
        width: 200px;
        max-width: 200px;
        min-height: 120px;
        top: 10px !important;
        left: 5px !important;
        transform: none !important;
        max-height: 60vh;
        overflow-y: auto;
    }

    .tour-step-header {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .tour-step-content {
        padding: 8px !important;
        font-size: 11px !important;
        max-height: calc(60vh - 90px);
    }

    .tour-step-footer {
        padding: 8px !important;
    }

    .tour-btn {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }

    .tour-start-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}

.tour-step-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(90deg, #931c11, #931c11);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s ease;
}

    .tour-step-header i {
        font-size: 20px;
        color: #fff;
    }

.tour-step-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #1f2937;
    height: 150px;
    overflow-y: auto;
    transition: all 0.5s ease;
}

.tour-step-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #e8ecef);
    transition: all 0.5s ease;
}

.tour-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.tour-btn-primary {
    background: linear-gradient(90deg, #931c11, #931c11);
    color: white;
}

    .tour-btn-primary:hover {
        background: linear-gradient(90deg, #931c11, #931c11);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

.tour-btn-secondary {
    background: linear-gradient(90deg, #e8ecef, #d1d9e0);
    color: #1f2937;
}

    .tour-btn-secondary:hover {
        background: linear-gradient(90deg, #d1d9e0, #c1c9d0);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.tour-skip {
    color: #931c11;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: bold;
}

    .tour-skip:hover {
        color: #c82333;
        text-decoration: underline;
    }

.tour-progress {
    font-size: 13px;
    color: #931c11;
    font-weight: bold;
    margin-right: 12px;
}

.tour-start-btn {
    position: fixed;
    bottom: 65px;
    right: 30px;
    z-index: 1049;
    background: linear-gradient(90deg, #931c11, #931c11);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

    .tour-start-btn:hover {
        background: linear-gradient(90deg, #931c11, #931c11);
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
    }

.border-danger-subtle {
    border-color: #931c11 !important;
}

.tour-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    margin-inline-start: auto;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1053 !important;
}

    .tour-close-btn:hover {
        color: #ffcccc;
    }

/* ======================================================================================= */
/* ================================= END OF TATORIAL STYLES ============================== */
/* ======================================================================================= */

/* ==================================================================================== */
/* ================================= ERROR PAGES ====================================== */
/* ==================================================================================== */

/* ===== Common Error Page Styles ===== */
.error-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 60px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    animation: card-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    color: white;
}

    .error-container * {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

.error-403,
.error-404,
.error-500 {
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    background-color: #343b4a;
    color: #1e293b;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.error-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.h1-error {
    font-size: 1.6rem;
    color: #1e293b;
    margin: 0 0 16px;
    font-weight: 600;
}

.p-error {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 30px;
    color: #64748b;
    max-width: 85%;
}

.btn-group-error {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

/* Common icon styles */
.icon-bg,
.icon-bg-403,
.icon-bg-404,
.icon-bg-500 {
    width: 100%;
    height: 100%;
    background-color: rgba(147, 28, 17, 0.15);
    border-radius: 24px;
    transform: rotate(45deg);
    position: relative;
    animation: icon-float 4s ease-in-out infinite;
}

    .icon-bg::before,
    .icon-bg-403::before,
    .icon-bg-404::before,
    .icon-bg-500::before {
        content: "";
        position: absolute;
        width: 60%;
        height: 60%;
        background-color: #931c11;
        border-radius: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        opacity: 0.9;
    }

/* Common button styles */
.btn-primary-403,
.btn-primary-404,
.btn-primary-500 {
    background-color: #931c11;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(147, 28, 17, 0.1);
}

    .btn-primary-403:hover,
    .btn-primary-404:hover,
    .btn-primary-500:hover {
        background-color: #7a160e;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(147, 28, 17, 0.15);
    }

.btn-secondary-403,
.btn-secondary-404,
.btn-secondary-500 {
    background-color: #ffffff;
    color: #931c11;
    border: 1px solid rgba(147, 28, 17, 0.3);
}

    .btn-secondary-403:hover,
    .btn-secondary-404:hover,
    .btn-secondary-500:hover {
        background-color: rgba(147, 28, 17, 0.15);
        border-color: rgba(147, 28, 17, 0.5);
    }

.btn-back-401 {
    background-color: #6c757d;
    color: white;
    transition: all 0.2s ease-in-out; /* حركة ناعمة */
}

    .btn-back-401:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* ظل رمادي ناعم */
        background-color: #5a6268; /* أغمق شوية وقت الـ hover */
        color: #fff;
    }

/* Common shape styles */
.shape,
.shape-403,
.shape-404,
.shape-500 {
    position: absolute;
    opacity: 0.03;
    background-color: #931c11;
    animation: shape-rotate 60s linear infinite;
}

.shape-1-error {
    width: 200px;
    height: 200px;
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
    top: -50px;
    right: -50px;
}

.shape-2-error {
    width: 150px;
    height: 150px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    bottom: -40px;
    left: -40px;
    animation-direction: reverse;
}

/* ===== Animations ===== */
@keyframes card-enter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes icon-float {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-10px);
    }
}

@keyframes shape-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* ==================================================================================== */
/* ============================= START OF PRINT STYLES ================================ */
/* ==================================================================================== */

@media print {
    /* Elements to hide when printing */
    .card-header-history,
    .search-filter-container,
    .print-control,
    .navbar,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate,
    .pagination-container,
    .filter-wallpaper,
    .tour-start-btn,
    .btns {
        display: none !important;
    }

    /* Table print styling */
    table {
        font-size: 12px;
        width: 100% !important;
        border-collapse: collapse;
    }

        /* Table cell padding */
        table th,
        table td {
            padding: 4px 6px !important;
        }

    /* Body print adjustments */
    body {
        zoom: 80%;
    }

    /* Hide last column in tables */
    table td:last-child,
    table th:last-child {
        display: none !important;
    }

    /* History table specific print styles */
    #historyTable {
        table-layout: auto !important;
    }

        /* Show last column in history table */
        #historyTable td:last-child,
        #historyTable th:last-child {
            display: block !important;
            text-align: center !important;
        }

    /* Average table print styles */
    .average-table {
        table-layout: revert !important;
    }

        /* Show last column in average table */
        .average-table td:last-child,
        .average-table th:last-child {
            display: block !important;
        }

    /* Hide pagination controls */
    #reportTable_paginate,
    #historyTable_paginate {
        display: none !important;
    }

    /* Show printable elements */
    .printable {
        display: block !important;
    }

    /* Page margin settings */
    @page {
        margin: 15mm;

        @top-left {
            content: "";
        }

        @top-center {
            content: "";
        }

        @top-right {
            content: "";
        }

        @bottom-left {
            content: "";
        }

        @bottom-center {
            content: counter(page);
        }

        @bottom-right {
            content: "";
        }
    }
}

/* ==================================================================================== */
/* ============================= END OF PRINT STYLES ================================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF ANIMATIONS ============================== */
/* ==================================================================================== */

/* Loading bar animation */
@keyframes hyper-loop {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

/* Loading shine effect animation */
@keyframes hyper-shine {
    0% {
        right: 100%;
    }

    100% {
        right: -20px;
    }
}

/* Spinner rotation animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card enter animation */
@keyframes card-enter {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Icon floating animation */
@keyframes icon-float {
    0% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-10px);
    }

    100% {
        transform: rotate(45deg) translateY(0);
    }
}

/* Shape rotation animation */
@keyframes shape-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bounce animation */
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* ==================================================================================== */
/* ================================== END OF ANIMATIONS =============================== */
/* ==================================================================================== */

/* ============================================================================================== */
/* ================================= #RIX2025-ROLE-INDEX-PAGE-STYLES ================================= */
/* ============================================================================================== */
/*
ROLE INDEX PAGE - EXTRACTED CSS STYLES
=====================================
Hash ID: #RIX2025-ROLE-INDEX-PAGE-STYLES
Page: Views/Role/Index.cshtml
Purpose: Role management interface with DataTables, filtering, and CRUD operations

Features Supported:
✅ DataTables Integration - Custom sorting and length menu controls
✅ Compact Table Design - Ultra-compact headers and cells for better space utilization
✅ Custom Sort Icons - Interactive sort indicators with active states
✅ Checkbox Controls - Super-compact checkboxes for bulk operations
✅ Form Elements - Inline editing and form controls
✅ Responsive Design - Mobile-friendly table layout

Class Naming Convention: All classes use -rix suffix (Role Index eXtracted)
Security: No sensitive data exposed in CSS
*/

/* DataTables Length Menu - Hidden for custom control */
.dataTables_length-rix {
    display: none;
}

/* Custom Sort Icons - Interactive sorting indicators */
.sort-icon-rix {
    cursor: pointer;
    transition: all 0.2s;
}

/* Active Sort Icon State - Highlights current sort column */
.sort-icon-active-rix {
    color: #0d6efd; /* Bootstrap primary blue */
}

/* DataTables Default Sort Icons - Hidden to use custom icons */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    display: none !important;
}

/* Roles Table Layout - Fixed column widths for consistent display */
#rolesTable-rix {
    table-layout: fixed !important;
    width: 100% !important;
}

    /* Table Cell Styling - Compact design with overflow handling */
    #rolesTable-rix th,
    #rolesTable-rix td {
        max-width: 250px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 10px !important;
        border: 1px solid #dee2e6 !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        line-height: 1.2;
    }

    /* Table Header Cells - Extra compact padding */
    #rolesTable-rix thead th {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
    }

/* Ultra-Compact Headers - Minimized spacing and font size */
.compact-header-rix {
    padding: 0.15rem 0.3rem !important;
    font-size: 0.8rem !important;
}

/* Header Text Layout - Inline block with minimal spacing */
.header-text-rix {
    display: inline-block;
    margin-left: 3px;
    line-height: 1;
}

/* Smaller Sort Icons - Reduced size for compact headers */
.sort-icon-rix {
    font-size: 0.65rem !important;
    vertical-align: middle;
}

/* Super-Compact Checkbox - Minimal spacing for table cells */
.compact-checkbox-rix {
    margin-right: 33px;
    padding: 0.1rem !important;
    min-height: auto;
}

/* Form Check Input - Remove extra margins */
.form-check-input-rix {
    margin: 0;
}

/* ============================================================================================== */
/* ================================= END #RIX2025-ROLE-INDEX-PAGE-STYLES ================================= */
/* ============================================================================================== */

/* ==================================================================================== */
/* =================================== START OF TABLE STYLES ========================== */

/* ====================================================================================== */
/* OVERALL SATISFACTION REPORT PAGE STYLES */
/* Hash Reference: #OSR2025-OVERALL-SATISFACTION-REPORT-STYLES */
/* ====================================================================================== */

/* -------------------------------------------------------------------------------------- */
/* REPORT PAGE DATATABLE STYLES */
/* -------------------------------------------------------------------------------------- */

/* Force text wrapping in all table cells for better mobile readability */
.report-page #reportTable td,
.report-page #reportTable th {
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important; /* Break long words */
    overflow-wrap: break-word !important; /* Modern CSS alternative */
}

/* Hide default DataTables sorting indicators to use custom styling */
.report-page table.dataTable thead .sorting:after,
.report-page table.dataTable thead .sorting:before,
.report-page table.dataTable thead .sorting_asc:after,
.report-page table.dataTable thead .sorting_asc:before,
.report-page table.dataTable thead .sorting_desc:after,
.report-page table.dataTable thead .sorting_desc:before {
    display: none !important;
}

/* Enable flexible column widths for services table in report context */
.report-page #servicesTable {
    table-layout: auto !important; /* Allow flexible column widths */
}

    /* Set maximum width for specific columns to prevent excessive stretching */
    .report-page #servicesTable td:nth-child(2) {
        max-width: 200px; /* Adjust column index as needed - prevents excessive stretching */
    }

/* -------------------------------------------------------------------------------------- */
/* REPORT PAGE MODAL ENHANCEMENTS */
/* -------------------------------------------------------------------------------------- */

/* Custom white close button for modal headers - report page specific to avoid conflicts */
.report-page .modal-header .report-btn-close-white-custom {
    filter: invert(1) brightness(2) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

    /* Close button hover effect with scaling animation */
    .report-page .modal-header .report-btn-close-white-custom:hover {
        opacity: 0.8 !important;
        transform: scale(1.1);
    }

/* -------------------------------------------------------------------------------------- */
/* REPORT PAGE BUTTON STYLES */
/* -------------------------------------------------------------------------------------- */

/* Secondary button styling with brand colors - scoped to report page */
.report-page .report-btn-secondary {
    color: #931c11; /* Primary brand color instead of CSS variable */
    border-color: #931c11 !important;
    background-color: white !important;
}

    /* Secondary button hover state with brand color background */
    .report-page .report-btn-secondary:hover {
        color: white;
        border-color: #931c11 !important;
        background-color: #931c11 !important;
    }

/* -------------------------------------------------------------------------------------- */
/* REPORT PAGE FORM CONTROLS */
/* -------------------------------------------------------------------------------------- */

/* Gender radio button group layout with proper spacing */
.report-page .report-gender-radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Individual radio button label styling with cursor pointer */
.report-page .report-gender-radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
}

/* Radio button input spacing reset */
.report-page .report-gender-radio-input {
    margin: 0;
}

/* Exceeded time checkbox styling with flex alignment */
.report-page .report-exceeded-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* -------------------------------------------------------------------------------------- */
/* REPORT PAGE SELECT2 CUSTOMIZATION */
/* -------------------------------------------------------------------------------------- */

/* Select2 multiple selection container base styling */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #992121 !important; /* Match filter-bordered color */
    border-radius: 0.25rem; /* Bootstrap border radius */
    min-height: 31px !important; /* Match form-select-sm height */
    height: auto !important; /* Allow natural height expansion */
}

    /* Ensure Select2 matches form-select-sm height specifically */
    .form-select-sm + .select2-container--default .select2-selection--multiple,
    .select2-container--default .select2-selection--multiple.form-select-sm {
        min-height: 31px !important; /* Bootstrap form-select-sm height */
        height: 31px !important; /* Force consistent height */
        padding: 0.25rem 0.5rem; /* Match form-select-sm padding */
        font-size: 0.875rem; /* Match form-select-sm font size */
    }

    /* Selected choice styling with brand colors */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
        background-color: #931c11 !important; /* Primary brand color */
        border-color: #931c11 !important;
        color: white;
        font-size: 0.875rem; /* Match small form size */
        padding: 1px 8px; /* Compact padding for small size */
        margin: 2px 4px 2px 0; /* Adjust margins for small size */
    }

    /* Remove button styling for selected choices */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
        color: white;
        font-size: 0.875rem; /* Match small form size */
    }

.select2-selection__choice__remove:hover {
    color: #000 !important; /* Lighter color on hover */
}

/* Additional Select2 height enforcement for serviceFilter specifically */
.select2-container .select2-selection--multiple {
    min-height: 31px !important;
    height: 31px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Ensure all form elements in filter dropdowns have consistent height */
.filter-dropdown .form-select,
.filter-dropdown .form-control,
.filter-dropdown .select2-container .select2-selection,
.search-box .form-control,
input[type="date"].form-control-sm,
input[type="text"].form-control-sm {
    height: 31px !important;
    min-height: 31px !important;
}

/* -------------------------------------------------------------------------------------- */
/* REPORT PAGE RESPONSIVE TABLE WITH HORIZONTAL SCROLLING */
/* -------------------------------------------------------------------------------------- */

/* Enable horizontal scrolling for report table on small screens */
.report-page .table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Fixed pagination for small and medium screens */
@media (max-width: 991.98px) {
    /* Reserve space at the bottom for the fixed pagination bar */
    .report-page {
        padding-bottom: 72px; /* Adjust if pagination height changes */
    }

        /* Make DataTables pagination fixed across the bottom of the viewport */
        .report-page .dataTables_wrapper .dataTables_paginate {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1030; /* Above content, below modals */
            background: #ffffff;
            padding: 8px 12px;
            border-top: 1px solid #dee2e6;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
            text-align: center;
        }

            /* Center pagination buttons nicely */
            .report-page .dataTables_wrapper .dataTables_paginate .pagination {
                margin: 0;
                justify-content: center;
                flex-wrap: nowrap;
            }

        /* Position the "info" text just above the fixed pagination */
        .report-page .dataTables_wrapper .dataTables_info {
            position: fixed;
            right: 12px;
            left: 12px;
            bottom: 48px; /* Sit above the pagination bar */
            z-index: 1029;
            background: rgba(255, 255, 255, 0.9);
            padding: 4px 8px;
            border: 1px solid #f1f1f1;
            border-radius: 6px;
            text-align: center;
            font-size: 0.8rem;
        }

        /* Allow the table area to scroll vertically beneath fixed pagination */
        .report-page .scroll-region {
            max-height: calc(100vh - 220px); /* Header + controls + padding */
            overflow-y: auto;
        }
}

/* ====================================================================================== */
/* END OF OVERALL SATISFACTION REPORT PAGE STYLES */
/* ====================================================================================== */
/* ==================================================================================== */
.table-fit {
    width: auto !important;
    table-layout: auto !important;
}

    .table-fit th,
    .table-fit td {
        white-space: nowrap;
        padding: 2px 6px !important; /* Small vertical and horizontal space */
        margin: 0;
    }

.bulk-actions-container {
    background-color: rgba(147, 28, 17, 0.05);
    border-radius: 0 0 8px 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.bulk-actions-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

#selectedCount {
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.bulk-actions-show {
    display: flex !important;
    gap: 10px;
}
/* Responsive adjustments */
@media (max-width: 576px) {
    .bulk-actions-container .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-actions-container .ms-auto {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
}
/* Report table base styles */
#reportTable {
    /* Set a smaller font size for better data density */
    font-size: 13px;
    /* Use separate border model to prevent border merging */
    border-collapse: separate !important;
    /* Remove spacing between borders */
    border-spacing: 0 !important;
    /* Force table to fill 100% of container width */
    width: 100% !important;
}

    /* Report table cell styles */
    #reportTable th,
    #reportTable td {
        /* Compact padding: 4px top/bottom, 8px left/right */
        padding: 4px 8px;
        /* Prevent text wrapping to maintain single-line cells */
        white-space: nowrap;
        /* Maximum width before content gets truncated */
        max-width: 150px;
        /* Hide overflow content */
        overflow: hidden;
        /* Show ellipsis (...) when content overflows */
        text-overflow: ellipsis;
    }

/* Responsive table container */
.table-responsive {
    /* Enable horizontal scrolling when needed */
    overflow-x: auto;
    /* Never exceed parent container width */
    max-width: 100%;
}

/* Center-align all table headers and cells by default */
tr th,
tr td {
    text-align: center;
}

/* Pagination container styles */
/*Pagination*/
.dataTables_wrapper .dataTables_paginate {
    all: unset !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: -10px !important;
    direction: rtl !important;
}

.dataTables_wrapper .pagination {
    display: flex !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dataTables_wrapper .page-item {
    list-style: none !important;
}

table.dataTable {
    border-collapse: collapse !important;
    margin-bottom: 30px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    all: unset !important;
    display: inline-block !important;
    padding: 0.5rem 0.9rem !important;
    margin-left: 5px !important;
    text-align: center !important;
    line-height: 1.25 !important;
    color: #931c11 !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        color: #fff !important;
        background-color: #931c11 !important;
        border-color: #931c11 !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        color: #fff !important;
        background-color: #931c11 !important;
        border-color: #931c11 !important;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current,
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            color: #fff !important;
        }

    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
        color: #6c757d !important;
        background-color: #ffffff !important;
        border: 1px solid #dee2e6 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
            color: #6c757d !important;
            background-color: #ffffff !important;
            border: 1px solid #dee2e6 !important;
            box-shadow: none !important;
        }

.dataTables_wrapper .dataTables_paginate a.paginate_button {
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
    color: #212529 !important;
}

.dataTables_wrapper
.dataTables_paginate
.paginate_button:hover:not(.current):not(.disabled) {
    color: #fff !important;
    background-color: #931c11 !important;
    border-color: #931c11 !important;
}

html body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html
body
.dataTables_wrapper
.dataTables_paginate
.paginate_button.current:hover {
    color: #fff !important;
}

/* Base table styles */
.table,
.data-table {
    /* Full width tables */
    width: 100%;
    /* Separate border model */
    border-collapse: separate;
    /* 8px vertical spacing between rows */
    border-spacing: 0 8px;
    /* Text color */
    color: #212529;
    /* Light gray border around table */
    border: 1px solid #dee2e6;
}

    /* Table header styles */
    .table thead th {
        /* Dark red header background */
        background-color: #992121;
        /* Bold header text */
        font-weight: 600;
        /* Comfortable padding */
        padding: 12px 15px;
        /* Right border between headers */
        border-right: 1px solid #dee2e6;
        /* White header text */
        color: white;
    }

        /* Remove right border from last header and cell */
        .table thead th:last-child,
        .table td:last-child {
            border-right: none;
        }

/* Bordered table variant */
.table-bordered {
    border-collapse: collapse;
}

/* Table cell styles */
.table td,
.data-table td {
    /* Comfortable padding */
    padding: 12px 15px;
    /* Right border between cells */
    border-right: 1px solid #dee2e6;
    /* Middle vertical alignment */
    vertical-align: middle;
}

/* Table body row styles */
.table tbody tr {
    /* White row background */
    background-color: #ffffff;
    /* Bottom border for each row */
    border-bottom: 1px solid #dee2e6;
}

    /* Remove bottom border from last row */
    .table tbody tr:last-child {
        border-bottom: none;
    }

/* Locked row styling */
tr.locked-row {
    /* Light yellow background with 15% opacity */
    background-color: rgba(255, 223, 0, 0.15) !important;
    /* Relative positioning for potential child elements */
    position: relative;
}

/* Table row hover effect */
.table tbody tr:hover {
    /* Very light red background on hover (5% opacity) */
    background-color: rgba(147, 28, 17, 0.05); /* Changed rgba values */
}

/* Data table header styles */
.data-table th {
    /* Slightly larger font for headers */
    font-size: 14px;
    /* Bold text */
    font-weight: 600;
    /* Medium gray text color */
    color: #7f8c8d;
    /* Padding */
    padding: 10px 15px;
    /* Right-aligned text */
    text-align: right;
}

/* Data table cell styles */
.data-table td {
    /* Subtle shadow effect */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    /* Rounded corners */
    border-radius: 8px;
}

/* RTL pagination container */
.pagination-container {
    /* Right-to-left direction */
    direction: rtl;
    /* Left-align text (appears right in RTL) */
    text-align: left;
}

/* Hide table info text */
#reportTable_info,
#historyTable_info {
    display: none !important;
}

/* DataTables wrapper styles */
#reportTable_wrapper,
#historyTable_wrapper {
    /* Slightly reduce size */
    zoom: 95%;
    /* Bottom padding */
    padding-bottom: 10px;
}

/* Length selection dropdown styles */
#reportTable_length,
#historyTable_length {
    /* Positioning and spacing */
    margin: 10px 0 24px 10px;
    /* Float to left side */
    float: left;
}

/* Scroll container spacing */
.dataTables_scroll {
    /* Bottom margin */
    margin-bottom: 30px;
}

/* ==================================================================================== */
/* =================================== END OF TABLE STYLES ============================ */
/* ==================================================================================== */

.breadcrumb-item + .breadcrumb-item::before {
    content: " "; /* Replace ">" with a space */
    padding: 0 5px; /* Adjust spacing as needed */
}

.paginate_button {
    padding: 0;
}

#servicesTable_paginate .pagination .paginate_button {
    padding: 0 !important;
}

#rolesTable_paginate {
    margin-top: 25px !important;
}

    #rolesTable_paginate .pagination .paginate_button {
        padding: 0 !important;
    }

#sessionsTable_length,
#reportTable_length,
#historyTable_length,
#centersTable_length {
    margin-block: 15px !important;
    float: left !important;
}

.docsSidebar_img {
    background-image: url("../../wwwroot/assets/side-bg.png");
    background-size: cover;
    background-position: center;
}

/* ==================================================================================== */
/* ================================= START OF DASHBOARD STYLES ======================= */
/* ==================================================================================== */

/* Dashboard - Clickable Metric */
.dashboard-clickable-metric {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    .dashboard-clickable-metric:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

/* Dashboard - View More Link */
.dashboard-view-more {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #3498db;
    text-decoration: underline;
}

/* Dashboard - Modal Styles */
.dashboard-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    direction: rtl;
}

.dashboard-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard - Close Button */
.dashboard-close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .dashboard-close:hover {
        color: black;
    }

/* Dashboard - Modal Body */
.dashboard-modal-body {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Dashboard - Table Styles */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px;
        text-align: right;
        border-bottom: 1px solid #ddd;
    }

    .dashboard-table th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

    .dashboard-table tr:hover {
        background-color: #f5f5f5;
    }

/* ==================================================================================== */
/* ================================= END OF DASHBOARD STYLES ========================= */
/* ==================================================================================== */

/* ==================================================================================== */
/* =============================== START OF CHARTBUILDER STYLES ==================== */
/* ==================================================================================== */
/* 
 * CHARTBUILDER PAGE SPECIFIC STYLES
 * Extracted from Views/ChartBuilder/Index.cshtml
 * Date: 2025-08-07
 * Hash: #CB2025-CHARTBUILDER-REFACTOR
 * Note: Conflicting selectors prefixed with 'chartbuilder-' to avoid conflicts
 */

/* CSS Variables for ChartBuilder - scoped to avoid conflicts */
.chartbuilder-page {
    --chartbuilder-primary-color: #992121;
    --chartbuilder-secondary-color: #7a1a1a;
    --chartbuilder-accent-color: #c12b2b;
    --chartbuilder-light-bg: #f8f9fa;
    --chartbuilder-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --chartbuilder-border-radius: 12px;
}

/* ChartBuilder Body Styles - renamed to avoid global body conflict */
.chartbuilder-body {
    font-family: "Tajawal", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    margin: 0;
    padding: 20px;
    color: #333;
    direction: rtl;
}

/* ChartBuilder Container - renamed to avoid Bootstrap container conflict */
.chartbuilder-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* ChartBuilder Dashboard Controls - renamed to avoid existing dashboard-controls */
.chartbuilder-dashboard-controls {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    border-radius: var(--chartbuilder-border-radius);
    box-shadow: var(--chartbuilder-card-shadow);
}

    .chartbuilder-dashboard-controls label {
        margin-bottom: 0;
        font-weight: 500;
        color: #555;
    }

    .chartbuilder-dashboard-controls select,
    .chartbuilder-dashboard-controls input {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        transition: all 0.2s;
        text-align: right;
    }

        .chartbuilder-dashboard-controls select:focus,
        .chartbuilder-dashboard-controls input:focus {
            border-color: var(--chartbuilder-accent-color);
            box-shadow: 0 0 0 3px rgba(201, 43, 43, 0.2);
        }

    .chartbuilder-dashboard-controls .form-control,
    .chartbuilder-dashboard-controls .form-select {
        height: 40px;
        min-width: 180px;
    }

    .chartbuilder-dashboard-controls .date-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #f8f9fa;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }

/* ChartBuilder Button Styles - renamed to avoid global btn conflicts */
.chartbuilder-btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chartbuilder-btn-primary {
    background-color: var(--chartbuilder-primary-color);
    border-color: var(--chartbuilder-primary-color);
}

    .chartbuilder-btn-primary:hover {
        background-color: var(--chartbuilder-secondary-color);
        border-color: var(--chartbuilder-secondary-color);
    }

.chartbuilder-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.chartbuilder-btn-success {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

/* ChartBuilder Grid Stack Styles - renamed to avoid global grid-stack conflicts */
.chartbuilder-grid-stack {
    background: transparent;
    min-height: 600px;
    border-radius: var(--chartbuilder-border-radius);
    margin-bottom: 2rem;
}

.chartbuilder-grid-stack-item {
    padding: 0;
}

.chartbuilder-grid-stack-item-content {
    background-color: #fff;
    border: none;
    border-radius: var(--chartbuilder-border-radius);
    box-shadow: var(--chartbuilder-card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .chartbuilder-grid-stack-item-content:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }

.chartbuilder-grid-stack .close-chart {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    background-color: var(--chartbuilder-primary-color);
    color: white;
    border: none;
}

.chartbuilder-grid-stack-item:hover .close-chart {
    opacity: 1;
}

.chartbuilder-close-chart:hover {
    background-color: var(--chartbuilder-secondary-color) !important;
}

.chartbuilder-chart-container {
    position: relative;
    height: calc(100% - 50px);
    width: 100%;
    padding: 1rem;
}

.chartbuilder-chart-header {
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.chartbuilder-chart-title {
    font-weight: 600;
    color: var(--chartbuilder-primary-color);
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.chartbuilder-chart-date {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

/* ChartBuilder Dashboard Empty Placeholder */
.chartbuilder-dashboard-empty-placeholder {
    background: white;
    border-radius: var(--chartbuilder-border-radius);
    box-shadow: var(--chartbuilder-card-shadow);
}

/* ChartBuilder Grid Stack Resizable Handles */
.chartbuilder-grid-stack .ui-resizable-handle {
    background: transparent;
    opacity: 0;
    z-index: 20;
    transition: opacity 0.2s ease;
}

.chartbuilder-grid-stack-item:hover .ui-resizable-handle {
    opacity: 1;
}

/* ChartBuilder Corner Handle */
.chartbuilder-grid-stack .ui-resizable-sw {
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: none;
    cursor: nwse-resize;
}

    .chartbuilder-grid-stack .ui-resizable-sw::after {
        content: "";
        position: absolute;
        left: 3px;
        bottom: 3px;
        width: 10px;
        height: 10px;
        border-left: 2px solid rgba(153, 33, 33, 0.7);
        border-bottom: 2px solid rgba(153, 33, 33, 0.7);
        border-radius: 1px;
        transition: all 0.2s ease;
    }

    .chartbuilder-grid-stack .ui-resizable-sw:hover::after {
        border-color: var(--chartbuilder-primary-color);
        width: 12px;
        height: 12px;
    }

/* ChartBuilder Edge Handles */
.chartbuilder-grid-stack .ui-resizable-e,
.chartbuilder-grid-stack .ui-resizable-w {
    width: 6px;
    right: -3px;
    left: auto;
    cursor: ew-resize;
    background: linear-gradient( 90deg, rgba(153, 33, 33, 0.2) 0%, rgba(153, 33, 33, 0) 100% );
}

.chartbuilder-grid-stack .ui-resizable-w {
    left: -3px;
    right: auto;
    background: linear-gradient( 90deg, rgba(153, 33, 33, 0) 0%, rgba(153, 33, 33, 0.2) 100% );
}

.chartbuilder-grid-stack .ui-resizable-s,
.chartbuilder-grid-stack .ui-resizable-n {
    height: 6px;
    bottom: -3px;
    top: auto;
    cursor: ns-resize;
    background: linear-gradient( 0deg, rgba(153, 33, 33, 0.2) 0%, rgba(153, 33, 33, 0) 100% );
}

.chartbuilder-grid-stack .ui-resizable-n {
    top: -3px;
    bottom: auto;
    background: linear-gradient( 0deg, rgba(153, 33, 33, 0) 0%, rgba(153, 33, 33, 0.2) 100% );
}

/* ChartBuilder Hover Effects for Edge Controls */
.chartbuilder-grid-stack-item:hover .ui-resizable-e,
.chartbuilder-grid-stack-item:hover .ui-resizable-w {
    background: linear-gradient( 90deg, rgba(153, 33, 33, 0.4) 0%, rgba(153, 33, 33, 0.1) 100% );
}

.chartbuilder-grid-stack-item:hover .ui-resizable-s,
.chartbuilder-grid-stack-item:hover .ui-resizable-n {
    background: linear-gradient( 0deg, rgba(153, 33, 33, 0.4) 0%, rgba(153, 33, 33, 0.1) 100% );
}

/* ChartBuilder Active Resize State */
.chartbuilder-grid-stack-item.ui-resizable-resizing .ui-resizable-sw::after {
    border-color: var(--chartbuilder-primary-color);
    width: 14px;
    height: 14px;
}

.chartbuilder-grid-stack-item.ui-resizable-resizing .ui-resizable-e,
.chartbuilder-grid-stack-item.ui-resizable-resizing .ui-resizable-w,
.chartbuilder-grid-stack-item.ui-resizable-resizing .ui-resizable-s,
.chartbuilder-grid-stack-item.ui-resizable-resizing .ui-resizable-n {
    background: rgba(153, 33, 33, 0.3);
}

/* ChartBuilder Footer - renamed to avoid global footer conflict */
.chartbuilder-footer {
    background: white;
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

/* ChartBuilder Loading Overlay - renamed to avoid global loading-overlay conflict */
.chartbuilder-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--chartbuilder-border-radius);
}

/* ChartBuilder Spinner - renamed to avoid global spinner conflict */
.chartbuilder-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--chartbuilder-primary-color);
    border-radius: 50%;
    animation: chartbuilder-spin 1s linear infinite;
}

@keyframes chartbuilder-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.chartbuilder-tooltip-inner {
    text-align: right;
    direction: rtl;
}

/* ChartBuilder Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Filter elements specific adjustments */
    .chartbuilder-dashboard-controls > div.d-flex.align-items-center.gap-2 {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem !important;
    }

        .chartbuilder-dashboard-controls > div.d-flex.align-items-center.gap-2 label {
            align-self: flex-start;
            margin-bottom: 0.25rem;
        }

        .chartbuilder-dashboard-controls > div.d-flex.align-items-center.gap-2 select,
        .chartbuilder-dashboard-controls > div.d-flex.align-items-center.gap-2 input {
            width: 100% !important;
            min-width: 100% !important;
        }

    /* Date group specific adjustments */
    .chartbuilder-dashboard-controls .date-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem !important;
        padding: 0.5rem;
    }

        .chartbuilder-dashboard-controls .date-group label {
            align-self: flex-start;
            margin-bottom: 0.25rem;
        }

        .chartbuilder-dashboard-controls .date-group input {
            width: 100% !important;
            min-width: 100% !important;
        }

    /* Other elements remain as they are */
    .chartbuilder-dashboard-controls {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }

        .chartbuilder-dashboard-controls .buttons-group {
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .chartbuilder-dashboard-controls .chartbuilder-btn {
            width: auto;
            margin-top: 0;
            flex: 1;
            min-width: 120px;
        }
}
/* ==================================================================================== */
/* =============================== END OF CHARTBUILDER STYLES ====================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF HOME PAGE STYLES ======================= */
/* ==================================================================================== */
/* #HM2025-HOME-PAGE-REFACTOR - Extracted inline CSS from Home/Index.cshtml */
/* Hash: #HM2025-HOME-DASHBOARD-STYLES */

/* Home page body overflow control */
.home-page body {
    overflow-x: hidden;
}

/* Home page stat card styling - renamed to avoid conflict with global .stat-card */
.home-stat-card {
    background: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    min-height: 100px;
    text-align: center;
}

/* Home page stat value styling - renamed to avoid conflict */
.home-stat-value {
    font-weight: bold;
    color: #931c11;
    font-size: 0.9rem;
}

/* Home page section title styling - renamed to avoid conflict with global .section-title */
.home-section-title {
    color: #931c11;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Home page chart container styling */
.home-chart-container {
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Home page table styling - specific to home page tables */
.home-page .table th,
.home-page .table td {
    padding: 0.5rem;
}

/* ==================================================================================== */
/* ================================= END OF HOME PAGE STYLES ========================= */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF HISTORY PAGE STYLES ==================== */
/* ==================================================================================== */
/* #HT2025-HISTORY-PAGE-REFACTOR - Extracted inline CSS from History/Index.cshtml */
/* Hash: #HT2025-HISTORY-DATATABLES-STYLES */

/* History page DataTables sorting indicators - hide default arrows */
.history-page table.dataTable thead .sorting:after,
.history-page table.dataTable thead .sorting:before,
.history-page table.dataTable thead .sorting_asc:after,
.history-page table.dataTable thead .sorting_asc:before,
.history-page table.dataTable thead .sorting_desc:after,
.history-page table.dataTable thead .sorting_desc:before {
    display: none !important;
}

/* History page pagination next button */
.history-page .paginate_button.next {
    color: #000 !important;
    background-color: #fff !important;
}

/* History page DataTables pagination container */
.history-page .dataTables_paginate.paging_full_numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

    /* History page pagination buttons styling */
    .history-page .dataTables_paginate.paging_full_numbers a.paginate_button,
    .history-page .dataTables_paginate.paging_full_numbers span a.paginate_button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        color: #000 !important;
        background-color: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
    }

/* History page DataTables wrapper pagination - avoid conflict with global */
.history-page .history-dataTables_wrapper .dataTables_paginate {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: center;
}

    /* History page pagination button styling - renamed to avoid conflict */
    .history-page
    .history-dataTables_wrapper
    .dataTables_paginate
    .paginate_button {
        display: inline-block;
        float: none;
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        margin: 2px;
        flex-shrink: 0;
    }

/* History page print-specific styling */
@media print {
    .history-page body * {
        visibility: hidden;
    }

    .history-page .printable,
    .history-page .printable * {
        visibility: visible;
    }

    .history-page .card-history,
    .history-page .card-history * {
        visibility: visible;
    }

    .history-page .card-history {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .history-page .table-responsive {
        overflow: visible !important;
        width: 100% !important;
    }

    .history-page #historyTable {
        width: 100% !important;
        font-size: 16px !important;
        border-collapse: collapse !important;
        margin-top: 2px !important;
    }

        .history-page #historyTable th,
        .history-page #historyTable td {
            padding: 12px !important;
            border: 1px solid #000 !important;
        }

    /* Hide unnecessary elements when printing */
    .history-page .print-control,
    .history-page .search-filter-container,
    .history-page .dataTables_length,
    .history-page .dataTables_filter,
    .history-page .dataTables_info,
    .history-page .dataTables_paginate {
        display: none !important;
    }

    /* Force black text for printing */
    .history-page * {
        color: #000 !important;
    }

    /* Page layout for printing */
    @page {
        size: auto;
        margin: 10mm;
    }

    /* Header styling for print */
    .history-page header.printable {
        display: flex !important;
        margin-bottom: 20px;
    }

    /* Table header styling for print */
    .history-page #historyTable thead th {
        background-color: #f1f1f1 !important;
        font-weight: bold;
    }

    /* Ensure table breaks properly across pages */
    .history-page table {
        page-break-inside: auto;
    }

    .history-page tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .history-page thead {
        display: table-header-group;
    }
}

/* History page breadcrumb with primary color - replaced var(--primary-color) with #931c11 */
.history-page .breadcrumb-item a[style*="var(--primary-color)"] {
    color: #931c11 !important;
}

/* History page records count box - replaced CSS variables with actual values */
.history-page .records-count-box {
    background-color: rgba( 147, 28, 17, 0.1 ) !important; /* Replaced var(--table-header-bg) */
    border: 1px solid #931c11 !important; /* Replaced var(--primary-color) */
}

    .history-page .records-count-box span {
        color: #931c11 !important; /* Replaced var(--primary-color) */
        font-weight: bold;
    }

/* ==================================================================================== */
/* ================================= END OF HISTORY PAGE STYLES ====================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF CENTER PAGE STYLES ===================== */
/* ==================================================================================== */
/* Hash: #CT2025-CENTER-DATATABLES-STYLES */
/* Description: Center page DataTable styles with fixed column layout and custom sorting */
/* Page: Views/Center/Index.cshtml */
/* Dependencies: DataTables library */
/* CSS Variables Replaced: 
   - var(--bs-primary) → #0d6efd (Bootstrap primary color)
   - var(--primary-color) → #931c11 (Primary theme color)
   - var(--table-header-bg) → rgba(147, 28, 17, 0.1) (Primary color with 10% opacity)
*/
/* Inline Styles Moved: Table layout, sort icons, breadcrumb colors, records count styling */
/* Conflicts Avoided: Using .center-page prefix and center- class prefixes to prevent conflicts */

/* Center page wrapper for scoped styling */
.center-page {
    /* Wrapper class to scope center page styles and prevent conflicts with global styles */
    position: relative;
}

    /* Center page DataTable with fixed column layout */
    .center-page #centersTable {
        table-layout: fixed !important;
        width: 100% !important;
    }

        /* Center page table cells with text overflow handling */
        .center-page #centersTable th,
        .center-page #centersTable td {
            min-width: 120px !important;
            max-width: 250px !important;
            white-space: normal; /* Allow text to break to next line */
            word-wrap: break-word; /* Break long words if needed */
            overflow-wrap: break-word; /* Modern alternative for breaking */
        }

    /* Center page custom sort icons with hover effects */
    .center-page .center-sort-icon {
        cursor: pointer;
        transition: all 0.2s;
    }

    /* Center page active sort icon with primary color - replaced var(--bs-primary) with #0d6efd */
    .center-page .center-sort-icon-active {
        color: #0d6efd; /* Bootstrap primary color instead of var(--bs-primary) */
    }

    /* Center page DataTables default sort icons override */
    .center-page table.dataTable thead .sorting:before,
    .center-page table.dataTable thead .sorting_asc:before,
    .center-page table.dataTable thead .sorting_desc:before,
    .center-page table.dataTable thead .sorting:after,
    .center-page table.dataTable thead .sorting_asc:after,
    .center-page table.dataTable thead .sorting_desc:after {
        display: none !important;
    }

    /* Center page breadcrumb with primary color - replaced var(--primary-color) with #931c11 */
    .center-page .breadcrumb-item a[style*="var(--primary-color)"] {
        color: #931c11 !important;
    }

    /* Center page records count box - replaced CSS variables with actual values */
    .center-page .records-count-box {
        background-color: rgba( 147, 28, 17, 0.1 ) !important; /* Replaced var(--table-header-bg) */
        border: 1px solid #931c11 !important; /* Replaced var(--primary-color) */
    }

        .center-page .records-count-box span {
            color: #931c11 !important; /* Replaced var(--primary-color) */
            font-weight: bold;
        }

    /* Center page sort icon styling */
    .center-page .sort-icon {
        font-size: 0.75rem;
    }

    /* Override inline styles for breadcrumb separator */
    .center-page .breadcrumb-item a[style*="color"] {
        color: #931c11 !important;
    }

    /* Override inline styles for records count box */
    .center-page .records-count-box[style*="background-color"] {
        background-color: rgba(147, 28, 17, 0.1) !important;
        border: 1px solid #931c11 !important;
    }

    .center-page .records-count-box span[style*="color"] {
        color: #931c11 !important;
        font-weight: bold;
    }

    /* Override inline table styles */
    .center-page table[style*="table-layout"] {
        table-layout: fixed !important;
        width: 100% !important;
    }

    /* Center page layout styles - replacing inline styles */
    .center-page .card-header-history .flex-grow-1 {
        margin-right: 15px;
    }

    .center-page .card-header-history .d-flex.align-items-center {
        margin-left: 23px;
    }

/* ==================================================================================== */
/* ================================= END OF CENTER PAGE STYLES ======================= */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================================= START OF SERVICE PAGE STYLES ==================== */
/* ==================================================================================== */
/* Hash: #SV2025-SERVICE-DATATABLES-STYLES */
/* Description: Service page DataTable styles with pagination, sorting, and responsive design */
/* Page: Views/Service/Index.cshtml */
/* Dependencies: DataTables library, Bootstrap 5 */
/* CSS Variables Replaced: 
   - var(--bs-primary) → #0d6efd (Bootstrap primary color)
   - var(--primary-color) → #931c11 (Primary theme color)
   - var(--table-header-bg) → rgba(147, 28, 17, 0.1) (Primary color with 10% opacity)
*/
/* Inline Styles Moved: Pagination, table layout, sort icons, breadcrumb colors, records count styling */
/* Conflicts Avoided: Using .service-page prefix and service- class prefixes to prevent conflicts */

/* Service page wrapper for scoped styling */
.service-page {
    /* Wrapper class to scope service page styles and prevent conflicts with global styles */
    position: relative;
}

    /* Service page layout spacing */
    .service-page .bottom {
        margin-top: 25px;
    }

    /* ====================================================================================== */
    /* SERVICE PAGE PAGINATION STYLES - Custom DataTables pagination */
    /* ====================================================================================== */

    /* Service page main pagination container */
    .service-page .pagination {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        background: none;
        border: none !important;
        gap: 8px;
        padding: 0;
    }

    .service-page .paginate_button {
        background: none;
        border: none !important;
    }

    .service-page .page-item {
        list-style: none;
        border: none !important;
    }

    .service-page .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        color: #000;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        .service-page .page-link:hover {
            background-color: #f5f5f5;
            border-color: #ddd;
        }

    .service-page .page-item.active .page-link {
        color: #fff !important;
        background-color: #992121 !important;
        border-color: #992121 !important;
    }

    .service-page .page-item:first-child .page-link,
    .service-page .page-item:last-child .page-link {
        color: #000;
        background-color: #fff;
    }

    .service-page .page-item.disabled .page-link {
        color: #999 !important;
        background-color: #fff !important;
        border-color: #ddd !important;
        pointer-events: none;
    }

    .service-page .page-link i {
        font-size: 14px;
    }

    /* Service page DataTables pagination wrapper styles */
    .service-page .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        margin: 0;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        color: #000 !important;
        background: #fff !important;
        font-weight: 500;
    }

        .service-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #f5f5f5 !important;
            border-color: #ddd !important;
            color: #000 !important;
        }

        .service-page
        .dataTables_wrapper
        .dataTables_paginate
        .paginate_button.current {
            color: #fff !important;
            background: #992121 !important;
            border-color: #992121 !important;
        }

        .service-page
        .dataTables_wrapper
        .dataTables_paginate
        .paginate_button.disabled {
            color: #999 !important;
            background: #fff !important;
            border-color: #ddd !important;
        }

    /* ====================================================================================== */
    /* SERVICE PAGE SORT ICONS AND TABLE STYLES */
    /* ====================================================================================== */

    /* Service page custom sort icons with hover effects */
    .service-page .service-sort-icon {
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.65rem !important;
        vertical-align: middle;
    }

    /* Service page active sort icon with primary color - replaced var(--bs-primary) with #0d6efd */
    .service-page .service-sort-icon-active {
        color: #0d6efd; /* Bootstrap primary color instead of var(--bs-primary) */
    }

    /* Service page DataTables default sort icons override */
    .service-page table.dataTable thead .sorting:before,
    .service-page table.dataTable thead .sorting_asc:before,
    .service-page table.dataTable thead .sorting_desc:before,
    .service-page table.dataTable thead .sorting:after,
    .service-page table.dataTable thead .sorting_asc:after,
    .service-page table.dataTable thead .sorting_desc:after {
        display: none !important;
    }

    /* Service page fixed table layout */
    .service-page #servicesTable {
        table-layout: fixed !important;
        width: 100% !important;
    }

        .service-page #servicesTable th,
        .service-page #servicesTable td {
            max-width: 250px !important;
            overflow: hidden;
            text-overflow: ellipsis;
            height: 10px !important;
            border: 1px solid #dee2e6 !important;
            padding-top: 0.25rem !important;
            padding-bottom: 0.25rem !important;
            line-height: 1.2;
        }

        .service-page #servicesTable thead th {
            padding-top: 0.3rem !important;
            padding-bottom: 0.3rem !important;
        }

    /* Service page hide length menu */
    .service-page .dataTables_length {
        display: none;
    }

    /* Service page ultra-compact headers */
    .service-page .compact-header {
        padding: 0.15rem 0.3rem !important;
        font-size: 0.8rem !important;
    }

    /* Service page header text spacing */
    .service-page .header-text {
        display: inline-block;
        margin-left: 3px;
        line-height: 1;
    }

    /* Service page compact checkbox */
    .service-page .compact-checkbox {
        margin-right: 20px;
        padding: 0.1rem !important;
        min-height: auto;
    }

    .service-page .form-check-input {
        margin: 0;
    }

/* ====================================================================================== */
/* SERVICE PAGE RESPONSIVE DESIGN */
/* ====================================================================================== */

/* Mobile and tablet responsive styles */
@media (max-width: 991.98px) {
    .service-page #servicesTable {
        font-size: 0.8rem;
    }

        .service-page #servicesTable th,
        .service-page #servicesTable td {
            padding: 0.2rem 0.3rem !important;
            max-width: none !important;
        }

    .service-page .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
    }
}

@media (max-width: 767.98px) {
    .service-page #servicesTable {
        font-size: 0.75rem;
    }

    .service-page .compact-header {
        font-size: 0.7rem !important;
        padding: 0.1rem 0.2rem !important;
    }

    .service-page .service-sort-icon {
        font-size: 0.6rem !important;
    }

    .service-page .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .service-page #servicesTable th,
    .service-page #servicesTable td {
        padding: 0.15rem 0.2rem !important;
    }

    .service-page .records-count-box {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

/* ====================================================================================== */
/* SERVICE PAGE BREADCRUMB AND RECORDS COUNT STYLES */
/* ====================================================================================== */

/* Service page breadcrumb with primary color - replaced var(--primary-color) with #931c11 */
.service-page .breadcrumb-item a[style*="var(--primary-color)"],
.service-page .breadcrumb-item a[style*="color"] {
    color: #931c11 !important;
}

/* Service page records count box - replaced CSS variables with actual values */
.service-page .records-count-box {
    background-color: rgba( 147, 28, 17, 0.1 ) !important; /* Replaced var(--table-header-bg) */
    border: 1px solid #931c11 !important; /* Replaced var(--primary-color) */
}

    .service-page .records-count-box span {
        color: #931c11 !important; /* Replaced var(--primary-color) */
        font-weight: bold;
    }

    /* Override inline styles for records count box */
    .service-page .records-count-box[style*="background-color"] {
        background-color: rgba(147, 28, 17, 0.1) !important;
        border: 1px solid #931c11 !important;
    }

    .service-page .records-count-box span[style*="color"] {
        color: #931c11 !important;
        font-weight: bold;
    }

/* ====================================================================================== */
/* SERVICE PAGE RESPONSIVE HORIZONTAL SCROLLING */
/* ====================================================================================== */

/* Horizontal scrolling for small and medium screens */
@media (max-width: 991.98px) {
    .service-page .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .service-page #servicesTable {
        min-width: 800px !important;
        width: auto !important;
        table-layout: auto !important;
    }

    /* Compact headers for better mobile experience */
    .service-page .compact-header {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.2rem !important;
        white-space: nowrap;
    }

    .service-page .service-sort-icon {
        font-size: 0.7rem !important;
    }
}

/* Additional optimizations for mobile screens */
@media (max-width: 575.98px) {
    .service-page #servicesTable {
        min-width: 600px !important;
        font-size: 0.75rem;
    }

    .service-page .compact-header {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.15rem !important;
    }

    .service-page .service-sort-icon {
        font-size: 0.6rem !important;
    }

    /* Compact table cells for mobile */
    .service-page #servicesTable td {
        padding: 0.3rem 0.2rem !important;
    }
}

/* ==================================================================================== */
/* ================================= END OF SERVICE PAGE STYLES ====================== */
/* ==================================================================================== */

/* ========================================
   CENTER SATISFACTION REPORT PAGE STYLES
   Hash: #CSR2025-CENTER-SATISFACTION-REPORT-STYLES
   ======================================== */
/*
 * Dedicated styles for Center Satisfaction Report page (CenterSatisfactionReport.cshtml)
 * Purpose: Analytics and reporting interface for customer satisfaction metrics across service centers
 * Features: DataTables with responsive design, Chart.js integration, Select2 dropdowns, filtering system
 * Responsive: Optimized for desktop, tablet, and mobile viewing
 * Dependencies: Bootstrap 5.x, DataTables, Chart.js, Select2
 * Last Updated: August 2025
 * Scope: .center-satisfaction-report wrapper to prevent style conflicts
 */

/* -------------------------------------------------------------------------------------- */
/* DATATABLE CUSTOMIZATION FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* DataTable cell content wrapping - ensures long text doesn't break layout */
.center-satisfaction-report #reportTable td,
.center-satisfaction-report #reportTable th {
    white-space: normal !important; /* Allow text wrapping in cells */
    word-wrap: break-word !important; /* Break long words to prevent overflow */
    overflow-wrap: break-word !important; /* Modern CSS property for word breaking */
}

/* Hide DataTable sorting arrows for cleaner appearance */
.center-satisfaction-report table.dataTable thead .sorting:after,
.center-satisfaction-report table.dataTable thead .sorting:before,
.center-satisfaction-report table.dataTable thead .sorting_asc:after,
.center-satisfaction-report table.dataTable thead .sorting_asc:before,
.center-satisfaction-report table.dataTable thead .sorting_desc:after,
.center-satisfaction-report table.dataTable thead .sorting_desc:before {
    display: none !important;
}

/* -------------------------------------------------------------------------------------- */
/* MODAL COMPONENTS FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Custom white close button for modal headers - center satisfaction specific */
.center-satisfaction-report .modal-header .btn-close-white-custom-csr {
    filter: invert(1) brightness(2) !important; /* Make close button white */
    opacity: 1 !important;
    transition: all 0.3s ease; /* Smooth hover transitions */
}

    /* Close button hover effect with scaling animation */
    .center-satisfaction-report .modal-header .btn-close-white-custom-csr:hover {
        opacity: 0.8 !important;
        transform: scale(1.1); /* Slight scale effect on hover */
    }

/* -------------------------------------------------------------------------------------- */
/* BUTTON STYLES FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Secondary button styling with brand colors - center satisfaction specific */
.center-satisfaction-report .btn-secondary-csr {
    color: #931c11; /* Primary brand color - Fujairah Police brand */
    border-color: #931c11 !important;
    background-color: white !important;
}

    /* Secondary button hover state with inverted colors */
    .center-satisfaction-report .btn-secondary-csr:hover {
        color: white;
        border-color: #931c11 !important;
        background-color: #931c11 !important; /* Brand color background on hover */
    }

/* -------------------------------------------------------------------------------------- */
/* FORM CONTROLS FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Gender radio button group layout with consistent spacing */
.center-satisfaction-report .gender-radio-group {
    display: flex;
    gap: 15px; /* Space between radio options */
    align-items: center;
    padding: 0.375rem 0.75rem; /* Bootstrap form control padding */
    border: 1px solid #ced4da; /* Bootstrap form control border */
    border-radius: 0.375rem; /* Bootstrap form control border radius */
    background-color: white;
}

/* Individual radio button label styling with proper cursor */
.center-satisfaction-report .gender-radio-label {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between radio input and text */
    cursor: pointer; /* Pointer cursor for better UX */
    margin: 0; /* Reset default margin */
}

/* Radio button input spacing reset for consistent alignment */
.center-satisfaction-report .gender-radio-input {
    margin: 0;
}

/* Exceeded time checkbox styling with flex alignment */
.center-satisfaction-report .exceeded-checkbox {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between checkbox and label */
}

/* -------------------------------------------------------------------------------------- */
/* SELECT2 DROPDOWN CUSTOMIZATION FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Select2 multiple selection container base styling */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da; /* Bootstrap form control border color */
    border-radius: 0.25rem; /* Bootstrap border radius */
    min-height: 38px; /* Consistent height with other form controls */
}

    /* Selected choice styling with brand colors */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
        background-color: #931c11; /* Primary brand color */
        border-color: #931c11;
        color: white; /* White text on brand background */
    }

    /* Remove button styling for selected choices */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
        color: white; /* White remove button icon */
    }

/* -------------------------------------------------------------------------------------- */
/* CHART NAVIGATION FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Chart navigation container layout */
.center-satisfaction-report .chart-navigation {
    display: flex;
    align-items: center; /* Vertical center alignment */
}

/* Page information display styling */
.center-satisfaction-report .page-info {
    font-size: 0.9rem; /* Slightly smaller font for page info */
    color: #666; /* Muted text color */
    min-width: 80px; /* Consistent width for alignment */
    text-align: center; /* Center align page numbers */
}

/* Previous and next page buttons consistent sizing */
.center-satisfaction-report .prev-page,
.center-satisfaction-report .next-page {
    min-width: 90px; /* Consistent button width */
}

/* -------------------------------------------------------------------------------------- */
/* CHART CONTAINER FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Satisfaction chart sizing for responsive display */
.center-satisfaction-report #satisfactionChart {
    width: 100% !important; /* Full width of container */
    height: 100% !important; /* Full height of container */
}

/* -------------------------------------------------------------------------------------- */
/* ADDITIONAL LAYOUT STYLES FOR CENTER SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Table responsive container with proper overflow handling */
.center-satisfaction-report .table-responsive-csr {
    overflow-x: auto; /* Horizontal scrolling for mobile */
    max-width: 100%; /* Prevent container overflow */
    padding-right: 1rem; /* Add padding for better spacing */
}

/* Data table width specification for consistent layout */
.center-satisfaction-report #reportTable {
    width: 100%; /* Full width table */
}

/* Chart container positioning and sizing */
.center-satisfaction-report .chart-container {
    position: relative; /* Required for Chart.js positioning */
    height: 400px; /* Fixed height for consistent chart display */
}

/* Loading spinner customization for print operations */
.center-satisfaction-report .loading-spinner-csr {
    width: 4rem; /* Large spinner for visibility */
    height: 4rem; /* Square aspect ratio */
}

/* ==================================================================================== */
/* ================ END OF CENTER SATISFACTION REPORT PAGE STYLES ==================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ============= START OF AVERAGE SATISFACTION REPORT PAGE STYLES ==================== */
/* ==================================================================================== */
/* #ASR2025-AVERAGE-SATISFACTION-REPORT-STYLES
 * 
 * This section contains all CSS styles specific to the Average Satisfaction Report page.
 * Created to centralize styling and improve maintainability by moving inline styles
 * from AverageSatisfactionReport.cshtml to this dedicated section.
 * 
 * Scope: Average Satisfaction Report page (.average-satisfaction-report wrapper)
 * Dependencies: Bootstrap CSS, DataTables CSS, Remix Icons
 * Author: CSS Refactoring Tool
 * Date: August 2025
 * 
 * CSS Variables Replaced:
 *   - var(--primary-color) → #931c11 (Primary theme color)
 *   - var(--table-header-bg) → rgba(147, 28, 17, 0.1) (Primary color with 10% opacity)
 */

/* -------------------------------------------------------------------------------------- */
/* DATATABLE CUSTOMIZATION FOR AVERAGE SATISFACTION REPORT */
/* -------------------------------------------------------------------------------------- */

/* Hide DataTable sorting arrows for cleaner table appearance */
.average-satisfaction-report table.dataTable thead .sorting:after,
.average-satisfaction-report table.dataTable thead .sorting:before,
.average-satisfaction-report table.dataTable thead .sorting_asc:after,
.average-satisfaction-report table.dataTable thead .sorting_asc:before,
.average-satisfaction-report table.dataTable thead .sorting_desc:after,
.average-satisfaction-report table.dataTable thead .sorting_desc:before {
    display: none !important; /* Clean table headers without sort indicators */
}

/* -------------------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN FOR SMALL SCREENS */
/* -------------------------------------------------------------------------------------- */

/* Text wrapping for breadcrumb navigation on small screens */
@media (max-width: 768px) {
    .average-satisfaction-report .wrap-on-small-asr {
        white-space: normal !important; /* Allow text wrapping on mobile devices */
    }
}

/* -------------------------------------------------------------------------------------- */
/* BREADCRUMB NAVIGATION STYLES */
/* -------------------------------------------------------------------------------------- */

/* Breadcrumb separator styling with primary color - replaced var(--primary-color) with #931c11 */
.average-satisfaction-report .breadcrumb-item a[style*="var(--primary-color)"] {
    color: #931c11 !important; /* Primary brand color for breadcrumb separators */
}

/* -------------------------------------------------------------------------------------- */
/* RECORDS COUNT BOX STYLING */
/* -------------------------------------------------------------------------------------- */

/* Records count display box with primary color theme */
.average-satisfaction-report .records-count-box-asr {
    background-color: rgba( 147, 28, 17, 0.1 ) !important; /* Light primary color background - replaced var(--table-header-bg) */
    border: 1px solid #931c11 !important; /* Primary color border - replaced var(--primary-color) */
}

/* Records count text styling with primary color */
.average-satisfaction-report .records-count-text-asr {
    color: #931c11 !important; /* Primary color text - replaced var(--primary-color) */
    font-weight: bold !important; /* Bold text for emphasis */
}

/* ==================================================================================== */
/* ============== END OF AVERAGE SATISFACTION REPORT PAGE STYLES ===================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================ START OF EMPLOYEE PRODUCTIVITY REPORT PAGE STYLES ================ */
/* ==================================================================================== */
/* #EPR2025-EMPLOYEE-PRODUCTIVITY-REPORT-STYLES
 * 
 * This section contains all CSS styles specific to the Employee Productivity Report page.
 * Created to centralize styling and improve maintainability by moving inline styles
 * from EmployeeProductivityReport.cshtml to this dedicated section.
 * 
 * Scope: Employee Productivity Report page (.employee-productivity-report wrapper)
 * Dependencies: Bootstrap CSS, DataTables CSS, Select2 CSS, Chart.js, Remix Icons
 * Author: CSS Refactoring Tool
 * Date: August 2025
 * 
 * CSS Variables Replaced:
 *   - #931c11 (Primary theme color - Fujairah Police brand)
 *   - #ced4da (Bootstrap form border color)
 */

/* -------------------------------------------------------------------------------------- */
/* DATATABLE CUSTOMIZATION FOR EMPLOYEE PRODUCTIVITY REPORT */
/* -------------------------------------------------------------------------------------- */

/* Hide DataTable sorting arrows for cleaner table appearance */
.employee-productivity-report table.dataTable thead .sorting:after,
.employee-productivity-report table.dataTable thead .sorting:before,
.employee-productivity-report table.dataTable thead .sorting_asc:after,
.employee-productivity-report table.dataTable thead .sorting_asc:before,
.employee-productivity-report table.dataTable thead .sorting_desc:after,
.employee-productivity-report table.dataTable thead .sorting_desc:before {
    display: none !important; /* Clean table headers without sort indicators */
}

/* DataTable cell content wrapping - ensures long text doesn't break layout */
.employee-productivity-report #reportTable td,
.employee-productivity-report #reportTable th {
    white-space: normal !important; /* Allow text wrapping in cells */
    word-wrap: break-word !important; /* Break long words to prevent overflow */
    overflow-wrap: break-word !important; /* Modern CSS property for word breaking */
}

/* -------------------------------------------------------------------------------------- */
/* MODAL COMPONENTS FOR EMPLOYEE PRODUCTIVITY REPORT */
/* -------------------------------------------------------------------------------------- */

/* Custom white close button for modal headers - employee productivity specific */
.employee-productivity-report .modal-header .btn-close-white-custom-epr {
    filter: invert(1) brightness(2) !important; /* Make close button white */
    opacity: 1 !important;
    transition: all 0.3s ease; /* Smooth hover transitions */
}

    /* Close button hover effect with scaling animation */
    .employee-productivity-report .modal-header .btn-close-white-custom-epr:hover {
        opacity: 0.8 !important;
        transform: scale(1.1); /* Slight scale effect on hover */
    }

/* -------------------------------------------------------------------------------------- */
/* BUTTON STYLES FOR EMPLOYEE PRODUCTIVITY REPORT */
/* -------------------------------------------------------------------------------------- */

/* Secondary button styling with brand colors - employee productivity specific */
.employee-productivity-report .btn-secondary-epr {
    color: #931c11; /* Primary brand color - Fujairah Police brand */
    border-color: #931c11 !important;
    background-color: white !important;
}

    /* Secondary button hover state with inverted colors */
    .employee-productivity-report .btn-secondary-epr:hover {
        color: white;
        border-color: #931c11 !important;
        background-color: #931c11 !important; /* Brand color background on hover */
    }

/* -------------------------------------------------------------------------------------- */
/* FORM CONTROLS FOR EMPLOYEE PRODUCTIVITY REPORT */
/* -------------------------------------------------------------------------------------- */

/* Exceeded time checkbox styling with flex alignment */
.employee-productivity-report .exceeded-checkbox-epr {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between checkbox and label */
}

/* -------------------------------------------------------------------------------------- */
/* SELECT2 DROPDOWN CUSTOMIZATION FOR EMPLOYEE PRODUCTIVITY REPORT */
/* -------------------------------------------------------------------------------------- */

/* Select2 multiple selection container base styling */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da; /* Bootstrap form control border color */
    border-radius: 0.25rem; /* Bootstrap border radius */
    min-height: 38px; /* Consistent height with other form controls */
}

    /* Select2 selection choice styling with brand colors */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
        background-color: #931c11; /* Primary brand color background */
        border-color: #931c11; /* Primary brand color border */
        color: white; /* White text for contrast */
    }

    /* Select2 choice remove button styling */
    .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
        color: white; /* White remove button for consistency */
    }

/* ==================================================================================== */
/* ================ END OF EMPLOYEE PRODUCTIVITY REPORT PAGE STYLES ================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ================ EMPLOYEE STATISTICS REPORT PAGE STYLES ========================== */
/* ==================================================================================== */
/* 
   Hash: #ESR2025-EMPLOYEE-STATISTICS-REPORT-STYLES
   Purpose: Dedicated CSS styles for Employee Statistics Report page
   Features: DataTable styling, loading overlay, breadcrumb navigation, records count
   Scope: All styles are scoped under .employee-statistics-report to prevent conflicts
   
   Color Scheme:
   - Primary Color: #931c11 (Brand red color)
   - Table Header Background: rgba(147, 28, 17, 0.1) (Primary color with 10% opacity)
   - Text Colors: Inherited from brand guidelines
   
   Variable Replacements:
   - var(--primary-color) → #931c11 (Primary theme color)
   - var(--table-header-bg) → rgba(147, 28, 17, 0.1) (Primary color with 10% opacity)
*/

/* -------------------------------------------------------------------------------------- */
/* DATATABLE STYLES FOR EMPLOYEE STATISTICS REPORT */
/* -------------------------------------------------------------------------------------- */

/* DataTable cell styling for proper text wrapping and word breaking */
.employee-statistics-report #reportTable td,
.employee-statistics-report #reportTable th {
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important; /* Break long words */
    overflow-wrap: break-word !important; /* Modern alternative for word breaking */
}

/* -------------------------------------------------------------------------------------- */
/* BREADCRUMB NAVIGATION STYLES FOR EMPLOYEE STATISTICS REPORT */
/* -------------------------------------------------------------------------------------- */

/* Breadcrumb separator styling with primary color - replaced var(--primary-color) with #931c11 */
.employee-statistics-report .breadcrumb-item a[style*="var(--primary-color)"] {
    color: #931c11 !important; /* Primary brand color for breadcrumb separators */
}

/* Breadcrumb separator specific styling for employee statistics report */
.employee-statistics-report .breadcrumb-separator-esr {
    color: #931c11 !important; /* Primary brand color for breadcrumb separators */
}

/* -------------------------------------------------------------------------------------- */
/* RECORDS COUNT BOX STYLES FOR EMPLOYEE STATISTICS REPORT */
/* -------------------------------------------------------------------------------------- */

/* Records count box styling with primary color theme */
.employee-statistics-report .records-count-box-esr {
    background-color: rgba( 147, 28, 17, 0.1 ) !important; /* Replaced var(--table-header-bg) */
    padding: 8px 5px;
    border: 1px solid #931c11 !important; /* Replaced var(--primary-color) */
}

/* Records count text styling with primary color */
.employee-statistics-report .records-count-text-esr {
    color: #931c11 !important; /* Replaced var(--primary-color) */
    font-weight: bold;
}

/* Records count number styling with primary color and padding */
.employee-statistics-report .records-count-number-esr {
    color: #931c11 !important; /* Replaced var(--primary-color) */
    font-weight: bold;
    padding-right: 2px;
}

/* -------------------------------------------------------------------------------------- */
/* LOADING OVERLAY STYLES FOR EMPLOYEE STATISTICS REPORT */
/* -------------------------------------------------------------------------------------- */

/* Loading spinner styling for print operation with brand color */
.employee-statistics-report .loading-spinner-esr {
    width: 4rem !important;
    height: 4rem !important;
    color: #931c11 !important; /* Primary brand color for spinner */
}

/* ==================================================================================== */
/* ================ END OF EMPLOYEE STATISTICS REPORT PAGE STYLES ==================== */
/* ==================================================================================== */

/* ==================================================================================== */
/* ========================= START OF SESSION INDEX PAGE STYLES ====================== */
/* ==================================================================================== */
/*
 * SESSION INDEX PAGE STYLES
 * Hash: #SIX2025-SESSION-INDEX-PAGE-STYLES
 * 
 * This section contains all styles specific to the Session Index page (Views/Session/Index.cshtml).
 * These styles were extracted from inline CSS to improve maintainability and performance.
 *
 * FEATURES COVERED:
 * - DataTable styling with sorting controls
 * - Session details modal with responsive design
 * - Halt screen for unauthorized access
 * - Emotion badges with status indicators
 * - Duration and date badges
 * - Loading overlays and transitions
 * - Responsive breakpoints for mobile devices
 * - Custom close button styling
 *
 * SCOPING:
 * - All styles are scoped under .session-index-page wrapper to prevent conflicts
 * - Class names use -six suffix (Session Index eXtracted) to ensure uniqueness
 * 
 * CSS VARIABLES REPLACED:
 *   - var(--bs-primary) → #0d6efd (Bootstrap primary color)
 *   - var(--primary-color) → #931c11 (Primary theme color)
 *   - var(--table-header-bg) → rgba(147, 28, 17, 0.1) (Primary color with 10% opacity)
 * 
 * RESPONSIVE DESIGN:
 * - Tablet breakpoint: 768px
 * - Mobile breakpoint: 576px
 */

/* -------------------------------------------------------------------------------------- */
/* DATATABLE STYLES FOR SESSION INDEX */
/* -------------------------------------------------------------------------------------- */

/* DataTable column sorting customization */
.session-index-page .sorting-one-six {
    max-width: 1250px !important;
    width: 100% !important;
}

/* Session table layout and column constraints */
.session-index-page .sessions-table-six {
    table-layout: fixed !important;
    width: 100% !important;
}

    /* Session table cells with text overflow handling */
    .session-index-page .sessions-table-six th,
    .session-index-page .sessions-table-six td {
        min-width: 120px !important;
        max-width: 250px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal !important; /* Allow wrapping */
        word-wrap: break-word !important; /* Break long words */
        overflow-wrap: break-word !important; /* Modern alternative */
    }

/* Custom sort icons for table headers */
.session-index-page .sort-icon-six {
    cursor: pointer;
    transition: all 0.2s;
}

/* Active sort icon styling with primary color */
.session-index-page .sort-icon-active-six {
    color: #0d6efd; /* Replaced var(--bs-primary) */
}

/* Hide default DataTables sort icons */
.session-index-page table.dataTable thead .sorting:before,
.session-index-page table.dataTable thead .sorting_asc:before,
.session-index-page table.dataTable thead .sorting_desc:before,
.session-index-page table.dataTable thead .sorting:after,
.session-index-page table.dataTable thead .sorting_asc:after,
.session-index-page table.dataTable thead .sorting_desc:after {
    display: none !important;
}

/* -------------------------------------------------------------------------------------- */
/* HALT SCREEN STYLES FOR UNAUTHORIZED ACCESS */
/* -------------------------------------------------------------------------------------- */

/* Full-screen halt overlay for role-based access control */
.session-index-page .halt-screen-six {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Halt screen content container with shadow */
.session-index-page .halt-content-six {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

/* Halt screen title styling */
.session-index-page .halt-title-six {
    color: #333;
    margin-bottom: 20px;
}

/* Halt screen main message */
.session-index-page .halt-message-six {
    color: #666;
    font-size: 18px;
}

/* Halt screen secondary message */
.session-index-page .halt-submessage-six {
    color: #999;
    margin-top: 20px;
}

/* -------------------------------------------------------------------------------------- */
/* SESSION DETAILS MODAL STYLES */
/* -------------------------------------------------------------------------------------- */

/* Modal content container with modern styling */
.session-index-page .session-details-modal-content-six {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.8rem;
    overflow: hidden;
}

/* Modal header with gradient background */
.session-index-page .session-details-modal-header-six {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
    position: relative;
}

/* Modal title with emphasis */
.session-index-page .session-details-modal-title-six {
    color: #212529;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Modal body with scroll and padding */
.session-index-page .session-details-modal-body-six {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* Modal footer with background */
.session-index-page .session-details-modal-footer-six {
    border-top: 1px solid #dee2e6;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* Close button positioning */
.session-index-page .session-details-modal-close-six {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
}

/* Detail item cards with hover effects */
.session-index-page .detail-item-six {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.6rem;
    border-left: 4px solid #dc3545;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid #e9ecef;
}

    /* Detail item hover animation */
    .session-index-page .detail-item-six:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

/* Detail item label styling */
.session-index-page .detail-label-six {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

    /* Detail label icon styling */
    .session-index-page .detail-label-six i {
        margin-left: 0.5rem;
        color: #6c757d;
    }

/* Detail item value styling */
.session-index-page .detail-value-six {
    color: #212529;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------------------- */
/* BADGE STYLES FOR SESSION STATUS AND EMOTIONS */
/* -------------------------------------------------------------------------------------- */

/* Base emotion badge layout */
.session-index-page .emotion-badge-six {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Happy emotion badge - green theme */
.session-index-page .emotion-badge-happy-six {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Neutral emotion badge - yellow theme */
.session-index-page .emotion-badge-neutral-six {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Unhappy emotion badge - red theme */
.session-index-page .emotion-badge-unhappy-six {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Unknown emotion badge - gray theme */
.session-index-page .emotion-badge-unknown-six {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Duration badge with gradient background */
.session-index-page .duration-badge-six {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
}

/* Date badge with neutral styling */
.session-index-page .date-badge-six {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* -------------------------------------------------------------------------------------- */
/* CUSTOM MODAL CLOSE BUTTON STYLES */
/* -------------------------------------------------------------------------------------- */

/* White custom close button with filters */
.session-index-page .btn-close-white-custom-six {
    filter: invert(1) brightness(2) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

/* -------------------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN BREAKPOINTS */
/* -------------------------------------------------------------------------------------- */

/* Tablet and smaller devices (768px and down) */
@media (max-width: 768px) {
    .session-index-page .session-details-modal-dialog-six {
        margin: 0.5rem auto;
        max-width: 95%;
    }

    .session-index-page .session-details-modal-content-six {
        max-height: 90vh;
    }

    .session-index-page .session-details-modal-body-six {
        padding: 1rem;
        max-height: 70vh;
    }

    .session-index-page .detail-item-six {
        padding: 1rem;
    }

    .session-index-page .modal-row-six > div {
        margin-bottom: 1rem;
    }
}

/* Mobile devices (576px and down) */
@media (max-width: 576px) {
    .session-index-page .session-details-modal-header-six {
        flex-direction: column;
        text-align: center;
    }

    .session-index-page .avatar-lg-six {
        margin-bottom: 1rem;
    }

    .session-index-page .detail-label-six {
        font-size: 0.85rem;
    }

    .session-index-page .detail-value-six {
        font-size: 1rem;
    }
}

/* ====================================================================================== */
/* SESSION INDEX PAGE RESPONSIVE HORIZONTAL SCROLLING */
/* ====================================================================================== */

/* Medium screens and tablets (≤991.98px) - Horizontal scrolling activation */
@media (max-width: 991.98px) {
    .session-index-page .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(147, 28, 17, 0.1);
    }

    .session-index-page .sessions-table-six {
        min-width: 800px !important; /* Ensure table maintains readability */
        table-layout: auto !important;
        font-size: 0.9rem;
    }

        .session-index-page .sessions-table-six th,
        .session-index-page .sessions-table-six td {
            padding: 0.6rem 0.8rem !important;
            white-space: nowrap;
        }

        .session-index-page .sessions-table-six thead th {
            font-size: 0.85rem !important;
            padding: 0.5rem 0.8rem !important;
        }

    /* Enhanced sort icons for medium screens */
    .session-index-page .sort-icon-six {
        font-size: 0.7rem !important;
    }
}

/* Small mobile screens (≤575.98px) - Ultra compact layout */
@media (max-width: 575.98px) {
    .session-index-page .sessions-table-six {
        min-width: 600px !important; /* Compact minimum width for mobile */
        font-size: 0.75rem;
    }

        .session-index-page .sessions-table-six th,
        .session-index-page .sessions-table-six td {
            padding: 0.4rem 0.6rem !important;
            font-size: 0.75rem;
        }

        .session-index-page .sessions-table-six thead th {
            font-size: 0.7rem !important;
            padding: 0.4rem 0.6rem !important;
            line-height: 1.2;
        }

    /* Compact sort icons for mobile */
    .session-index-page .sort-icon-six {
        font-size: 0.6rem !important;
    }

    /* Compact emotion badges for mobile */
    .session-index-page .emotion-badge-six {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    /* Compact duration and date badges */
    .session-index-page .duration-badge-six,
    .session-index-page .date-badge-six {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* ==================================================================================== */
/* ========================== END OF SESSION INDEX PAGE STYLES ======================= */
/* ==================================================================================== */



/* ====================================================================================== */
/* =================================== START OF User Management STYLES ==================== */
/* ====================================================================================== */

/* Ensure table cells wrap text */
#usersTable td, #usersTable th {
    white-space: normal !important;
    word-wrap: break-word;
}

    /* Set max-width for specific columns to prevent excessive stretching */
    #usersTable td:nth-child(2), /* Full Name */
    #usersTable td:nth-child(3), /* Username */
    #usersTable td:nth-child(8) { /* Roles */
        max-width: 200px;
    }

    /* Center column */
    #usersTable td:nth-child(7) {
        max-width: 150px;
    }

    /* Job column */
    #usersTable td:nth-child(6) {
        max-width: 120px;
    }

    /* Control buttons column */
    #usersTable td:last-child {
        white-space: nowrap; /* Keep buttons in one line */
        width: 180px;
    }

/* Responsive adjustments */
@@media (max-width: 768px) {
    #usersTable td, #usersTable th {
        max-width: none !important;
    }
}
/* Enhanced Password Strength Meter Styles */
.password-strength-container {
    width: 100%;
    margin-top: 0.5rem;
}

.password-strength-meter {
    height: 6px;
    width: 70%;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .password-strength-meter.weak {
        background-color: #dc3545;
        width: 25%;
    }

    .password-strength-meter.medium {
        background-color: #fd7e14;
        width: 50%;
    }

    .password-strength-meter.strong {
        background-color: #28a745;
        width: 75%;
    }

    .password-strength-meter.very-strong {
        background-color: #20c997;
        width: 90%;
    }

    .password-strength-meter.extremely-strong {
        background-color: #6610f2;
        width: 100%;
    }

.password-strength-text {
    font-weight: 600;
    font-size: 0.75rem;
    text-align: left;
    width: 28%;
}

    .password-strength-text.weak {
        color: #dc3545;
    }

    .password-strength-text.medium {
        color: #fd7e14;
    }

    .password-strength-text.strong {
        color: #28a745;
    }

    .password-strength-text.very-strong {
        color: #20c997;
    }

    .password-strength-text.extremely-strong {
        color: #6610f2;
        font-weight: 700;
    }


/* ====================================================================================== */
/* =================================== END OF User Management STYLES ==================== */
/* ====================================================================================== */

/* ====================================================================================== */
/* =================================== START OF LOGIN STYLES ============================ */
/* ====================================================================================== */

.login-container-glass {
    overflow: hidden !important;
}
/* Glass effect container for login */
.login-container-glass {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 16px;
    backdrop-filter: blur(10px); /* The blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Optional border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Keep button height consistent */
#submitBtn {
    height: 50px !important;
    min-height: 50px;
}

.btn-loading-login {
    position: relative;
    background-color: #931c11 !important;
    border-color: #931c11 !important;
    color: white !important;
}

    .btn-loading-login:after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        border: 4px solid transparent;
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: button-loading-spinner 1s ease infinite;
    }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.login-check {
    accent-color: #dc3545;
}

.remember-me-check {
    accent-color: #dc3545;
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

.btn-login {
    background-color: #931c11;
    border-color: #931c11;
    color: white;
}

    .btn-login:hover {
        background-color: #aa2215;
        border-color: #931c11;
        color: white;
    }

.validation-error {
    display: block;
    width: 85%;
    margin: 5px auto 0;
    text-align: right;
    padding-right: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-control-login {
    width: 85% !important;
    padding: 10px 15px;
    font-size: 16px;
    display: block;
    margin: 0 auto 8px;
    text-align: right;
    box-sizing: border-box !important;
    color: #212529;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

    .form-control-login:focus {
        border: 1px solid #931c11;
        outline: none;
    }

.login-password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.login-password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.eye-movment {
    margin-left: 40px;
}

@media (min-width: 1441px) {
    .eye-movment {
        margin-left: 70px;
    }
}

.remember-me-container {
    width: 85%;
    margin: 0 auto 1.5rem;
    text-align: right;
}

.remember-me-inner {
    display: inline-block;
    position: relative;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

    .remember-me-label:hover {
        background-color: rgba(220, 53, 69, 0.1);
    }

.remember-me-check {
    width: 18px;
    height: 18px;
    accent-color: #dc3545;
    cursor: pointer;
    margin: 0;
}

.remember-me-text {
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.remember-me-check:focus-visible + .remember-me-text {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
    border-radius: 2px;
}
/* إضافة هذه الأنماط إلى قسم الـ style الموجود */
@media (max-width: 768px) {
    .w-60.content.container {
        width: 95% !important;
        padding: 0 10px;
    }

    .login-container-glass {
        width: 100% !important;
        min-height: 500px !important;
        padding: 20px 10px;
    }

    .form-control-login {
        width: 90% !important;
        padding: 12px 15px;
    }

    .validation-error {
        width: 90% !important;
    }

    .form-label {
        width: 90% !important;
    }

    .remember-me-container {
        width: 90% !important;
    }

    .btn-login {
        width: 70% !important;
        padding: 12px;
    }

    .login-password-toggle {
        left: 10px;
    }

    .eye-movment {
        margin-left: 30px !important;
    }

    h5.fw-semibold {
        font-size: 1.3rem;
    }

    p.text-muted {
        font-size: 1rem;
    }

    .logo-dark {
        height: 80px !important;
    }
}

@media (max-width: 480px) {
    .btn-login {
        width: 85% !important;
    }

    .form-control-login {
        font-size: 14px;
    }

    .logo-dark {
        height: 70px !important;
    }

    .login-container-glass {
        min-height: 450px !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .form-control-login {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-login {
        font-size: 15px;
    }
}

/* ====================================================================================== */
/* =================================== END OF LOGIN STYLES ============================ */
/* ====================================================================================== */

/* ========================================================================================== */
/* =================================== START OF LOGIN 2FA STYLES ============================ */
/* ========================================================================================== */

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.validation-error {
    display: block;
    width: 85%;
    margin: 5px auto 0;
    text-align: right;
    padding-right: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-label-login {
    display: block;
    width: 65%;
    margin: 0 auto 8px;
    text-align: right;
}

.auth-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    margin: 0;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.digit-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    direction: ltr;
    margin: 20px 0;
}

.digit-box {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

    .digit-box:focus {
        border-color: #931c11;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(147, 28, 17, 0.25);
    }

.submit-btn {
    margin-top: 25px;
    padding: 20px !important;
    width: 60%;
    font-size: 16px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .auth-card {
        padding: 20px 15px;
        width: 95%;
    }

    .digit-box {
        width: 35px;
        height: 45px;
        font-size: 18px;
    }

    .submit-btn {
        width: 70%;
        padding: 12px !important;
    }

    .logo-dark {
        height: 80px !important;
    }
}

@media (max-width: 480px) {
    .digit-box {
        width: 30px;
        height: 40px;
        font-size: 16px;
    }

    .submit-btn {
        width: 80%;
    }

    .logo-dark {
        height: 70px !important;
    }
}

@media (max-width: 576px) {
    .digit-box {
        font-size: 16px;
    }
}

.currentEmotion {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* Wider card */
}

/* ====================================================================================== */
/* =================================== END OF LOGIN 2FA STYLES ============================ */
/* ====================================================================================== */

/* ====================================================================================== */
/* =================================== START OF ENABLE 2FA STYLES ============================ */
/* ====================================================================================== */
.auth-key-container {
    position: relative;
    direction: ltr;
}

.auth-key {
    display: block;
    padding: 8px 35px 8px 8px;
    background: #f1f1f1;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    font-family: monospace;
    margin: 5px 0;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #4e73df;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

    .copy-btn:hover {
        background: #3a5ccc;
    }

.qr-container {
    background: white;
    padding: 5px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto 15px;
    max-width: 200px;
}

.auth-container-enable {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card-enable {
    margin: 0;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

/* Compact 6-digit input */
.code-inputs {
    display: flex;
    justify-content: center;
    direction: ltr;
    gap: 8px;
    margin: 15px 0;
}

form-label-enable {
    display: block;
    width: 65%;
    margin: 0 auto 8px;
    text-align: right;
}

.code-input {
    width: 40px;
    height: 45px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

    .code-input:focus {
        border-color: #931c11;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(147, 28, 17, 0.25);
    }

.submit-btn-enable {
    margin-top: 15px;
    padding: 20px !important;
    width: 60%;
    font-size: 16px;
}

.text-small {
    font-size: 0.85rem;
}

.logo-container {
    padding: 5px;
    margin-bottom: 10px;
}

.validation-error {
    display: block;
    width: 85%;
    margin: 5px auto 0;
    text-align: right;
    padding-right: 15px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .auth-card-enable {
        padding: 20px 15px;
        width: 95%;
    }

    .code-input {
        width: 35px;
        height: 40px;
        font-size: 16px;
    }

    .submit-btn-enable {
        width: 70%;
        padding: 10px !important;
    }

    .logo-dark {
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .code-input {
        width: 30px;
        height: 35px;
        font-size: 14px;
    }

    .submit-btn-enable {
        width: 80%;
    }

    .logo-dark {
        height: 80px !important;
    }

    .qr-container {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .code-input {
        font-size: 16px;
    }
}
/* ====================================================================================== */
/* =================================== END OF ENABLE 2FA STYLES ============================ */
/* ====================================================================================== */

.app-content {
    min-height: 10vh !important;
}

#reportTable select option {
    text-align: center;
    border: none;
}

.side-nav-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(-90deg);
}

.apexcharts-tooltip {
    box-shadow: none !important;
    border: none !important;
}

.apexcharts-tooltip-box {
    border: none !important;
    box-shadow: none !important;
}
