/* requests_common.css */

/* Variables for consistent theming */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* Import Arabic font (e.g., Noto Sans Arabic) if you want specific Arabic typography */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');
/* Updated to IBM Plex Sans Arabic */


:root {
    /* Colors */
    --primary-color: #007bff;
    /* Dovalla Blue */
    --primary-dark: #0056b3;
    --primary-light: #b0d6fa;
    /* Light blue, for light theme */
    --primary-light-transparent: rgba(0, 123, 255, 0.25);
    /* For focus outlines in light theme */
    --primary-color-rgb: 0, 123, 255;

    /* Secondary Colors */
    --secondary-color: #6c757d;
    /* Grey for secondary actions/text */
    --secondary-dark: #495057;

    /* Accent Colors */
    --accent-color: #28a745;
    /* Green for success/completion */
    --accent-dark: #218838;
    --warning-color: #ffc107;
    /* Yellow for warnings */
    --warning-dark: #e0a800;
    --danger-color: #dc3545;
    /* Red for errors/danger */
    --danger-dark: #c82333;
    --success-color: #28a745;
    /* Green */
    --success-light: #d4edda;
    /* Light green background */
    --success-dark: #155724;
    /* Dark green text */
    --info-color: #17a2b8;
    /* Cyan */
    --info-light: #d1ecf1;
    --info-dark: #0c5460;
    /* Dark cyan text */
    --danger-color-rgb: 220, 53, 69;

    /* Text */
    --text-color: #343a40;
    /* Default text color for light theme */
    --text-light: #6c757d;
    /* Lighter text for general use in light theme */
    --text-white: #ffffff;
    --text-black: #000000;
    --text-muted: #888;
    /* Added for placeholders/subtle text */

    /* Backgrounds */
    --bg-light: #f8f9fa;
    /* General light background */
    --bg-white: #ffffff;
    /* White background for cards/sections in light theme */
    --input-bg: #ffffff;
    /* Input background for light theme */
    --bg-dark-sidebar: #343a40;
    /* Specific for sidebar dark background */
    --color-background-dark: #1e1e1e;
    /* Generic dark background for modals etc. */

    /* Borders & Shadows */
    --border-color: #e9ecef;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.25);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.3);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxs: 2px;
    /* NEW: Extra small spacing for very compact elements */
}

/* Dark Theme */
body.dark-theme {
    --primary-color: #FFD700;
    /* Gold */
    --primary-dark: #DAA520;
    /* Darker Gold */
    --primary-light: #FFD700;
    /* Gold, for light text on dark primary buttons in dark theme */
    --primary-light-transparent: rgba(255, 215, 0, 0.25);
    --primary-color-rgb: 255, 215, 0;

    --secondary-color: #ADD8E6;
    /* Light Blue */
    --secondary-dark: #000000;
    /* Black for secondary actions/text in dark theme */

    /* Custom overrides for secondary button in dark mode to achieve light grey with black text */
    --btn-secondary-bg-dark: #f1f1f1;
    --btn-secondary-hover-bg-dark: #e0e0e0;
    --btn-secondary-text-dark: #000000;

    --accent-color: #FFFF00;
    /* Yellow for success/completion */
    --accent-dark: #CCCC00;
    --warning-color: #FFA500;
    /* Orange for warnings */
    --warning-dark: #CC8400;
    --danger-color: #FF4500;
    /* Orange-Red for errors/danger */
    --danger-dark: #CC3700;
    --success-color: #32CD32;
    /* LimeGreen for dark theme success */
    --success-light: #1A3E1A;
    --success-dark-surface: #008000;
    --info-color: #4682B4;
    /* SteelBlue */
    --info-light: #2A4D69;
    /* Darker SteelBlue */
    --danger-light: #8B0000;
    /* Dark Red */
    --danger-dark-surface: #8B0000;
    /* Dark Red */
    --danger-color-rgb: 255, 69, 0;

    /* Text Colors */
    --text-color: #E0E0E0;
    /* Default text color for dark theme */
    --text-light: #AAAAAA;
    /* Lighter text for general use in dark theme */
    --text-white: #ffffff;
    --text-black: #000000;
    --text-muted: #666;
    /* Muted text for dark theme */

    /* Backgrounds */
    --bg-light: #121212;
    /* General dark background */
    --bg-dark: #121212;
    /* More specific dark background, potentially for elements like table rows hover */
    --bg-white: #1e1e1e;
    /* 'White' elements in dark theme (cards, sections) */
    --bg-dark-surface: #1e1e1e;
    /* Semantic alias for dark surface backgrounds */
    --input-bg: #2a2a2a;
    /* Input background for dark theme */
    --bg-dark-sidebar: #000000;
    /* Specific for sidebar dark background */
    --color-background-dark: #121212;
    /* Ensure consistency for generic modal background */

    --border-color: #333333;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.5);
    --shadow-dark: 0 6px 18px rgba(0, 0, 0, 0.4);
    /* Re-using shadow-medium for consistency */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'IBM Plex Sans Arabic', sans-serif;
    /* Poppins for Latin, IBM Plex Sans Arabic for Arabic */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* Allow content to stack below navbar */
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--bg-light);
    transition: background-color 0.3s, color 0.3s;
    /* Add transition for theme change */
    overflow-x: hidden;
    /* Added to prevent overall horizontal scroll */
}

