/* ==========================================================================
   AlMumaiz Admin Portal - Premium Visual Overhaul
   ========================================================================== */
:root {
    --color-bg-dark: #f4f6f9;
    --color-bg-card: #ffffff;
    --color-bg-sidebar: #0f172a;
    --color-primary: #ff6b00;
    --color-secondary: #e05e00;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-border-glow: rgba(255, 107, 0, 0.15);
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-info: #0ea5e9;
    --color-purple: #8b5cf6;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --font-ar: 'Readex Pro', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.02) 0%, transparent 40%);
}

/* --- Login Page --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #13161f 0%, var(--color-bg-dark) 100%);
    padding: 20px;
}

.login-card-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(16, 18, 26, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 45px 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 107, 0, 0.05);
    backdrop-filter: blur(20px);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo-icon {
    font-size: 3.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5));
    animation: pulseLogo 4s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.4)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(255, 107, 0, 0.7)); }
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.login-form .form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cdd5e0;
    margin-bottom: 8px;
}

.form-group label i {
    margin-left: 6px;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8c9dae !important;
    opacity: 1 !important;
}

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

.login-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 0, 0.4);
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
}

/* --- Dashboard Layout --- */
.dashboard-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 290px;
    background: var(--color-bg-sidebar);
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 35px 20px;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
}

.brand-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
    border: 1px solid var(--color-border);
    padding: 14px;
    border-radius: var(--border-radius-md);
    margin-bottom: 35px;
}

.user-avatar i {
    font-size: 2.4rem;
    color: #a0aec0;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-meta .username {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.user-meta .user-role {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
    text-align: center;
}

.user-role.admin {
    background: rgba(239, 68, 68, 0.08);
    color: #ff5a5a;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.user-role.employee {
    background: rgba(14, 165, 233, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border-right: 3px solid transparent;
}

.menu-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    transition: var(--transition-smooth);
}

.menu-item:hover,
.menu-item.active {
    color: #ffffff;
    background: linear-gradient(270deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
    border-right: 3px solid var(--color-primary);
}

.menu-item:hover i,
.menu-item.active i {
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.4));
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 25px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--color-error);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    background: var(--color-error);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.content-header {
    background: var(--color-bg-sidebar);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.header-date i {
    color: var(--color-primary);
}

.content-body {
    padding: 40px;
    flex-grow: 1;
}

/* Welcome Banner */
.dashboard-welcome-banner {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12) 0%, rgba(255, 136, 0, 0.02) 100%);
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome-text h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.welcome-text p {
    font-size: 0.95rem;
    color: #a0aec0;
    max-width: 820px;
    line-height: 1.7;
}

.welcome-badge {
    background: rgba(255, 107, 0, 0.08);
    color: var(--color-primary);
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 107, 0, 0.18);
    flex-shrink: 0;
}

/* Stats Cards Grid */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(16, 18, 26, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 26px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

/* Color Glows on Stats Cards */
.stat-card:nth-child(1) { box-shadow: 0 10px 30px rgba(14, 165, 233, 0.02); }
.stat-card:nth-child(1):hover { box-shadow: 0 15px 30px rgba(14, 165, 233, 0.15); border-color: rgba(14, 165, 233, 0.3); }

.stat-card:nth-child(2) { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.02); }
.stat-card:nth-child(2):hover { box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }

.stat-card:nth-child(3) { box-shadow: 0 10px 30px rgba(255, 107, 0, 0.02); }
.stat-card:nth-child(3):hover { box-shadow: 0 15px 30px rgba(255, 107, 0, 0.15); border-color: rgba(255, 107, 0, 0.3); }

.stat-card:nth-child(4) { box-shadow: 0 10px 30px rgba(168, 85, 247, 0.02); }
.stat-card:nth-child(4):hover { box-shadow: 0 15px 30px rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); }

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1);
}

