/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    gap: 10px;
}

.lang-switcher button {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-switcher button:hover {
    background: #8b4513;
    border-color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

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

[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid rgba(139, 69, 19, 0.3);
    right: 0;
    left: auto;
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 280px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafbfc;
    color: #1a1a1a;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Navigation */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Login Page - Premium Design */
.login-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px);
    animation: backgroundMove 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-50px, -50px) rotate(5deg);
    }
}


.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    position: relative;
}

.login-brand-logos::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
}

.login-logo-left {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-logo-left:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.login-logo-right {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-logo-right:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.login-box h1 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a1a 0%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2.5rem 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box .form-group {
    margin-bottom: 1.75rem;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"],
.login-box select {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1a1a1a;
    box-sizing: border-box;
    height: 56px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.login-box input[type="text"]:focus,
.login-box input[type="email"]:focus,
.login-box input[type="password"]:focus,
.login-box select:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow:
        0 0 0 4px rgba(139, 69, 19, 0.1),
        0 8px 24px rgba(139, 69, 19, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background: #ffffff;
}

.login-box input[type="text"]::placeholder,
.login-box input[type="email"]::placeholder,
.login-box input[type="password"]::placeholder {
    color: #a0aec0;
}

.login-box select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 2.5rem;
}

.login-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 56px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

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

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

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 0 4px rgba(139, 69, 19, 0.2);
    background: linear-gradient(135deg, #8b4513 0%, #6b3410 100%);
}

.login-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(139, 69, 19, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.login-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.login-hint {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(139, 69, 19, 0.15);
    text-align: center;
    position: relative;
}

.login-hint::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
}

.login-hint p {
    margin: 0.75rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.7;
}

.login-hint strong {
    color: #374151;
    font-weight: 600;
}

.login-hint code {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #8b4513;
    font-weight: 700;
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #fafbfc;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2.5rem;
    background: transparent;
    min-height: 100vh;
}

/* Sidebar - Premium Design */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #FFFFFF;
    padding: 2.5rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow:
        8px 0 32px rgba(0, 0, 0, 0.2),
        inset -1px 0 0 rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(139, 69, 19, 0.3);
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.7);
}

.sidebar h2 {
    padding: 0 2rem;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 2rem;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8b4513, transparent);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.sidebar nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    font-weight: 500;
    border-radius: 12px;
    margin: 0 0.5rem;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.sidebar nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(139, 69, 19, 0.2);
    transition: width 0.3s ease;
    z-index: 0;
}

.sidebar nav a:hover::before {
    width: 100%;
}

.sidebar nav a:hover {
    background: rgba(139, 69, 19, 0.15);
    border-left-color: #8b4513;
    color: #ffffff;
    transform: translateX(8px);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar nav a {
    position: relative;
    z-index: 1;
}

.sidebar nav a.back-link {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-left-color: #fff;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2.5rem;
    background: transparent;
    min-height: 100vh;
}

header {
    background: #ffffff;
    padding: 2.5rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b4513, transparent);
}

.brand-header {
    padding: 1.5rem !important;
}

.brand-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.15);
    position: relative;
}

.brand-logos::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
}

.brand-logo-left {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.brand-logo-left:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.brand-logo-right {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.brand-logo-right:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.brand-title {
    flex: 1;
    text-align: center;
}

.brand-title h1 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    line-height: 1.2;
}

.brand-title p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

header h1 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    letter-spacing: 0.2px;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h2 {
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 69, 19, 0.15);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #8b4513, transparent);
}

h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="week"],
input[type="month"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1e293b;
    font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow:
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons - Premium Design */
.btn-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #FFFFFF;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(139, 69, 19, 0.15);
    background: linear-gradient(135deg, #8b4513 0%, #6b3410 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 0.625rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #8b4513;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.2px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.2px;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    letter-spacing: 0.2px;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.2px;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Tables - Premium Design */
table {
    width: 100%;
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

th,
td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

th {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 3px solid #8b4513;
    position: relative;
}

th::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent);
}

tr {
    transition: all 0.2s ease;
}

tr:hover {
    background: rgba(139, 69, 19, 0.04);
    transform: scale(1.01);
}

tr:last-child td {
    border-bottom: none;
}

/* Compact action buttons in tables */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: #111827;
    color: #f9fafb;
    border-color: #111827;
    transform: translateY(-1px);
}

.icon-btn.view {
    color: #2563eb;
}