/* Base RTL styles for the entire document */
html[dir="rtl"] body {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif;
    /* Explicitly prioritize Arabic for RTL for RTL content */
    text-align: right;
    /* Default text alignment for RTL */
    direction: rtl;
    /* Set base direction to right-to-left */
}

/* Universal box-sizing for predictable widths */
html {
    box-sizing: border-box;
    overflow-y: scroll;
    /* Always show scrollbar to prevent layout shifts */
    overflow-x: hidden;
    /* Added to prevent overall horizontal scroll */
}

/* FIX: Disable main scrollbar when a modal is active */
html.no-scroll {
    overflow: hidden;
}


*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Reset default margins/paddings - partially redundant with global * rule, but good for clarity */
html,
body {
    margin: 0;
    padding: 0;
}

/* Dark Theme Toggle (example, would need JS to apply 'dark-theme' class to body) */


body.dark-theme .request-container {
    background-color: var(--bg-dark-surface);
    /* Use general dark surface variable */
    border-color: var(--border-color);
    /* Use general border variable */
    box-shadow: var(--shadow-dark);
    /* Use general dark shadow variable */
}

body.dark-theme .form-section h2 {
    color: var(--primary-light);
    /* Adjusted to primary-light for better contrast in dark mode */
}

body.dark-theme label {
    color: var(--text-color);
    /* Use general text color variable */
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background-color: var(--input-bg);
    /* Use general input background variable */
    color: var(--text-color);
    /* Use general text color variable */
    border-color: var(--border-color);
    /* Use general border variable */
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    box-shadow: 0 0 0 0.2rem var(--primary-light-transparent);
    /* Use general transparent primary for focus ring */
}

textarea {
    resize: vertical;
    /* Allow vertical resizing only */
}

/* Navbar Styles - Reusing common styles from TicketSys for consistency */
.main-navbar {
    width: 100%;
    height: 70px;
    /* Added this line to set a consistent height */
    background-color: var(--bg-dark-sidebar);
    color: var(--text-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-medium);
    margin-bottom: var(--spacing-lg);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.main-navbar .navbar-left,
.main-navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.main-navbar .navbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
    /* Use primary-light for logo/title in dark navbar */
    white-space: nowrap;
    /* Prevent title from wrapping */
}

/* MODIFICATION: Adjustments for the 'Dovalla' word style and font size */
.main-navbar .app-name {
    /* Target the specific app name span */
    font-size: 1.6rem;
    /* Increased font size for prominence */
    font-weight: 700;
    /* Bold for strong presence */
    color: var(--primary-light);
    /* Default for dark navbar in light theme */
    white-space: nowrap;
    transition: color 0.3s ease;
    /* Smooth transition for theme change */
}

/* MODIFICATION: Remove underline for Dovalla logo link */
.main-navbar .logo-link {
    text-decoration: none;
    /* Removed underline from the link */
}


body.dark-theme .main-navbar .app-name {
    color: var(--primary-light);
    /* Maintain gold in dark theme for dark navbar */
}

/* Ensure proper font family for Arabic in RTL */
html[dir="rtl"] .main-navbar .app-name {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif;
    /* Explicitly set Arabic font for RTL */
    font-size: 1.8rem;
    /* Slightly larger for Arabic for visual balance */
}

html[dir="ltr"] .main-navbar .app-name {
    font-family: 'Poppins', 'IBM Plex Sans Arabic', sans-serif;
    /* Explicitly set Latin font for LTR */
}

/* END MODIFICATION */

body.dark-theme .main-navbar .navbar-title {
    color: var(--primary-light);
    /* Keep consistent with light mode */
}

.main-navbar .navbar-icon {
    background: none;
    border: none;
    color: var(--text-white);
    /* White icons for dark navbar */
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
    display: flex;
    /* For consistent icon centering */
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* Ensure icon doesn't add extra height */
}

.main-navbar .navbar-icon:hover {
    color: var(--primary-light);
    /* Light primary for hover effect */
    background-color: rgba(255, 255, 255, 0.1);
}

/* Add padding between language icon and text */
/* Apply IBM Plex Sans Arabic to the span regardless of overall page direction */
.main-navbar .lang-toggle-btn span {
    padding-left: var(--spacing-sm);
    /* Keep LTR padding as default */
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
    /* Apply Arabic font specifically */
}

