/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

/* CSS Variables for theming */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.login-header p {
    color: var(--text-color);
    margin-bottom: 30px;
    opacity: 0.8;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 40px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.language-switcher {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-switcher {
    margin-top: 20px;
}

.theme-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.theme-btn:hover {
    background: #545b62;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-color);
}

.dashboard-header {
    background: var(--card-bg);
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left h1 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.header-left p {
    color: var(--text-color);
    opacity: 0.8;
}

.user-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.user-role-badge.role-admin {
    background: #dc3545;
    color: white;
}

.user-role-badge.role-manager {
    background: #ffc107;
    color: #212529;
}

.user-role-badge.role-user {
    background: #17a2b8;
    color: white;
}

.user-role-badge.role-audit {
    background: #6f42c1;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    justify-content: space-between;
}

.lang-dropdown-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.lang-dropdown-btn i.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.lang-dropdown-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    overflow: hidden;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.lang-option.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.lang-option.active:hover {
    background: var(--primary-color);
    color: white;
}

.lang-option .flag {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.lang-option .fas.fa-check {
    margin-left: auto;
    color: var(--primary-color);
    font-size: 12px;
}

.lang-option.active .fas.fa-check {
    color: var(--primary-color);
}

.lang-option:hover .fas.fa-check {
    color: white;
}

/* Theme Toggle Styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.theme-toggle-slider {
    width: 50px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle-handle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-icon {
    font-size: 10px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Dark mode theme toggle */
.theme-dark .theme-toggle-slider {
    background: var(--primary-color);
}

.theme-dark .theme-toggle-handle {
    transform: translateX(26px);
    background: white;
}

.theme-dark .theme-icon {
    color: var(--primary-color);
}

.theme-dark .theme-toggle-btn:hover {
    background: rgba(0, 123, 255, 0.2);
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.dashboard-main {
    padding: 30px;
    margin-left: 0;
    margin-right: 0;
    transition: margin-left 0.3s ease, margin-right 0.3s ease;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 10px;
}

.card-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Special styling for settings card */
.dashboard-card[data-section="settings"] {
    background: linear-gradient(135deg, var(--card-bg), #f8f9fa);
    border: 2px solid var(--primary-color);
}

.dashboard-card[data-section="settings"]:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    transform: translateY(-5px) scale(1.02);
}

.dashboard-card[data-section="settings"]:hover .card-content h3,
.dashboard-card[data-section="settings"]:hover .card-content p {
    color: white;
}

.dashboard-card[data-section="settings"]:hover .card-number {
    color: white;
}

.dashboard-card[data-section="settings"] .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    animation: pulse 2s infinite;
}

/* Special styling for users card */
.dashboard-card[data-section="users"] {
    background: linear-gradient(135deg, var(--card-bg), #e8f5e8);
    border: 2px solid #28a745;
}

.dashboard-card[data-section="users"]:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    transform: translateY(-5px) scale(1.02);
}

.dashboard-card[data-section="users"]:hover .card-content h3,
.dashboard-card[data-section="users"]:hover .card-content p {
    color: white;
}

.dashboard-card[data-section="users"]:hover .card-number {
    color: white;
}

.dashboard-card[data-section="users"] .card-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* RTL Support */
[dir="rtl"] .dashboard-card {
    text-align: right;
}

[dir="rtl"] .header-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .language-dropdown {
        order: 1;
    }
    
    .theme-toggle-container {
        order: 2;
    }
    
    .logout-btn {
        order: 3;
    }
    
    .lang-dropdown-btn {
        min-width: 100px;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .theme-toggle-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .theme-toggle-slider {
        width: 40px;
        height: 20px;
    }
    
    .theme-toggle-handle {
        width: 16px;
        height: 16px;
    }
    
    .theme-dark .theme-toggle-handle {
        transform: translateX(20px);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }
    
    .login-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .language-dropdown,
    .theme-toggle-container,
    .logout-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lang-dropdown-btn {
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for theme switching */
body.theme-transitioning {
    transition: all 0.3s ease;
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* ========================================
   EXCHANGE PAGE STYLES
   ======================================== */

.exchange-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.exchange-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.exchange-card[data-action="buy"] {
    background: linear-gradient(135deg, var(--card-bg), #e8f5e8);
    border-color: #28a745;
}

.exchange-card[data-action="buy"]:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.exchange-card[data-action="sell"] {
    background: linear-gradient(135deg, var(--card-bg), #fff3cd);
    border-color: #ffc107;
}

.exchange-card[data-action="sell"]:hover {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: #212529;
}

.exchange-card[data-action="exchange"] {
    background: linear-gradient(135deg, var(--card-bg), #d1ecf1);
    border-color: #17a2b8;
}

.exchange-card[data-action="exchange"]:hover {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

.exchange-card[data-action="rates"] {
    background: linear-gradient(135deg, var(--card-bg), #f8d7da);
    border-color: #dc3545;
}

.exchange-card[data-action="rates"]:hover {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.exchange-card[data-action="history"] {
    background: linear-gradient(135deg, var(--card-bg), #e2e3e5);
    border-color: #6c757d;
}

.exchange-card[data-action="history"]:hover {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.exchange-card[data-action="settings"] {
    background: linear-gradient(135deg, var(--card-bg), #f8f9fa);
    border-color: #343a40;
}

.exchange-card[data-action="settings"]:hover {
    background: linear-gradient(135deg, #343a40, #495057);
    color: white;
}

.card-icon-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.exchange-card:hover .card-icon {
    transform: scale(1.1);
    animation: bounce 0.6s ease;
}

.card-content h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-content p {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.5;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.exchange-card:hover .stat-item {
    background: rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.exchange-card:hover .stat-value {
    color: inherit;
}

.card-action-btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Rates Table */
.rates-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.rates-table th,
.rates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rates-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rates-table td {
    color: var(--text-color);
}

.rates-table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
}

.positive {
    color: #28a745;
    font-weight: bold;
}

.negative {
    color: #dc3545;
    font-weight: bold;
}

/* Exchange Modal Enhancements */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

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

#exchangeForm .form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

#exchangeForm .form-group input,
#exchangeForm .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

#exchangeForm .form-group input:focus,
#exchangeForm .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

#exchangeForm .form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

/* RTL Support for Exchange */
[dir="rtl"] .card-content h3 {
    flex-direction: row-reverse;
}

[dir="rtl"] .rates-table th,
[dir="rtl"] .rates-table td {
    text-align: right;
}

[dir="rtl"] .stat-item {
    text-align: center;
}

/* Responsive Design for Simple Exchange Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 15px;
        max-width: none;
    }
    
    .form-row {
        gap: 12px;
    }
    
    .exchange-form .form-row {
        flex-direction: column;
    }
    
    .exchange-form .form-row .form-group {
        flex: 0 0 100%;
    }
    
    .calculation-section {
        padding: 12px;
    }
    
    .calc-item {
        padding: 6px 10px;
    }
    
    .rate-input-group {
        padding: 6px 10px;
    }
    
    .rate-input-group input {
        width: 70px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .rates-table-container {
        max-height: 300px;
    }
    
    .rates-table th,
    .rates-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card-action-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* ========================================
   CURRENCY MANAGEMENT STYLES
   ======================================== */

.currency-management-card {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.currency-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.currency-actions .btn {
    font-size: 0.875rem;
    padding: 8px 16px;
}

.currencies-table-container {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.currencies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.currencies-table th,
.currencies-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.currencies-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currencies-table td {
    color: var(--text-color);
    vertical-align: middle;
}

.currencies-table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
}

.currency-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-name .name-ar {
    font-weight: 600;
    color: var(--text-color);
}

.currency-name .name-en {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.7;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.currency-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

/* Rates Management Styles */
.rate-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    background: var(--input-bg);
    color: var(--text-color);
}

.rate-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.rates-table th,
.rates-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.rates-table th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-color);
}

.rates-table tr:hover {
    background: var(--hover-bg);
}

.rates-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Checkbox Styling */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label .checkbox-text {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-color);
}

/* Small text styling */
small {
    display: block;
    font-size: 0.8em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 4px;
}

/* RTL Support for Currency Management */
[dir="rtl"] .currency-name {
    text-align: right;
}

[dir="rtl"] .currencies-table th,
[dir="rtl"] .currencies-table td {
    text-align: right;
}

[dir="rtl"] .currency-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

/* Responsive Design for Currency Management */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .currencies-table-container {
        overflow-x: auto;
    }
    
    .currencies-table {
        min-width: 600px;
    }
    
    .currencies-table th,
    .currencies-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .currency-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .currency-actions .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .currencies-table th,
    .currencies-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .currency-name .name-en {
        font-size: 0.8em;
    }
}

/* ========================================
   ALERT MESSAGES
   ======================================== */

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideInFromTop 0.3s ease;
}

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

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

.alert i {
    font-size: 18px;
}

/* Dark theme alerts */
.theme-dark .alert-success {
    background: #1e4d2b;
    color: #d4edda;
    border-color: #2d5a3d;
}

.theme-dark .alert-danger {
    background: #4d1a1a;
    color: #f8d7da;
    border-color: #5d2a2a;
}

/* ========================================
   PUBLIC CSS - TransSteps Admin Pages
   Unified styles for all admin pages
   ======================================== */

/* ========================================
   COMMON LAYOUT STYLES
   ======================================== */

/* Page Container */
.page-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0 0 20px 0;
}

/* Back Button - Right for LTR, Left for RTL */
.back-btn {
    position: fixed;
    top: 40px;
    z-index: 1000;
}

[dir="ltr"] .back-btn {
    right: 20px;
    left: auto;
}

[dir="rtl"] .back-btn {
    left: 20px;
    right: auto;
}

/* ========================================
   USERS MANAGEMENT STYLES
   ======================================== */

.users-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.users-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.users-title {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.users-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0 0 20px 0;
}

.add-user-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-user-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.users-table-container {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.users-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    color: var(--text-color);
}

.users-table tbody tr:hover {
    background: rgba(0, 123, 255, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-details h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
}

.user-details p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 14px;
}

/* ========================================
   STATUS & ROLE BADGES
   ======================================== */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #dc3545;
    color: white;
}

.role-manager {
    background: #ffc107;
    color: #212529;
}

.role-user {
    background: #17a2b8;
    color: white;
}

.role-audit {
    background: #6f42c1;
    color: white;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-btn {
    background: #17a2b8;
    color: white;
}

.edit-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.password-btn {
    background: #28a745;
    color: white;
}

.password-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* ========================================
   SETTINGS STYLES
   ======================================== */

.settings-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.settings-header {
    background: var(--card-bg);
    padding: 20px !important;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px !important;
    text-align: center;
}

.settings-header h1 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px !important;
    align-items: start;
}

.settings-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px !important;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.settings-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem !important;
    font-weight: 600;
}

.settings-card h4 {
    font-size: 0.95rem !important;
    font-weight: 600;
    margin-bottom: 12px !important;
    color: var(--text-color);
}

.settings-card .form-group {
    margin-bottom: 14px !important;
}

.settings-card .form-group label {
    font-size: 0.875rem !important;
    margin-bottom: 6px !important;
    font-weight: 500;
}

.settings-card .form-group input,
.settings-card .form-group select,
.settings-card .form-group textarea {
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    border-width: 1px !important;
}

.settings-card .btn-group {
    margin-top: auto;
    padding-top: 12px;
}

.settings-card .btn,
.settings-card .btn-primary,
.settings-card .btn-secondary,
.settings-card .btn-danger {
    font-size: 0.875rem !important;
    padding: 8px 16px !important;
    min-height: auto !important;
}

.settings-card .btn i {
    font-size: 0.875rem !important;
}

.settings-card .form-text,
.settings-card small {
    font-size: 0.8rem;
    margin-top: 4px;
}

.settings-card .info-item {
    padding: 8px 0;
    font-size: 0.875rem;
}

.settings-card .info-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.settings-card .info-value {
    font-size: 0.875rem;
}

.settings-card h3 i {
    font-size: 1rem;
}

.settings-card hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.settings-card .info-item .info-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

[dir="rtl"] .settings-card .info-item .info-value {
    justify-content: flex-start;
}

/* Language and Theme buttons in settings */
.settings-card .language-switcher {
    margin: 0;
    gap: 8px;
}

.settings-card .lang-btn {
    font-size: 0.75rem;
    padding: 6px 14px;
}

.settings-card .theme-switcher {
    margin: 0;
}

.settings-card .theme-btn {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin: 0;
}

.settings-card .theme-btn i {
    font-size: 0.7rem;
}

/* ========================================
   INFO PAGE STYLES
   ======================================== */

.info-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.info-header {
    text-align: center;
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-value {
    color: var(--text-color);
    opacity: 0.8;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 10px;
}

.status-online {
    background: #28a745;
}

.status-offline {
    background: #dc3545;
}

/* ========================================
   FORM STYLES
   ======================================== */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInScale 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-color);
    opacity: 0.7;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   RTL SUPPORT
   ======================================== */

[dir="rtl"] .users-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .users-table th,
[dir="rtl"] .users-table td {
    text-align: right;
}

[dir="rtl"] .user-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .info-section {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

[dir="rtl"] .status-indicator {
    margin-left: 0;
    margin-right: 10px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .page-container,
    .users-container,
    .settings-container {
        padding: 0 10px;
    }
    
    .page-header,
    .users-header,
    .settings-header {
        padding: 20px;
    }
    
    .page-title,
    .users-title {
        font-size: 1.5rem;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 600px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .info-container {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-title,
    .users-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .modal-content {
        width: 98%;
        padding: 15px;
    }
}


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

/* Advanced animations for modern UI */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Apply animations */
.lang-dropdown-menu {
    animation: slideInFromTop 0.3s ease;
}

.lang-option {
    animation: slideInFromRight 0.3s ease;
}

.lang-option:nth-child(1) { animation-delay: 0.1s; }
.lang-option:nth-child(2) { animation-delay: 0.2s; }
.lang-option:nth-child(3) { animation-delay: 0.3s; }

.theme-toggle-handle {
    animation: fadeInScale 0.3s ease;
}

/* Hover effects */
.lang-dropdown-btn:hover {
    animation: bounce 0.6s ease;
}

.theme-toggle-btn:hover .theme-toggle-handle {
    animation: bounce 0.6s ease;
}

/* Loading state for language switch */
.language-switching .lang-dropdown-btn {
    opacity: 0.7;
    pointer-events: none;
}

.language-switching .lang-dropdown-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Customers Management Styles - Using Users Design */

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

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

.alert i {
    font-size: 18px;
}

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

/* Search Container */
.search-container {
    padding: 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn i {
    font-size: 12px;
}

/* RTL Support for Pagination */
[dir="rtl"] .pagination {
    flex-direction: row;
    direction: rtl;
}

[dir="rtl"] .pagination-container {
    flex-direction: row;
    direction: rtl;
}

/* Better RTL support for pagination buttons */
.pagination[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.pagination[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Fix RTL pagination button order */
[dir="rtl"] .pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

[dir="ltr"] .pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

[dir="rtl"] .pagination .pagination-btn {
    margin: 0;
}

[dir="ltr"] .pagination .pagination-btn {
    margin: 0;
}

/* Ensure proper RTL flow */
[dir="rtl"] .pagination-container {
    text-align: right;
}

[dir="ltr"] .pagination-container {
    text-align: left;
}

/* Center badges properly */
.type-badge, .role-badge, .status-badge {
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

/* Customer Type Badges */
.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-regular {
    background: #17a2b8;
    color: white;
}

.type-vip {
    background: #ffc107;
    color: #212529;
}

.type-wholesale {
    background: #28a745;
    color: white;
}

/* Language Badges */
.language-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.language-ar {
    background: #dc3545;
    color: white;
}

.language-en {
    background: #007bff;
    color: white;
}

.language-fr {
    background: #6f42c1;
    color: white;
}

/* ========================================
   BOXES MANAGEMENT STYLES
   ======================================== */

.boxes-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.boxes-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.boxes-title {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.boxes-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* Main Vault Card */
.vault-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.vault-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.main-vault {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 123, 255, 0.05));
}

.vault-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    gap: 20px;
    border-radius: 15px 15px 0 0;
}

.vault-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.vault-info {
    flex: 1;
}

.vault-info h2 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.vault-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.vault-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.vault-content {
    padding: 30px;
}

.vault-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 15px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Currencies Grid */
.currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.currency-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.currency-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.currency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
}

.currency-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.currency-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.currency-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.currency-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.currency-amount {
    margin-bottom: 12px;
}

.amount-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.currency-symbol {
    font-size: 1rem;
    margin-left: 4px;
    opacity: 0.8;
}

.amount-converted {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.currency-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
}

.rate-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.rate-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* Empty Vault */
.empty-vault {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-color);
    opacity: 0.7;
}

.empty-vault i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0.5;
}

.empty-vault h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.empty-vault p {
    margin: 0;
    font-size: 1rem;
}

/* Cashier Vaults Section */
.cashier-vaults-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.section-header h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cashier-vaults-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* RTL Support for Boxes */
[dir="rtl"] .vault-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-rate {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

/* Responsive Design for Boxes */
@media (max-width: 768px) {
    .boxes-container {
        padding: 0 10px;
    }
    
    .boxes-header {
        padding: 20px;
    }
    
    .boxes-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .vault-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .vault-content {
        padding: 20px;
    }
    
    .vault-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .currencies-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .section-header h2 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .currency-card {
        padding: 15px;
    }
    
    .currency-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .amount-main {
        font-size: 1.5rem;
    }
    
    .currency-rate {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Vault Management Modal Styles */
.vault-form-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.vault-form-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-actions {
    margin-top: 15px;
    text-align: right;
}

.vaults-list-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.vaults-list-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.vaults-list {
    max-height: 400px;
    overflow-y: auto;
}

.vault-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.vault-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.vault-info h5 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.vault-info p {
    margin: 2px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vault-actions {
    display: flex;
    gap: 10px;
}

.vault-statement {
    font-style: italic;
    color: var(--text-muted) !important;
}

.empty-vault {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 10px 0;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: var(--danger-color);
    background: var(--bg-color);
    border: 1px solid var(--danger-color);
    border-radius: 8px;
    margin: 10px 0;
}

/* Transfer Actions Section */
.transfer-actions-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.transfer-actions-section .section-header {
    margin-bottom: 20px;
    text-align: center;
}

.transfer-actions-section .section-header h2 {
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.transfer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.transfer-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    justify-content: center;
}

.transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.transfer-btn i {
    font-size: 1.2rem;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #000;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff8f00, #ff6f00);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Transactions Modal Styles */
.transactions-filters {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.transactions-content {
    max-height: 500px;
    overflow-y: auto;
}

.transactions-table {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 15px;
    gap: 10px;
}

.th {
    text-align: center;
    padding: 5px;
}

.transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    transition: background-color 0.2s;
}

.transaction-row:hover {
    background: var(--bg-secondary);
}

.transaction-row:last-child {
    border-bottom: none;
}

.td {
    text-align: center;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operation-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.operation-badge.enhance {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.operation-badge.withdraw {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Profit Summary Styles */
.profit-summary-section {
    margin-bottom: 30px;
}

.profit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.profit-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.today-profit .profit-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.monthly-profit .profit-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.profit-content {
    flex: 1;
}

.profit-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.profit-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 8px;
}

.profit-amount .amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.profit-amount .currency {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profit-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profit-details .transactions {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Simple Exchange Form Styles */
.form-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.exchange-form {
    width: 100%;
}

.exchange-form .form-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
}

.exchange-form .form-row .form-group {
    flex: 1;
}

.exchange-form .form-row .form-group.full-width {
    flex: 0 0 100%;
}

[dir="rtl"] .exchange-form .form-row {
    flex-direction: row-reverse;
}

/* RTL Support for Exchange Forms */
[dir="rtl"] .exchange-form input[type="text"],
[dir="rtl"] .exchange-form input[type="number"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .exchange-form textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .exchange-form label {
    text-align: right;
}

[dir="rtl"] #customer_dropdown,
[dir="rtl"] #currency_dropdown {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .customer-option,
[dir="rtl"] .currency-option {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .customer-option div,
[dir="rtl"] .currency-option div {
    text-align: right;
}

[dir="rtl"] .form-group .form-text {
    text-align: right;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group small {
    margin-top: 4px;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

.calculation-section {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.calculation-section h3 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.calc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.calc-item label {
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    font-size: 0.9rem;
}

.calc-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.profit-amount {
    color: var(--success-color) !important;
}

.transaction-result {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.transaction-result h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.result-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.result-item label {
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
}

.result-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Simple Rate Input Styles */
.rate-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.rate-input-group input {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    background: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    width: 80px;
    transition: all 0.2s ease;
}

.rate-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2);
}

.rate-display {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    min-width: 70px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.text-muted {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.text-danger {
    color: var(--danger-color);
    text-align: center;
    padding: 20px;
}

/* Action Buttons - Icon Only */
.action-btn {
    padding: 8px 12px !important;
    font-size: 0.9rem;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.action-btn i {
    margin: 0 !important;
}

.actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Sidebar Styles - Left for LTR, Right for RTL */
/* Sidebar integration - LTR (English/French) - Left side */
[dir="ltr"] body:has(#sidebar-multi-level-sidebar:not(.-translate-x-full)) .dashboard-main,
[dir="ltr"] body:has(#sidebar-multi-level-sidebar.sm\:translate-x-0) .dashboard-main {
    margin-left: 224px; /* 56 * 4 = 224px (w-56) */
}

/* Sidebar integration - RTL (Arabic) - Right side */
[dir="rtl"] body:has(#sidebar-multi-level-sidebar:not(.translate-x-full)) .dashboard-main,
[dir="rtl"] body:has(#sidebar-multi-level-sidebar.sm\:translate-x-0) .dashboard-main {
    margin-right: 224px; /* 56 * 4 = 224px (w-56) */
}

/* Sidebar Toggle Button - Left for LTR, Right for RTL */
[data-drawer-toggle="sidebar-multi-level-sidebar"] {
    position: fixed;
    top: 1rem;
    z-index: 50;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

[dir="ltr"] [data-drawer-toggle="sidebar-multi-level-sidebar"] {
    left: 1rem;
}

[dir="rtl"] [data-drawer-toggle="sidebar-multi-level-sidebar"] {
    right: 1rem;
}

/* Sidebar Menu Items Styles */
.sidebar-menu-item {
    transition: all 0.3s ease;
}

.sidebar-menu-item:hover .sidebar-icon {
    color: var(--text-color) !important;
}

.sidebar-active {
    background-color: var(--bg-secondary) !important;
}

.sidebar-submenu-item {
    font-size: 0.875rem;
}

.sidebar-submenu-toggle svg:last-child {
    transition: transform 0.3s ease;
}

.sidebar-submenu-toggle[aria-expanded="true"] svg:last-child {
    transform: rotate(180deg);
}

/* Sidebar Logout Button */
.sidebar-logout-btn {
    margin: 0;
    border: none;
}

.sidebar-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    [dir="ltr"] body:has(#sidebar-multi-level-sidebar:not(.-translate-x-full)) .dashboard-main,
    [dir="ltr"] body:has(#sidebar-multi-level-sidebar.sm\:translate-x-0) .dashboard-main {
        margin-left: 0;
    }
    
    [dir="rtl"] body:has(#sidebar-multi-level-sidebar:not(.translate-x-full)) .dashboard-main,
    [dir="rtl"] body:has(#sidebar-multi-level-sidebar.sm\:translate-x-0) .dashboard-main {
        margin-right: 0;
    }
}