.icon-btn.receipt {
    color: #059669;
}

.icon-btn.approve {
    color: #16a34a;
}

.icon-btn.reject {
    color: #dc2626;
}

.icon-btn.edit,
.icon-btn.appeal {
    color: #d97706;
}

.icon-btn.pay {
    color: #0f766e;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.status-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-approved {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-rejected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-submitted {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-appealed {
    background: linear-gradient(135deg, #8b4513 0%, #6b3410 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Filters - Premium Design */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.filters input,
.filters select {
    flex: 1;
    min-width: 200px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.filters input:focus,
.filters select:focus {
    border-color: #8b4513;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

.report-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.report-filters label {
    margin: 0;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    letter-spacing: 0.2px;
}

.report-filters input,
.report-filters select {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.report-filters input:focus,
.report-filters select:focus {
    border-color: #8b4513;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

/* Cards - Premium Design */
.card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.3);
}

.analytics-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b4513, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.analytics-card:hover::before {
    transform: scaleX(1);
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.3);
}

.analytics-card h2 {
    color: #1a1a1a;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

.analytics-card h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #8b4513, transparent);
}

.analytics-card h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.stat-box {
    display: inline-block;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    margin: 0.75rem;
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.3);
}

.stat-box h3 {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box .value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #8b4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    line-height: 1.2;
}

.stat-box .value::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent);
    margin-top: 0.75rem;
    border-radius: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

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

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.large {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: #27ae60;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: #f39c12;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Timeline */
.timeline {
    margin: 1rem 0;
    padding-left: 2rem;
    border-left: 2px solid #ddd;
}

.timeline-item {
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
}

.timeline-item .date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.timeline-item .action {
    font-weight: 600;
    color: #2c3e50;
}

/* Salary Employee List */
.salary-employee-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.salary-employee-item h4 {
    margin-bottom: 0.5rem;
}

.salary-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.salary-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button:hover:not(.active) {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .brand-logos {
        flex-direction: column;
        gap: 1rem;
    }

    .brand-logo-left,
    .brand-logo-right {
        max-height: 50px;
    }

    .brand-title h1 {
        font-size: 1.5rem;
    }

    .login-brand-logos {
        flex-direction: column;
        gap: 1rem;
    }

    .login-logo-left,
    .login-logo-right {
        max-height: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }

    table {
        font-size: 0.85rem;
    }

    th,
    td {
        padding: 0.5rem;
    }

    .login-buttons {
        grid-template-columns: 1fr;
    }
}

/* Hide print header on screen */
.print-header {
    display: none;
}

/* Print Styles */
@media print {

    /* Hide all pages except active one */
    .page:not(.active) {
        display: none !important;
    }

    /* Hide UI elements */
    .sidebar,
    .filters,
    .report-filters,
    button,
    .close,
    .pagination,
    .dashboard-container {
        display: none !important;
    }

    /* Show brand header in print but hide buttons */
    .brand-header {
        display: block !important;
        padding: 1rem 0 !important;
        margin-bottom: 1rem !important;
        border-bottom: 2px solid #1e3c72 !important;
    }

    .brand-header button {
        display: none !important;
    }

    /* Show only report content */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    /* Show the reports dashboard page */
    #reportsDashboard {
        display: block !important;
    }

    /* Only show active report section */
    .section:not(.active) {
        display: none !important;
    }

    .section.active {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Report Content Styling */
    #dailyReportContent,
    #weeklyReportContent,
    #monthlyReportContent,
    #customReportContent {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Report Title */
    .section.active h2,
    .report-title {
        font-size: 1.5rem !important;
        margin: 0 0 1rem 0 !important;
        padding-bottom: 0.5rem !important;
        border-bottom: 2px solid #333 !important;
        color: #000 !important;
        font-weight: 700 !important;
    }

    /* Print Header - Show only when printing */
    .print-header {
        display: block !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 3px solid #1e3c72 !important;
        page-break-after: avoid !important;
    }

    .print-brand-logos {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 2rem !important;
    }

    .print-logo-left {
        max-height: 100px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .print-logo-right {
        max-height: 80px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .print-brand-title {
        flex: 1 !important;
        text-align: center !important;
    }

    .print-header h1 {
        font-size: 1.5rem !important;
        margin: 0 0 0.5rem 0 !important;
        color: #00000e !important;
        font-weight: 700 !important;
        font-family: 'Cairo', 'Sakkal Majalla', sans-serif !important;
    }

    .print-header p {
        font-size: 0.9rem !important;
        color: #666 !important;
        margin: 0 !important;
    }

    /* Request Details Print - Fit on One Page */
    .modal {
        position: static !important;
        background: white !important;
    }

    .modal-content,
    .modal-content.large,
    .printable-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0.75rem !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid !important;
        position: static !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .printable-content h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        page-break-after: avoid !important;
    }

    .card {
        page-break-inside: avoid !important;
        margin-bottom: 0.4rem !important;
        padding: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        display: inline-block !important;
        width: 48% !important;
        vertical-align: top !important;
        margin-right: 1% !important;
    }

    .card:nth-child(even) {
        margin-right: 0 !important;
    }

    .card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
        font-weight: 600 !important;
    }

    .card p {
        margin: 0.15rem 0 !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .card table {
        font-size: 0.65rem !important;
        width: 100% !important;
    }

    .card table th,
    .card table td {
        padding: 0.25rem !important;
        font-size: 0.65rem !important;
    }

    table {
        font-size: 0.7rem !important;
        page-break-inside: avoid !important;
        width: 100% !important;
    }

    th,
    td {
        padding: 0.3rem !important;
        font-size: 0.7rem !important;
    }

    .timeline {
        font-size: 0.7rem !important;
        padding-left: 0.75rem !important;
        margin: 0.5rem 0 !important;
    }

    .timeline-item {
        margin-bottom: 0.3rem !important;
        page-break-inside: avoid !important;
    }

    .timeline-item .date {
        font-size: 0.65rem !important;
    }

    .timeline-item .action {
        font-size: 0.7rem !important;
    }

    .status-badge {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    /* Report Cards - Better Format */
    #dailyReportContent .card,
    #weeklyReportContent .card,
    #monthlyReportContent .card,
    #customReportContent .card {
        page-break-inside: avoid !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        background: white !important;
        box-shadow: none !important;
        display: block !important;
        width: 100% !important;
    }

    #dailyReportContent .card h3,
    #weeklyReportContent .card h3,
    #monthlyReportContent .card h3,
    #customReportContent .card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
        border-bottom: 1px solid #eee !important;
        color: #1e3c72 !important;
        font-weight: 600 !important;
    }

    #dailyReportContent .card p,
    #weeklyReportContent .card p,
    #monthlyReportContent .card p,
    #customReportContent .card p {
        margin: 0.5rem 0 !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: #333 !important;
    }

    #dailyReportContent .card strong,
    #weeklyReportContent .card strong,
    #monthlyReportContent .card strong,
    #customReportContent .card strong {
        color: #1e3c72 !important;
        font-weight: 600 !important;
    }

    /* Report Tables */
    #dailyReportContent table,
    #weeklyReportContent table,
    #monthlyReportContent table,
    #customReportContent table {
        font-size: 0.85rem !important;
        page-break-inside: avoid !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        border-collapse: collapse !important;
    }

    #dailyReportContent table th,
    #weeklyReportContent table th,
    #monthlyReportContent table th,
    #customReportContent table th {
        background: #1e3c72 !important;
        color: white !important;
        padding: 0.5rem !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        border: 1px solid #1e3c72 !important;
    }

    #dailyReportContent table td,
    #weeklyReportContent table td,
    #monthlyReportContent table td,
    #customReportContent table td {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
        border: 1px solid #ddd !important;
    }

    #dailyReportContent table tr:nth-child(even),
    #weeklyReportContent table tr:nth-child(even),
    #monthlyReportContent table tr:nth-child(even),
    #customReportContent table tr:nth-child(even) {
        background: #f8f9fa !important;
    }

    /* Reports Print */
    .analytics-card {
        page-break-inside: avoid !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
    }

    canvas {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
    }

    /* General Print Optimizations */
    body {
        background: white !important;
        color: #000 !important;
    }

    body * {
        color: #000 !important;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid !important;
        color: #000 !important;
    }

    /* Hide login page completely */
    #loginPage {
        display: none !important;
    }

    @page {
        margin: 1.5cm;
        size: A4;
    }

}