html[dir="rtl"] .main-navbar .lang-toggle-btn span {
    padding-left: 0;
    padding-right: var(--spacing-sm);
}

/* Dark mode specific navbar styles */
body.dark-theme .main-navbar {
    background-color: var(--bg-dark-sidebar);
    /* Keep consistent with light mode */
    color: var(--text-white);
    /* Keep consistent with light mode */
}

body.dark-theme .main-navbar .navbar-title {
    color: var(--primary-light);
    /* Keep consistent with light mode */
}

body.dark-theme .main-navbar .navbar-icon {
    color: var(--text-white);
    /* Keep consistent with light mode */
}

body.dark-theme .main-navbar .navbar-icon:hover {
    color: var(--primary-light);
    /* Keep consistent with light mode */
    background-color: rgba(0, 0, 0, 0.2);
}

/* Main content container style - ensures it remains centered */
.request-container {
    max-width: 1300px;
    /* Max width of the form container */
    width: 100%;
    /* Take full available width up to max-width */
    margin: var(--spacing-lg) auto;
    /* Center the container horizontally */
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    /* Crucial for padding/border calculation */
    margin-top: calc(70px + var(--spacing-lg));
    /* Push content below fixed navbar */
}


/* Other form styles remain the same */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1rem;
    /* Increased font size for labels */
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
/* ADDED THIS LINE */
select,
textarea {
    width: 100%;
    /* MODIFIED: Common styles for all inputs and selects for uniformity */
    padding: 0 12px; /* Adjusted padding to match Select2 more closely */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--input-bg);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    line-height: 1.5; /* Ensure consistent line height for text within input fields */
    height: 40px; /* Set a consistent height */
}

/* Specific styling for native select elements to unify with Select2 */
select {
    -webkit-appearance: none; /* Remove default arrow on WebKit browsers */
    -moz-appearance: none;    /* Remove default arrow on Firefox */
    appearance: none;         /* Remove default arrow for other browsers */
    /* Custom SVG arrow */
    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='%236c757d' 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");
    background-repeat: no-repeat;
    background-position: right 12px center; /* Position arrow on right, 12px from edge */
    background-size: 16px; /* Size of the arrow */
    padding-right: 35px; /* Add space for the custom arrow */
}

body.dark-theme select {
    /* Dark theme arrow color - ensure this contrasts well */
    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='%23ADD8E6' 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");
}


/* Apply IBM Plex Sans Arabic to inputs/selects/textareas in RTL context */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .btn {
    /* Added .btn here for consistency */
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
}

/* RTL specific adjustments for select with custom arrow */
html[dir="rtl"] select {
    background-position: left 12px center; /* Position arrow on left for RTL */
    padding-left: 35px; /* Add space for the custom arrow on the left */
    padding-right: 12px; /* Revert right padding */
}

/* Apply IBM Plex Sans Arabic to placeholders in RTL context */
html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
    /* !important might be needed if other rules are very specific, but try without first */
}

/* Webkit (Chrome, Safari) */
html[dir="rtl"] input::-webkit-input-placeholder,
html[dir="rtl"] textarea::-webkit-input-placeholder {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
}

/* Mozilla Firefox 4 to 18 */
html[dir="rtl"] input:-moz-placeholder,
html[dir="rtl"] textarea:-moz-placeholder {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
}

/* Mozilla Firefox 19+ */
html[dir="rtl"] input::-moz-placeholder,
html[dir="rtl"] textarea::-moz-placeholder {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
}

/* Microsoft Edge */
html[dir="rtl"] input:-ms-input-placeholder,
html[dir="rtl"] textarea:-ms-input-placeholder {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif !important;
}


input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--primary-light-transparent);
    /* Use general transparent primary for focus ring */
}

textarea {
    height: auto;
    min-height: 80px; /* Maintain a minimum height for textareas */
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    /* Use small border radius from TicketSys */
    cursor: pointer;
    font-size: 1rem;
    /* Base font size for buttons (applies to Arabic by default) */
    font-weight: 500;
    /* Base font weight for buttons (applies to Arabic by default) */
    text-decoration: none;
    transition: all 0.2s ease;
    /* Use smooth transition from TicketSys */
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
    /* Prevent text wrapping from TicketSys */
    gap: var(--spacing-sm);
    /* Use gap from TicketSys */

}

/* Apply IBM Plex Sans Arabic to buttons in RTL context */
html[dir="rtl"] .btn {
    font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif;
}

/* Specific styles for LTR (English) buttons */
html[dir="ltr"] .btn {
    font-size: 1.1rem;
    /* Slightly larger for English */
    font-weight: 700;
    /* Bold for English */
}

/* Ensure Font Awesome icons render correctly */
.fas,
.far,
.fab {
    /* Explicitly set Font Awesome font family to override any generic font */
    font-family: 'Font Awesome 6 Free', sans-serif;
    /* For solid icons, typically requires font-weight 900 */
    font-weight: 900;
}