.stat-card-icon.expenses { background: rgba(14, 165, 233, 0.1); color: var(--color-info); }
.stat-card-icon.projects { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.stat-card-icon.finances { background: rgba(255, 107, 0, 0.1); color: var(--color-primary); }
.stat-card-icon.marketing { background: rgba(168, 85, 247, 0.1); color: var(--color-purple); }

.stat-card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.stat-card-info .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    display: block;
    font-family: var(--font-en);
    letter-spacing: -1px;
}

.stat-card-info p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.arrow-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-card:hover .arrow-link {
    opacity: 1;
    left: 24px;
    color: var(--color-primary);
}

/* Guidelines Box */
.dashboard-guidelines-box {
    background: rgba(16, 18, 26, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.box-header i {
    font-size: 1.3rem;
    color: var(--color-primary);
}

.box-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.box-body ul {
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 5px;
}

.box-body li {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.7;
}

.box-body li strong {
    color: #ffffff;
}

/* --- Split Layout for Subpages --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 35px;
    align-items: start;
}

/* Cards */
.form-container-card,
.table-container-card {
    background: rgba(16, 18, 26, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 35px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.card-header-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.card-header-icon i {
    font-size: 1.3rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.3));
}

.card-header-icon h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-info {
    background: rgba(14, 165, 233, 0.08);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

/* Forms */
.admin-form .form-group {
    margin-bottom: 24px;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.input-addon-wrapper {
    display: flex;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.input-addon-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

.input-addon-wrapper input {
    border: none !important;
    border-radius: 0 !important;
    flex-grow: 1;
    box-shadow: none !important;
}

.input-addon {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    font-family: var(--font-en);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
}

.submit-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.35);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ar);
    font-size: 0.9rem;
    text-align: right;
}

.data-table th,
.data-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    font-weight: 600;
    color: #a0aec0;
    background: rgba(255, 255, 255, 0.005);
}

.data-table tr {
    transition: var(--transition-smooth);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.email-source {
    color: #ffffff;
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 600;
}

.email-destination {
    color: #a0aec0;
    font-family: var(--font-en);
    font-size: 0.95rem;
}

.price-text {
    color: #ffffff;
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 700;
}

/* Badges */
.user-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #e2e8f0;
    font-weight: 500;
}

.category-badge {
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.15);
    color: #ff8833;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

/* Buttons inside tables */
.delete-btn-table,
.approve-btn-table,
.reject-btn-table {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ar);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.delete-btn-table {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.delete-btn-table:hover {
    background: var(--color-error);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.approve-btn-table {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.approve-btn-table:hover {
    background: var(--color-success);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.reject-btn-table {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-right: 6px;
}

.reject-btn-table:hover {
    background: var(--color-error);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.download-link-btn,
.receipt-link-btn {
    text-decoration: none;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-link-btn {
    background: rgba(255, 107, 0, 0.06);
    color: #ff8833;
    border: 1px solid rgba(255, 107, 0, 0.15);
}

.download-link-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.receipt-link-btn {
    background: rgba(255, 255, 255, 0.03);
    color: #cdd5e0;
    border: 1px solid var(--color-border);
}

.receipt-link-btn:hover {
    background: #ffffff;
    color: var(--color-bg-dark);
}

.actions-group-buttons {
    display: flex;
    gap: 8px;
}

.actions-completed-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.actions-completed-text i {
    color: var(--color-success);
}

.text-center-placeholder {
    text-align: center !important;
    padding: 50px 20px !important;
    color: var(--color-text-muted);
}

.empty-icon {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.03);
    margin-bottom: 15px;
    display: block;
}

/* Image preview in tables */
.table-img-preview-container {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.table-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1150px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .content-header {
        padding: 20px;
    }
    
    .content-body {
        padding: 20px;
    }
}

/* ==========================================================================
   html[dir="ltr"] overrides
   ========================================================================== */
html[dir="ltr"] body {
    font-family: var(--font-en);
}

html[dir="ltr"] .sidebar {
    border-left: none;
    border-right: 1px solid var(--color-border);
}

html[dir="ltr"] .menu-item {
    border-right: none;
    border-left: 3px solid transparent;
}

html[dir="ltr"] .menu-item:hover,
html[dir="ltr"] .menu-item.active {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--color-primary);
}

html[dir="ltr"] .data-table {
    text-align: left;
}

html[dir="ltr"] .input-addon {
    border-right: none;
    border-left: 1px solid var(--color-border);
}

html[dir="ltr"] .reject-btn-table {
    margin-right: 0;
    margin-left: 6px;
}

html[dir="ltr"] .arrow-link {
    left: auto;
    right: 20px;
}

html[dir="ltr"] .stat-card:hover .arrow-link {
    left: auto;
    right: 24px;
}

/* ==========================================================================
   Premium Light Theme Styles (WordPress Match)
   ========================================================================== */
body {
    background-color: #f4f6f9;
    color: #1e293b;
}

.login-body {
    background: radial-gradient(circle at center, #f1f5f9 0%, #cbd5e1 100%);
}

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
}

.login-header h1 {
    color: #0f172a;
}

.login-footer span {
    color: #64748b;
}

/* Sidebar styling overrides to keep it dark navy for high visual contrast */
.sidebar {
    background: #0f172a;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand h2 {
    color: #ffffff;
}

.sidebar-brand span {
    color: rgba(255, 255, 255, 0.6);
}

.username {
    color: #ffffff;
}

.user-role.admin {
    background: rgba(255, 107, 0, 0.15);
    color: #ff8800;
}

.user-role.employee {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.menu-item {
    color: #94a3b8;
}

.menu-item:hover,
.menu-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.logout-btn {
    color: #f87171;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Main content header overrides */
.content-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    color: #0f172a;
}

.header-date {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Language switcher */
.admin-lang-toggle-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.admin-lang-toggle-btn:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
}

/* Welcome banner overrides */
.dashboard-welcome-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.dashboard-welcome-banner h2 {
    color: #ffffff !important;
}

.dashboard-welcome-banner p {
    color: #cbd5e1 !important;
}

/* Cards styling overrides */
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
}

.stat-card-info h3 {
    color: #475569;
}

.stat-card-info .number {
    color: #0f172a;
}

.stat-card-info p {
    color: #64748b;
}

.arrow-link {
    color: #cbd5e1;
}

.stat-card:hover .arrow-link {
    color: var(--color-primary);
}

/* Form and table card styling overrides */
.form-container-card,
.table-container-card,
.dashboard-guidelines-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}

.card-header-icon h3,
.box-header h3 {
    color: #0f172a;
}

/* Form element styling overrides */
.form-group label {
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #ffffff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1) !important;
}

.input-addon-wrapper {
    border: 1px solid #cbd5e1;
}

.input-addon-wrapper input {
    background: #ffffff !important;
}

.input-addon {
    background: #f8fafc;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
}

html[dir="ltr"] .input-addon {
    border-left: 1px solid #e2e8f0;
    border-right: none;
}

.form-hint {
    color: #64748b;
}

/* Table overrides */
.data-table th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.data-table td {
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tr:hover {
    background: #f8fafc;
}

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

.report-title,
.project-title,
.email-source {
    color: #0f172a;
}

.text-muted-desc {
    color: #64748b;
}

.category-badge {
    background: #f1f5f9;
    color: #475569;
}

/* Alerts overrides */
.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-info {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

/* Status badges */
.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.approved,
.status-badge.published {
    background: #d1fae5;
    color: #059669;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Guidelines list */
.dashboard-guidelines-box ul li {
    color: #334155;
}

/* Buttons */
.download-link-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.download-link-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.receipt-link-btn {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.receipt-link-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Input placeholders color */
.form-group input::placeholder,
.form-group textarea::placeholder,
.login-form input::placeholder {
    color: #94a3b8 !important;
}