/* PDF Export Styles */
.pdf-export {
    background: white !important;
    color: #000 !important;
    padding: 1rem !important;
}

.pdf-export * {
    color: #000 !important;
}

.pdf-export .status-badge {
    background: #333 !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
}

.pdf-export table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 1rem 0 !important;
}

.pdf-export table th,
.pdf-export table td {
    border: 1px solid #ddd !important;
    padding: 0.5rem !important;
    text-align: left !important;
}

.pdf-export table th {
    background: #333 !important;
    color: white !important;
    font-weight: bold !important;
}

.pdf-export .receipt-image {
    max-width: 100% !important;
    max-height: 300px !important;
    border: 1px solid #ddd !important;
}

/* Receipt Viewer Styles */
.receipt-viewer {
    margin-top: 1rem;
    text-align: center;
}

.receipt-image {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #8B4513;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.receipt-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3);
}

.receipt-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Fullscreen Receipt Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.fullscreen-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-receipt-image {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.close-fullscreen {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.close-fullscreen:hover {
    color: #8B4513;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Receipt Link Styles */
.receipt-link {
    color: #3b82f6 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* RTL Support Overrides */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 280px;
}

[dir="rtl"] .notification {
    left: auto;
    right: 20px;
    transform: translateX(120%);
    border-left: none;
    border-right: 4px solid #8b4513;
}

[dir="rtl"] .notification.show {
    transform: translateX(0);
}

[dir="rtl"] .modal-content {
    text-align: right;
}

[dir="rtl"] .close {
    float: left;
}

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

[dir="rtl"] .btn-arrow {
    transform: rotate(180deg);
    display: inline-block;
    margin-right: 8px;
    margin-left: 0;
}

.receipt-link:hover {
    color: #2563eb !important;
    text-decoration: none !important;
}

code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1f2937;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[dir="rtl"] .form-actions {
    justify-content: flex-start;
}

/* RTL Form Spacing */
[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .brand-title {
    text-align: center;
}

[dir="rtl"] .modal-content h2 {
    text-align: right;
}

[dir="rtl"] .close {
    right: auto;
    left: 1rem;
}

/* Salary Management Specific Fixes */
#salaryManagement .btn-primary {
    min-width: 150px;
}

#employeeForm .form-row {
    margin-bottom: 0.5rem;
}

/* Fix for overlapping inputs in grid */
.form-row .form-group {
    margin-bottom: 0;
}

/ *   A c t i o n   B u t t o n s   F i x   -   A d d e d   t o   r e s o l v e   u n c l i c k a b l e   i s s u e   * /     . a c t i o n - b u t t o n s    {
                 d i s p l a y :    f l e x ;
                 g a p :    8 p x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    f l e x - s t a r t ;
                 p o s i t i o n :    r e l a t i v e ;
                 z - i n d e x :    1 0 ;
                 / *   E n s u r e   b u t t o n s   s i t   a b o v e   o t h e r   r o w   e l e m e n t s   * /     
}

         . i c o n - b t n    {
                 b o r d e r :    n o n e ;
                 b a c k g r o u n d :    t r a n s p a r e n t ;
                 c u r s o r :    p o i n t e r ;
                 f o n t - s i z e :    1 . 2 r e m ;
                 p a d d i n g :    6 p x ;
                 b o r d e r - r a d i u s :    6 p x ;
                 t r a n s i t i o n :    a l l   0 . 2 s   e a s e ;
                 d i s p l a y :    i n l i n e - f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 p o s i t i o n :    r e l a t i v e ;
                 z - i n d e x :    2 0 ;
                 / *   E n s u r e   i n d i v i d u a l   b u t t o n   i s   c l i c k a b l e   * /             p o i n t e r - e v e n t s :    a u t o ;
                 / *   F o r c e   e n a b l e   c l i c k s   * /     
}

         . i c o n - b t n : h o v e r    {
                 b a c k g r o u n d - c o l o r :    r g b a ( 0 ,    0 ,    0 ,    0 . 0 5 ) ;
                 t r a n s f o r m :    s c a l e ( 1 . 1 ) ;
         
}

         . i c o n - b t n . a p p r o v e    {
                 c o l o r :    # 2 7 a e 6 0 ;
         
}

         . i c o n - b t n . r e j e c t    {
                 c o l o r :    # e 7 4 c 3 c ;
         
}

         . i c o n - b t n . v i e w    {
                 c o l o r :    # 3 4 9 8 d b ;
         
}

         . i c o n - b t n . r e c e i p t    {
                 c o l o r :    # f 3 9 c 1 2 ;
         
}

         . i c o n - b t n . e d i t    {
                 c o l o r :    # 8 e 4 4 a d ;
         
}

         . i c o n - b t n . a p p e a l    {
                 c o l o r :    # e 6 7 e 2 2 ;
         
}

     