.far {
    /* For regular icons, typically requires font-weight 400 */
    font-weight: 400;
}


/* RTL for button icons (from TicketSys) */
html[dir="rtl"] .btn .fas,
html[dir="rtl"] .btn .lucide {
    margin-right: 0;
    /* margin-left: 8px; */
}

html[dir="rtl"] .btn .fa-spinner {
    margin-right: 0;
    margin-left: 5px;
}


.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

body.dark-theme .btn-primary {
    background-color: var(--primary-light);
    /* Changed to primary-light for dark theme */
    color: var(--text-black);
    /* Changed to black for contrast */
    border-color: var(--primary-light);
}

body.dark-theme .btn-primary:hover {
    background-color: var(--primary-dark);
    /* Darker gold on hover */
    border-color: var(--primary-dark);
    color: var(--text-black);
}


.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    /* Use secondary-dark from new variables */
    border-color: var(--secondary-dark);
    color: var(--text-white);
}

body.dark-theme .btn-secondary {
    background-color: var(--bg-dark-surface);
    /* Use dark surface background */
    color: var(--primary-light);
    /* Use primary-light for text */
    border-color: var(--primary-light);
    /* Use primary-light for border */
}

body.dark-theme .btn-secondary:hover {
    background-color: var(--primary-dark);
    /* Use primary-dark for hover background */
    color: var(--text-black);
    /* Use black for text on hover */
    border-color: var(--primary-dark);
    /* Use primary-dark for hover border */
}


.btn-danger {
    background-color: var(--danger-color);
    color: var(--text-white);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: var(--danger-dark);
    /* Use danger-dark from new variables */
    border-color: var(--danger-dark);
}

body.dark-theme .btn-danger {
    background-color: var(--danger-dark);
    /* Use danger-dark from new variables */
    color: var(--text-white);
}

body.dark-theme .btn-danger:hover {
    background-color: var(--danger-color);
    /* Use danger-color from new variables */
}


.btn-success {
    /* Added to ensure consistency */
    background-color: var(--success-color);
    color: var(--text-white);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: var(--success-dark);
    border-color: var(--success-dark);
}

body.dark-theme .btn-success {
    background-color: var(--success-color);
    color: var(--text-black);
}

body.dark-theme .btn-success:hover {
    background-color: var(--success-dark);
    color: var(--text-black);
}


/* Table styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    /* Allows horizontal scrolling for small screens */
    margin-bottom: var(--spacing-md);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

body.dark-theme table {
    background-color: var(--bg-dark-surface);
    /* Use dark surface background */
    box-shadow: var(--shadow-dark);
    /* Use general dark shadow */
    border-color: var(--border-color);
    /* Use general dark border */
}

table th,
table td {
    padding: var(--spacing-md);
    /* Use general spacing variable */
    border: 1px solid var(--border-color);
    /* Use general border variable */
    text-align: center;
    /* Default center alignment */
    vertical-align: middle;
}

body.dark-theme table th,
body.dark-theme table td {
    border-color: var(--border-color);
    /* Use general dark border */
    color: var(--text-color);
    /* Use general text color */
}

table th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    /* Keep this for light theme */
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Dark Theme overrides for table headers */
body.dark-theme table th {
    background-color: var(--primary-dark);
    color: var(--text-black) !important;
    /* Use the black text variable defined for dark theme */
}


table tr:nth-child(even) {
    background-color: var(--bg-light);
    /* Use common bg-light for even rows */
}

body.dark-theme table tr:nth-child(even) {
    background-color: var(--bg-dark);
    /* Use common bg-dark for dark theme even rows */
}

table tr:hover {
    background-color: var(--primary-light-transparent);
    /* Use light primary for hover */
}

body.dark-theme table tr:hover {
    background-color: var(--bg-dark-sidebar);
    /* Darker hover for dark theme */
}

/* RTL for table headers and cells */
html[dir="rtl"] table th {
    text-align: center;
    /* Center horizontally for Arabic */
    font-size: 1rem;
    /* Slightly bigger font size for Arabic */
    font-weight: 700;
    /* Bold for Arabic */
}

/* Override for the specific Actions column to always be centered */
/* This targets the last column in both LTR and RTL */
table th:last-child,
table td:last-child {
    text-align: center;
}

/* New rule to center the last header in RTL specifically */
html[dir="rtl"] table th:last-child {
    text-align: center;
}

.requests-sidebar {
    width: 250px;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    background-color: var(--bg-dark-sidebar);
    color: var(--text-white);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* RTL specific styles for the sidebar */
html[dir="rtl"] .requests-sidebar {
    left: auto;
    right: 0;
}

/* Sidebar Header */
.requests-sidebar .sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.requests-sidebar .sidebar-header .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center logo and text */
    text-decoration: none;
    color: var(--primary-light);
    /* Use primary-light for brand name in dark sidebar */
    font-size: 1.2rem;
    font-weight: 700;
}

/* Sidebar Navigation */
.requests-sidebar .sidebar-nav {
    flex-grow: 1;
    /* Allow nav to take available space */
    padding: var(--spacing-md) 0;
}

.requests-sidebar .sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requests-sidebar .sidebar-nav li {
    margin-bottom: var(--spacing-md);
}

.requests-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    /* Increase padding to make tabs taller */
    padding: var(--spacing-md) var(--spacing-md);
    /* Changed from var(--spacing-sm) */
    padding-top: var(--spacing-md);
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    /* Increase font size */
    font-size: 1.1rem;
    /* Added font-size */
}

.requests-sidebar .sidebar-nav a i {
    font-size: 1.1rem;
    margin-right: var(--spacing-sm);
    color: var(--secondary-color);
    /* Lighter grey for icons */
    transition: color 0.2s ease;
}

html[dir="rtl"] .requests-sidebar .sidebar-nav a i {
    margin-right: 0;
    margin-left: var(--spacing-sm);
}

.requests-sidebar .sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    /* Light transparent background on hover */
    color: var(--primary-light);
    /* Gold text on hover */
}

.requests-sidebar .sidebar-nav a:hover i {
    color: var(--primary-light);
    /* Gold icon on hover */
}

/* Active navigation link */
.requests-sidebar .sidebar-nav a.active {
    background-color: var(--primary-color);
    /* Blue background for active link */
    color: var(--text-white);
    /* White text for active link */
    font-weight: 600;
}

.requests-sidebar .sidebar-nav a.active i {
    color: var(--text-white);
    /* White icon for active link */
}

/* Dark theme overrides for sidebar nav */
body.dark-theme .requests-sidebar {
    background-color: var(--bg-dark-sidebar);
    /* Black for sidebar in dark theme */
    color: var(--text-color);
    /* Light grey text */
    box-shadow: var(--shadow-dark);
}

body.dark-theme .requests-sidebar .sidebar-header .logo-link {
    color: var(--primary-light);
    /* Gold for brand name in dark theme */
}

body.dark-theme .requests-sidebar .sidebar-nav a {
    color: var(--text-light);
    /* Lighter text for links in dark theme */
}

body.dark-theme .requests-sidebar .sidebar-nav a i {
    color: var(--text-muted);
    /* Muted grey for icons in dark theme */
}

body.dark-theme .requests-sidebar .sidebar-nav a:hover {
    background-color: rgba(255, 215, 0, 0.1);
    /* Gold transparent on hover */
    color: var(--primary-light);
    /* Gold text on hover */
}

body.dark-theme .requests-sidebar .sidebar-nav a:hover i {
    color: var(--primary-light);
    /* Gold icon on hover */
}

body.dark-theme .requests-sidebar .sidebar-nav a.active {
    background-color: var(--primary-dark);
    /* Darker gold for active link */
    color: var(--text-black);
    /* Black text for active link */
}

body.dark-theme .requests-sidebar .sidebar-nav a.active i {
    color: var(--text-black);
    /* Black icon for active link */
}


/* Sidebar Footer */
.requests-sidebar .sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.requests-sidebar .sidebar-footer .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
    background-color: var(--secondary-color);
    /* Grey for report bug button */
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.requests-sidebar .sidebar-footer .btn:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

body.dark-theme .requests-sidebar .sidebar-footer .btn {
    background-color: var(--primary-light);
    /* Gold for button in dark theme */
    color: var(--text-black);
    /* Black text for button */
    border-color: var(--primary-light);
}

body.dark-theme .requests-sidebar .sidebar-footer .btn:hover {
    background-color: var(--primary-dark);
    /* Darker gold on hover */
    border-color: var(--primary-dark);
    color: var(--text-black);
}

body.dark-theme .requests-sidebar .sidebar-footer .powered-by-text-sidebar {
    color: var(--text-muted);
    /* Muted grey for powered by in dark theme */
}


/* Add to requests_common.css */

/* Navbar Center (Search Box) */
.main-navbar .navbar-center {
    flex-grow: 1;
    /* Allow search box to take available center space */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 500px;
    /* Limit search box width */
    margin: 0 var(--spacing-md);
}

.main-navbar .search-box {
    position: relative;
    width: 100%;
}

.main-navbar .search-box input[type="text"] {
    width: 100%;
    padding: 8px 15px 8px 40px;
    /* Adjust padding for icon */
    border-radius: 20px;
    /* Rounded search input */
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

body.dark-theme .main-navbar .search-box input[type="text"] {
    background-color: var(--bg-dark-surface);
    /* Darker input background */
    border-color: var(--border-color);
    color: var(--text-color);
}

.main-navbar .search-box input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light-transparent);
    outline: none;
}

.main-navbar .search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

html[dir="rtl"] .main-navbar .search-box input[type="text"] {
    padding: 8px 40px 8px 15px;
    /* Adjust padding for icon in RTL */
}

html[dir="rtl"] .main-navbar .search-box .search-icon {
    left: auto;
    right: 15px;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    /* Position below the input */
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 100;
    display: none;
    /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-direction: column;
    /* Ensure content stacks */
}

body.dark-theme .search-results-dropdown {
    background-color: var(--bg-dark-surface);
    border-color: var(--border-color);
    box-shadow: var(--shadow-dark);
}

.search-results-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-results-dropdown .search-results-empty,
.search-results-dropdown .search-results-category {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-results-dropdown .search-results-category {
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    padding-top: var(--spacing-md);
}

body.dark-theme .search-results-dropdown .search-results-category {
    color: var(--primary-light);
    border-color: var(--border-color);
}

.search-results-dropdown .search-result-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

body.dark-theme .search-results-dropdown .search-result-item {
    color: var(--text-color);
    border-color: var(--border-color);
}

.search-results-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .search-result-item:hover {
    background-color: var(--primary-light-transparent);
}

body.dark-theme .search-results-dropdown .search-result-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    /* Gold transparent */
}

.search-results-dropdown .search-result-item .icon {
    font-size: 1em;
    color: var(--primary-color);
    flex-shrink: 0;
}

body.dark-theme .search-results-dropdown .search-result-item .icon {
    color: var(--primary-light);
}

.search-results-dropdown .search-result-item .title {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.search-results-dropdown .search-result-item .type {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-light);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

body.dark-theme .search-results-dropdown .search-result-item .type {
    background-color: var(--input-bg);
    color: var(--text-light);
}

/* Notification Wrapper & Popup */
.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--danger-color);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    padding: 3px 6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-dark-sidebar);
    /* Border to stand out on navbar */
}

body.dark-theme .notification-badge {
    background-color: var(--danger-color);
    /* Keep red for urgency */
    border-color: var(--bg-dark-sidebar);
    /* Match dark navbar */
}

.notification-popup {
    position: absolute;
    top: calc(100% + 10px);
    /* Position below the bell */
    right: 0;
    width: 300px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-direction: column;
    /* Ensure content stacks */
}

html[dir="rtl"] .notification-popup {
    left: 0;
    right: auto;
}

body.dark-theme .notification-popup {
    background-color: var(--bg-dark-surface);
    border-color: var(--border-color);
    box-shadow: var(--shadow-dark);
}

.notification-popup.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.notification-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

body.dark-theme .notification-popup-header {
    background-color: var(--input-bg);
    border-color: var(--border-color);
}

.notification-popup-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.notification-popup-body {
    max-height: 250px;
    /* Scrollable area for notifications */
    overflow-y: auto;
    padding: var(--spacing-sm) 0;
}

.notification-popup-body .notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-popup-body .notification-item:hover {
    background-color: var(--primary-light-transparent);
}

body.dark-theme .notification-popup-body .notification-item {
    border-color: var(--border-color);
}

body.dark-theme .notification-popup-body .notification-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    /* Gold transparent */
}


.notification-popup-body .notification-item:last-child {
    border-bottom: none;
}

.notification-popup-body .notification-item .notification-icon {
    font-size: 1.1em;
    color: var(--primary-color);
    /* Default icon color */
    flex-shrink: 0;
    padding-top: 2px;
    /* Align with text baseline */
}

body.dark-theme .notification-popup-body .notification-item.success .notification-icon {
    color: var(--success-color);
}

body.dark-theme .notification-popup-body .notification-item.error .notification-icon {
    color: var(--danger-color);
}

body.dark-theme .notification-popup-body .notification-item.info .notification-icon {
    color: var(--info-color);
}


.notification-popup-body .notification-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notification-popup-body .notification-message {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 2px;
}

body.dark-theme .notification-popup-body .notification-message {
    color: var(--text-color);
}

.notification-popup-body .notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-popup-body .notification-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: var(--spacing-xs);
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.notification-popup-body .notification-dismiss:hover {
    opacity: 1;
    color: var(--danger-color);
}

body.dark-theme .notification-popup-body .notification-dismiss:hover {
    color: var(--danger-color);
}


.notification-popup-body .no-notifications-message {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-muted);
    font-style: italic;
}

/* User Profile Wrapper & Dropdown */
.user-profile-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-btn {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
    gap: var(--spacing-sm);
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

body.dark-theme .user-profile {
    color: var(--text-white);
}

body.dark-theme .user-profile:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-light);
}

.user-initials-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

body.dark-theme .user-initials-avatar {
    background-color: var(--primary-light);
    color: var(--text-black);
}


.user-profile .user-name {
    font-weight: 500;
    white-space: nowrap;
    /* Keep text on a single line */
    overflow: visible;
    /* Changed to visible to allow full name to show */
    text-overflow: clip;
    /* Changed to clip to avoid ellipsis, though 'visible' makes it not needed */
    max-width: unset;
    /* Removed max-width restriction */
}

.user-profile .user-role {
    font-size: 0.8rem;
    color: var(--text-white);
    /* Lighter color for role */
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

body.dark-theme .user-profile .user-role {
    background-color: var(--primary-dark);
    /* Changed from rgba(0, 0, 0, 0.2) to a solid color */
    color: var(--text-black);
    /* Changed from var(--text-light) to black for better contrast */
}


.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    /* Position below the profile button */
    right: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 180px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-direction: column;
    /* Ensure content stacks */
}

html[dir="rtl"] .user-dropdown {
    left: 0;
    right: auto;
}

body.dark-theme .user-dropdown {
    background-color: var(--bg-dark-surface);
    border-color: var(--border-color);
    box-shadow: var(--shadow-dark);
}

.user-dropdown.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown .btn-text-icon {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.dark-theme .user-dropdown .btn-text-icon {
    color: var(--text-color);
}


.user-dropdown .btn-text-icon:hover {
    background-color: var(--primary-light-transparent);
    color: var(--primary-color);
}

body.dark-theme .user-dropdown .btn-text-icon:hover {
    background-color: rgba(255, 215, 0, 0.1);
    /* Gold transparent */
    color: var(--primary-light);
}

.user-dropdown .btn-text-icon i {
    font-size: 1em;
    width: 20px;
    /* Fixed width for icon alignment */
    text-align: center;
}

/* Responsive adjustment for navbar on smaller screens */
@media (max-width: 992px) {
    .main-navbar {
        flex-wrap: wrap;
        /* Allow items to wrap */
        height: auto;
        /* Auto height for wrapped content */
        padding-bottom: var(--spacing-sm);
        /* Add padding at bottom when wrapped */
    }

    .main-navbar .navbar-left,
    .main-navbar .navbar-right {
        width: 100%;
        justify-content: space-between;
        margin-bottom: var(--spacing-sm);
    }

    .main-navbar .navbar-center {
        order: 3;
        /* Push search to the bottom row */
        width: 100%;
        max-width: unset;
        /* Allow full width on small screens */
        margin: 0;
        /* Remove horizontal margin */
        padding: 0 var(--spacing-md);
        /* Add side padding */
    }

    .main-navbar .navbar-right {
        margin-left: 0;
        /* Adjust spacing */
    }

    .main-navbar .notification-wrapper,
    .main-navbar .user-profile-wrapper {
        margin-right: 0;
        /* Adjust spacing */
    }
}

@media (max-width: 576px) {
    .main-navbar .navbar-left .app-name {
        font-size: 1rem;
        /* Smaller font for app name */
    }

    .main-navbar .navbar-icon {
        font-size: 1rem;
        /* Smaller icons */
    }


}

.user-profile .user-dropdown-arrow {
    margin-left: var(--spacing-xs);
    /* Small space from user role */
    font-size: 0.8em;
    /* Slightly smaller arrow */
    transition: transform 0.2s ease;
}

/* Rotate arrow when dropdown is active */
.user-profile-wrapper .user-dropdown.active+.user-profile .user-dropdown-arrow {
    transform: rotate(180deg);
}

/* For RTL direction */
html[dir="rtl"] .user-profile .user-dropdown-arrow {
    margin-left: 0;
    margin-right: var(--spacing-xs);
}

/* Generic Modal Backdrop (for info, confirmation, reauth, bug modals) */
.info-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1005;
    /* Higher than other modals and navbar/sidebar */
    opacity: 0;
    /* Hidden by default for transition */
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    /* Disable interaction when hidden */
}

.info-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
    /* Enable interaction when active */
}

/* Specific modal content styles for generic modals */
.info-modal-content {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: translateY(0);
    /* Ensure no initial translateY */
    transition: transform 0.3s ease-in-out, background-color 0.3s, border-color 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    color: var(--text-color);
    /* Ensure text color is inherited */
}

body.dark-theme .info-modal-content {
    background-color: var(--bg-dark-surface);
    border-color: var(--border-color);
    box-shadow: var(--shadow-dark);
    color: var(--text-color);
}

.info-modal-content .info-modal-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

body.dark-theme .info-modal-content .info-modal-icon {
    color: var(--primary-light);
}

.info-modal-content .info-modal-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

body.dark-theme .info-modal-content .info-modal-title {
    color: var(--primary-light);
}

.info-modal-content .info-modal-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
}

body.dark-theme .info-modal-content .info-modal-message {
    color: var(--text-color);
}

.info-modal-content .close-modal-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    z-index: 1;
    /* Ensure it's above content */
}

html[dir="rtl"] .info-modal-content .close-modal-icon {
    left: 15px;
    right: auto;
}

.info-modal-content .close-modal-icon:hover {
    color: var(--danger-color);
}

body.dark-theme .info-modal-content .close-modal-icon {
    color: var(--text-muted);
}

body.dark-theme .info-modal-content .close-modal-icon:hover {
    color: var(--danger-color);
}

/* Password input group within modals */
.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 40px;
    /* Space for toggle button */
}

.password-input-group .password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

html[dir="rtl"] .password-input-group .password-toggle-btn {
    left: 10px;
    right: auto;
}

.password-input-group .password-toggle-btn:hover {
    color: var(--primary-color);
}

body.dark-theme .password-input-group .password-toggle-btn {
    color: var(--text-light);
}

body.dark-theme .password-input-group .password-toggle-btn:hover {
    color: var(--primary-light);
}

.field-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
    text-align: left;
}

/* Specific styling for role change modal */
.role-change-details {
    display: flex;
    flex-direction: row;
    /* Changed to row */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
    /* Add gap for spacing between role fields and arrow */
}

.role-change-details .role-field {
    display: flex;
    /* Make it a flex container to align label and role vertically */
    flex-direction: column;
    /* Stack label and role vertically */
    align-items: center;
    /* Center content horizontally within the field */
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    min-width: 180px;
}

body.dark-theme .role-change-details .role-field {
    background-color: var(--input-bg);
    border-color: var(--border-color);
}

.role-change-details .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.role-change-details .role {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

body.dark-theme .role-change-details .role {
    color: var(--primary-light);
}

.role-change-details .role-arrow {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Add RTL specific style for the arrow icon */
html[dir="rtl"] .role-change-details .role-arrow {
    transform: rotate(180deg);
    /* Rotate for RTL if the icon is fixed to point right */
}


/* Bug report modal content overrides */
.bug-report-modal-content {
    max-width: 700px;
    /* Wider for bug reports */
    text-align: left;
    /* Align content to left */
}

.bug-report-modal-content .form-group {
    margin-bottom: var(--spacing-md);
}

.bug-report-modal-content .form-group label {
    font-size: 1rem;
}

.bug-report-modal-content .full-width-grid {
    grid-column: span 2;
    /* Ensure these span full width in grid layout */
}

.bug-report-modal-content .form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .bug-report-modal-content .form-row-grid {
        grid-template-columns: 1fr;
        /* Stack on small screens */
    }
}

.bug-report-modal-content .upload-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bug-report-modal-content .file-name-display {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.bug-report-modal-content .upload-progress-container {
    display: none;
    /* Hidden by default, shown by JS */
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.progress-ring {
    transform: rotate(-90deg);
    /* Start from top */
}

.progress-ring-track {
    stroke: var(--border-color);
}

.progress-ring-bar {
    stroke: var(--primary-color);
    transition: stroke-dashoffset 0.35s;
    stroke-dasharray: 81.68;
    /* 2 * PI * 13 */
    stroke-dashoffset: 81.68;
    /* Full circle */
}

body.dark-theme .progress-ring-bar {
    stroke: var(--primary-light);
}

.upload-percentage {
    font-size: 0.85rem;
    color: var(--text-color);
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.image-preview-item .remove-image-btn:hover {
    background-color: var(--danger-dark);
}

.upload-status-message {
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    display: none;
    /* Hidden by default */
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.upload-status-message.info {
    background-color: var(--info-light);
    color: var(--info-dark);
}

.upload-status-message.success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.upload-status-message.error {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

body.dark-theme .upload-status-message.info {
    background-color: rgba(70, 130, 180, 0.2);
    color: var(--info-color);
}

body.dark-theme .upload-status-message.success {
    background-color: rgba(50, 205, 50, 0.2);
    color: var(--success-color);
}

body.dark-theme .upload-status-message.error {
    background-color: rgba(255, 69, 0, 0.2);
    color: var(--danger-color);
}

/* Spinner overlay styles - unified and moved to common.css */
.content-overlay-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute; /* Changed to match requests_users.css */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10; /* Changed to match requests_users.css */
}

body.dark-theme .content-overlay-spinner {
    background-color: rgba(30, 30, 30, 0.9);
}

.spinner {
    border: 8px solid var(--border-color); /* Changed to use theme variable */
    border-top: 8px solid var(--primary-color); /* Changed to use theme variable */
    border-radius: 50%;
    width: 60px; /* Changed to match requests_users.css */
    height: 60px; /* Changed to match requests_users.css */
    animation: spin 2s linear infinite; /* Changed to match requests_users.css */
    margin-bottom: var(--spacing-md); /* Keep margin for text */
}

body.dark-theme .spinner {
    border-top: 8px solid var(--primary-light); /* Ensure theme applies */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.content-overlay-spinner p {
    margin-top: 15px;
    font-size: 1.2em;
    color: var(--text-color); /* Use theme variable for text color */
}