/* ===================================
   SKYCON PLATFORM - TURKISH LOGIN INTERFACE
   Professional Enterprise Design System
   =================================== */

/* Base Typography & Layout */
html, body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   SKYCON MODERN LAVENDER THEME
   =================================== */
:root {
    /* Primary Lavender Theme */
    --skycon-primary: #8B5CF6;
    --skycon-secondary: #A78BFA;
    --skycon-gradient: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    
    /* Background Colors */
    --background-primary: #F8F4FF;          /* Light lavender background */
    --background-secondary: #FFFFFF;        /* Pure white for cards */
    --background-hover: #F3F0FF;            /* Subtle hover background */
    
    /* Text Colors */
    --text-primary: #1F2937;                /* Dark gray for headings */
    --text-secondary: #6B7280;              /* Medium gray for body text */
    --text-muted: #9CA3AF;                  /* Light gray for subtle text */
    
    /* Module Colors for Business Applications */
    --module-messaging: #8B5CF6;            /* Purple - Communication */
    --module-control: #3B82F6;              /* Blue - Control Panels */
    --module-invoicing: #10B981;            /* Green - Financial */
    --module-employees: #F59E0B;            /* Orange - HR */
    --module-expenses: #EF4444;             /* Red - Expenses */
    --module-applications: #6366F1;         /* Indigo - Applications */
    --module-settings: #6B7280;             /* Gray - Settings */
    --module-analytics: #8B5CF6;            /* Purple - Analytics */
    
    /* State Colors */
    --error-color: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    
    /* Interactive Colors */
    --border-color: #E5E7EB;                /* Light gray borders */
    --border-focus: var(--skycon-primary);
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 4px 20px rgba(139, 92, 246, 0.15);
    --shadow-module: 0 2px 12px rgba(139, 92, 246, 0.1);
    
    /* Radius and Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ===================================
   LOGIN PAGE LAYOUT
   =================================== */
.login-page {
    min-height: 100vh;
    background: var(--background-primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(63, 81, 181, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 35, 126, 0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* ===================================
   HEADER SECTION WITH LOGO
   =================================== */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.company-logo {
    margin: 0 auto 1rem;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(26, 35, 126, 0.2));
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.company-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--skycon-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.company-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* ===================================
   FORM CONTAINER & STYLING
   =================================== */
.login-form-container {
    background: var(--background-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    padding: 2rem;
    border: 1px solid rgba(224, 224, 224, 0.3);
}

.login-form {
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* ===================================
   INPUT FIELD STYLING
   =================================== */
.form-control {
    width: 100%;
    height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-style: normal;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
    background: var(--background-secondary);
}

/* Validation States */
.form-control.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.1);
}

/* ===================================
   VALIDATION MESSAGES
   =================================== */
.validation-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--error-color);
    font-weight: 400;
    line-height: 1.4;
}

.validation-message::before {
    content: '⚠ ';
    margin-right: 0.25rem;
}

.validation-summary {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: var(--error-color);
    font-size: 0.875rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: var(--spacing-md);
    list-style-type: none;
}

.validation-summary li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.validation-summary li::before {
    content: '⚠ ';
    margin-right: 0.5rem;
    color: var(--error-color);
}

/* ===================================
   CUSTOM CHECKBOX STYLING
   =================================== */
.form-options {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    user-select: none;
}

.form-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-secondary);
}

.form-checkbox:checked {
    background: var(--skycon-gradient);
    border-color: var(--skycon-primary);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

/* ===================================
   LOGIN BUTTON STYLING
   =================================== */
.btn-login {
    width: 100%;
    height: 48px;
    background: var(--skycon-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    margin: 1.5rem 0;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.3);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   FOOTER LINKS
   =================================== */
.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-link {
    color: var(--skycon-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--skycon-primary);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.register-link {
    color: var(--skycon-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: var(--skycon-primary);
    text-decoration: underline;
}

/* ===================================
   STATUS MESSAGES
   =================================== */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
}

.status-message span[aria-hidden="true"] {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.status-message.error {
    background: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.status-message.success {
    background: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(56, 142, 60, 0.2);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .login-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .company-name {
        font-size: 1.75rem;
    }
    
    .form-control {
        height: 50px; /* Slightly larger for mobile touch */
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-login {
        height: 50px;
        font-size: 1.05rem;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .login-container {
        max-width: 420px;
    }
    
    .login-form-container {
        padding: 2.5rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .login-page {
        padding: 2rem;
    }
    
    .login-form-container {
        padding: 3rem;
    }
    
    .company-name {
        font-size: 2.25rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-logo {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* Focus visible for keyboard navigation */
.form-control:focus-visible,
.btn-login:focus-visible,
.form-checkbox:focus-visible,
.forgot-password-link:focus-visible,
.register-link:focus-visible {
    outline: 2px solid var(--skycon-secondary);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .btn-login,
    .form-checkbox,
    .forgot-password-link,
    .register-link,
    .loading-spinner {
        transition: none;
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }
    
    .btn-login {
        border: 2px solid var(--skycon-primary);
    }
}

/* ===================================
   EMPLOYEE MANAGEMENT BUTTONS
   =================================== */

/* Modern Button Base Styles */
.btn-modern, .btn-module, .btn-edit-profile, .btn-delete-profile, .btn-back-modern, 
.btn-create, .btn-org-chart, .btn-save, .btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
    min-height: 42px;
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Module Action Buttons */
.btn-module {
    background: var(--skycon-gradient);
    color: white;
    border-color: var(--skycon-primary);
}

.btn-module:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-module:active {
    transform: translateY(0);
}

/* Create Button */
.btn-create {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-create:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Edit Button */
.btn-edit-profile {
    background: var(--skycon-secondary);
    color: white;
    border-color: var(--skycon-secondary);
}

.btn-edit-profile:hover {
    background: var(--skycon-primary);
    border-color: var(--skycon-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: white;
}

/* Delete Button */
.btn-delete-profile {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.btn-delete-profile:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    color: white;
}

/* Back Button */
.btn-back-modern {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-back-modern:hover {
    background: var(--background-hover);
    border-color: var(--skycon-secondary);
    color: var(--skycon-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

/* Organization Chart Button */
.btn-org-chart {
    background: var(--module-control);
    color: white;
    border-color: var(--module-control);
}

.btn-org-chart:hover {
    background: #2563EB;
    border-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Save Button */
.btn-save {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-save:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Cancel Button */
.btn-cancel {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-cancel:hover {
    background: var(--background-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

/* Button Focus States */
.btn-modern:focus, .btn-module:focus, .btn-edit-profile:focus, 
.btn-delete-profile:focus, .btn-back-modern:focus, .btn-create:focus,
.btn-org-chart:focus, .btn-save:focus, .btn-cancel:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Button Disabled States */
.btn-modern:disabled, .btn-module:disabled, .btn-edit-profile:disabled, 
.btn-delete-profile:disabled, .btn-back-modern:disabled, .btn-create:disabled,
.btn-org-chart:disabled, .btn-save:disabled, .btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Icons */
.btn-modern i, .btn-module i, .btn-edit-profile i, 
.btn-delete-profile i, .btn-back-modern i, .btn-create i,
.btn-org-chart i, .btn-save i, .btn-cancel i {
    font-size: 0.875rem;
}

/* Small Button Variant */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 36px;
}

/* Large Button Variant */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===================================
   TAB AND NAVIGATION BUTTONS
   =================================== */

/* Tab Buttons */
.tab-btn {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 2px;
}

.tab-btn:hover {
    background: var(--background-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--background-primary);
    color: var(--skycon-primary);
    border-color: var(--skycon-secondary);
    font-weight: 600;
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--skycon-primary);
}

/* Navigation Buttons - İptal butonu ile aynı formatta */
.btn-nav {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn-nav:hover:not(:disabled) {
    background: var(--background-hover);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

.btn-nav:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ===================================
   FILTER AND SEARCH BUTTONS
   =================================== */

/* Quick Filter Buttons - Override inline styles */
.quick-filter-btn {
    background: white;
    color: #6B7280;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
    min-height: auto;
    box-shadow: none;
}

.quick-filter-btn:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.05);
    color: #1F2937;
}

.quick-filter-btn.active {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: white;
}

/* Filter Toggle Button */
.btn-filter-toggle {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-filter-toggle:hover {
    background: var(--skycon-secondary);
    color: white;
    border-color: var(--skycon-secondary);
}

/* Clear Search Button */
.btn-clear-search {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.btn-clear-search:hover {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

/* ===================================
   ACTION BUTTONS
   =================================== */

/* Add Buttons */
.btn-add, .btn-add-cert {
    background: var(--success-color);
    color: white;
    border: 1px solid var(--success-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add:hover, .btn-add-cert:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Select and Upload Buttons */
.btn-select-skill, .btn-upload, .btn-load-template {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-select-skill:hover, .btn-upload:hover, .btn-load-template:hover {
    border-color: var(--skycon-secondary);
    color: var(--skycon-primary);
    background: var(--background-hover);
}

/* Create Badge Button */
.btn-create-badge {
    background: var(--skycon-gradient);
    color: white;
    border: 1px solid var(--skycon-primary);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-create-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* ===================================
   EMPLOYEE CARD QUICK ACTIONS
   =================================== */

/* Quick Action Buttons */
.btn-quick-action {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Show buttons on hover */
.employee-card:hover .btn-quick-action {
    opacity: 1;
    transform: scale(1);
}

.btn-quick-action:hover {
    background: var(--skycon-secondary);
    color: white;
    border-color: var(--skycon-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Edit button (default styling above is fine) */
.btn-quick-action:nth-child(1):hover {
    background: var(--skycon-primary);
    border-color: var(--skycon-primary);
}

/* View button */
.btn-quick-action:nth-child(2):hover {
    background: var(--module-control);
    border-color: var(--module-control);
}

/* Delete button */
.btn-quick-action.danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-quick-action.danger:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Card Hover Indicator */
.card-hover-indicator {
    background: var(--skycon-gradient);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.employee-card:hover .card-hover-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   EXPENSE MANAGEMENT STYLES
   =================================== */

/* Header Welcome Section */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
}

.welcome-header .welcome-section {
    flex: 1;
}

.welcome-header .header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Expense List Styles */
.expense-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.expense-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-subtle);
}

.expense-card:hover {
    border-color: var(--skycon-secondary);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.expense-category {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.expense-category i {
    font-size: 1rem;
}

.expense-status .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expense-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.expense-details {
    flex: 1;
}

.expense-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.expense-date {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.expense-amount {
    text-align: right;
    min-width: 150px;
}

.amount-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.amount-item.total {
    font-weight: 600;
    font-size: 1rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.25rem;
}

.amount-label {
    color: var(--text-secondary);
}

.amount-value {
    color: var(--text-primary);
    font-weight: 500;
}

.expense-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.approval-notes, .rejection-reason {
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.approval-notes {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.rejection-reason {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

/* Create Expense Form Styles */
.form-select {
    width: 100%;
    height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--background-secondary) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    appearance: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: var(--background-secondary);
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.total-summary {
    background: var(--background-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.summary-item.total {
    font-weight: 600;
    font-size: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.summary-item .label {
    color: var(--text-secondary);
}

.summary-item .value {
    color: var(--text-primary);
    font-weight: 500;
}

.summary-item.total .value {
    color: var(--skycon-primary);
    font-weight: 600;
}

/* File Upload Styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: var(--skycon-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Badge Styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

/* Create Expense Form Specific Styles */
.form-container-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
}

.form-panel, .preview-panel {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.form-content, .preview-content {
    padding: var(--spacing-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group-full {
    margin-bottom: var(--spacing-lg);
}

.validation-summary-custom {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: var(--error-color);
    font-size: 0.875rem;
}

.validation-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.validation-errors {
    margin: 0;
    padding-left: var(--spacing-md);
    list-style-type: none;
}

.validation-errors li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.validation-errors li::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--error-color);
    font-weight: bold;
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.file-upload-container {
    position: relative;
}

/* Custom File Upload Styles */
.custom-file-upload {
    position: relative;
    display: block;
    width: 100%;
    min-height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-file-upload:hover {
    border-color: var(--skycon-primary);
    background: var(--background-hover);
}

.file-input-hidden {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    cursor: pointer;
    margin: 0;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.upload-icon.success {
    color: var(--success-color);
}

.custom-file-upload:hover .upload-icon {
    color: var(--skycon-primary);
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upload-main {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.upload-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-upload-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.file-upload-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-hover);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.file-info {
    flex: 1;
}

.btn-ocr {
    background: var(--module-expenses);
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
}

.btn-ocr:hover:not(:disabled) {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-ocr:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-remove-file {
    background: var(--error-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* New Expense Form Styles - Matching Reference Image */
.expense-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expense-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.expense-form-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    background: #993366;
    color: white;
    border-color: #993366;
}

.tab-button:hover:not(.active) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.expense-form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button.primary {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.action-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.action-button.primary:hover {
    background: #1d4ed8;
}

.expense-form-content {
    padding: 0;
}

.expense-form-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.expense-form-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.field-help {
    color: #6b7280;
    cursor: help;
}

.field-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s;
}

.field-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea-input {
    resize: vertical;
    min-height: 60px;
}

.manager-field,
.employee-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.manager-badge,
.employee-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.employee-badge {
    background: #f59e0b;
}

.manager-name,
.employee-name {
    font-size: 0.875rem;
    color: #374151;
}

.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.radio-label {
    font-size: 0.875rem;
    color: #374151;
}

.file-upload-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
}

.file-upload-area.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

.file-upload-area:hover {
    border-color: #9ca3af;
}

.file-input-hidden {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    position: relative;
    cursor: pointer;
    display: block;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.remove-file-btn:hover {
    background: #dc2626;
}

.ocr-button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ocr-button:hover:not(:disabled) {
    background: #7c3aed;
}

.ocr-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ocr-result {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.ocr-result.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ocr-result.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.submit-button {
    padding: 0.75rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    background: #059669;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-button {
    padding: 0.75rem 2rem;
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cancel-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}

.expense-form-right {
    background: #f9fafb;
    border-radius: 6px;
    padding: 1.5rem;
    height: fit-content;
}

.activity-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.8125rem;
    color: #6b7280;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .expense-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expense-form-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .expense-form-actions {
        justify-content: center;
    }
}

.ocr-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.ocr-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ocr-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.receipt-validation {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.form-actions {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

.image-preview-container {
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.image-info {
    padding: var(--spacing-sm);
    background: var(--background-hover);
    border-radius: var(--radius-sm);
}

.file-name {
    font-weight: 600;
    color: var(--module-expenses);
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.preview-placeholder {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.preview-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.preview-placeholder p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Design for Expenses */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .welcome-header .header-actions {
        justify-content: stretch;
    }
    
    .welcome-header .header-actions .btn-module {
        flex: 1;
        justify-content: center;
    }
    
    .expense-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .expense-amount {
        text-align: left;
        min-width: auto;
    }
    
    .amount-breakdown {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .amount-item {
        min-width: 120px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .expense-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .expense-actions .btn-modern {
        min-width: 100px;
    }
    
    /* Form responsive design */
    .form-container-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .file-upload-success {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .btn-ocr {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
    }
    
    .form-actions .btn-cancel,
    .form-actions .btn-save {
        width: 100%;
        justify-content: center;
    }
    
    .total-summary div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Filter controls mobile */
    div[style*="flex"][style*="gap: 1rem"] div[style*="flex: 1"] {
        min-width: 100% !important;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .expense-card {
        padding: var(--spacing-md);
    }
    
    .expense-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .expense-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .expense-actions .btn-modern {
        min-width: auto;
        width: 100%;
    }
    
    .amount-breakdown {
        flex-direction: column;
    }
    
    .amount-item {
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Form mobile adjustments */
    .dashboard-content {
        padding: var(--spacing-sm) !important;
    }
    
    div[style*="padding: var(--spacing-xl)"] {
        padding: var(--spacing-lg) !important;
    }
}

/* ===================================
   LEGACY COMPATIBILITY
   =================================== */

/* Maintain compatibility with existing Bootstrap classes */
a, .btn-link {
    color: var(--skycon-secondary);
}

.btn-primary {
    color: #fff;
    background: var(--skycon-gradient);
    border: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success-color);
}

.invalid {
    outline: 1px solid var(--error-color);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA9Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Bir hata oluştu.";
}

/* ===================================
   MODERN DASHBOARD STYLES - ODOO INSPIRED
   =================================== */

/* Body Background for Dashboard */
body {
    background: var(--background-primary) !important;
}

/* Top Header Navigation */
.dashboard-top-header {
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    height: 70px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--skycon-primary);
    text-decoration: none;
}

.header-brand:hover {
    color: var(--skycon-primary);
    text-decoration: none;
}

.header-user-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
}

.user-info:hover {
    background: var(--background-hover);
    color: var(--text-primary);
    text-decoration: none;
}

/* Main Dashboard Layout */
.modern-dashboard {
    background: var(--background-primary);
    min-height: calc(100vh - 80px);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Module Grid System */
.modules-container {
    max-width: 1200px;
    margin: 0 auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

/* Individual Module Cards */
.module-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    justify-content: center;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--skycon-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-module);
    border-color: var(--skycon-secondary);
    text-decoration: none;
    color: inherit;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:active {
    transform: translateY(-2px);
}

/* Module Icons */
.module-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Specific Module Colors */
.module-messaging .module-icon { background: var(--module-messaging); }
.module-control .module-icon { background: var(--module-control); }
.module-invoicing .module-icon { background: var(--module-invoicing); }
.module-employees .module-icon { background: var(--module-employees); }
.module-expenses .module-icon { background: var(--module-expenses); }
.module-office-tracking .module-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.module-applications .module-icon { background: var(--module-applications); }
.module-settings .module-icon { background: var(--module-settings); }
.module-analytics .module-icon { background: var(--module-analytics); }

/* Analytics Sub-Module Colors */
.module-distribution .module-icon { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.module-project .module-icon { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.module-tracking .module-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.module-resource-reports .module-icon { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.module-rate-matrix .module-icon { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.module-invoice .module-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.module-revenue .module-icon { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

/* Module Text */
.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
}

.module-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    opacity: 0.8;
}

/* Stats Section */
.dashboard-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card-modern {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card-modern:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-1px);
}

.stat-number-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--skycon-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label-modern {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-top-header {
        padding: var(--spacing-sm);
    }
    
    .header-brand {
        font-size: 1.1rem;
    }
    
    .modern-dashboard {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }
    
    .module-card {
        min-height: 140px;
        padding: var(--spacing-md);
    }
    
    .module-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .dashboard-stats-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats-modern {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   DASHBOARD STYLES (LEGACY COMPATIBILITY)
   =================================== */

/* Dashboard Loading */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--text-secondary);
}

.loading-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--skycon-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Dashboard Container */
.dashboard-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Section */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.welcome-section .page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.welcome-section .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notification Badge */
.btn-notification {
    position: relative;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn-notification:hover {
    border-color: var(--skycon-secondary);
    color: var(--skycon-primary);
    transform: translateY(-1px);
}

.btn-notification .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* User Avatar */
.user-avatar {
    position: relative;
}

.avatar-img, .avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.avatar-img {
    object-fit: cover;
}

.avatar-placeholder {
    background: var(--skycon-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--skycon-secondary);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--skycon-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-content .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-content .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Content Layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

/* Applications Section */
.applications-section {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--skycon-secondary);
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.btn-view-toggle:hover,
.btn-view-toggle.active {
    border-color: var(--skycon-secondary);
    background: var(--skycon-secondary);
    color: white;
}

/* Applications Grid */
.applications-grid.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.applications-grid.list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.applications-grid.list .application-card {
    flex-direction: row;
    align-items: center;
}

.applications-grid.grid .application-card {
    flex-direction: column;
    text-align: center;
}

.application-card:hover {
    border-color: var(--skycon-secondary);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.application-card.favorite {
    border-color: var(--warning-color);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.applications-grid.list .app-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.app-content {
    flex: 1;
    min-width: 0;
}

.applications-grid.grid .app-content {
    text-align: center;
    margin-top: 1rem;
}

.app-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.app-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.applications-grid.grid .app-meta {
    justify-content: center;
}

.app-category {
    background: var(--skycon-gradient);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.access-count {
    color: var(--text-muted);
}

.app-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-favorite {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn-favorite:hover,
.btn-favorite.active {
    border-color: var(--warning-color);
    background: var(--warning-color);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-section,
.quick-links-section {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: var(--border-color);
    background: var(--background-primary);
}

.activity-icon {
    color: var(--skycon-secondary);
    font-size: 0.5rem;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-action {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-app {
    font-size: 0.75rem;
    color: var(--skycon-secondary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.empty-activities {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-activities i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-link:hover {
    border-color: var(--border-color);
    background: var(--background-primary);
    text-decoration: none;
    color: var(--text-primary);
}

.quick-link i {
    width: 20px;
    color: var(--skycon-secondary);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section {
        grid-row: 1;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: flex-end;
    }
    
    .welcome-section .page-title {
        font-size: 1.5rem;
    }
    
    .applications-grid.grid {
        grid-template-columns: 1fr;
    }
    
    .application-card {
        padding: 1rem;
    }
    
    .applications-grid.grid .application-card {
        flex-direction: row;
        text-align: left;
    }
    
    .applications-grid.grid .app-content {
        text-align: left;
        margin-top: 0;
    }
    
    .applications-grid.grid .app-meta {
        justify-content: flex-start;
    }
}
/* ===================================
   MODAL GLOBAL STYLES
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.modal-content-large {
    max-width: 900px;
}

.modal-content-small {
    max-width: 500px;
}

/* Nested Modal (inner popup over main modal) */
.modal-backdrop,
.nested-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 50000;
}

.modal-dialog,
.nested-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50001;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-dialog.modal-dialog-medium,
.nested-modal-dialog.modal-dialog-medium {
    max-width: 700px;
}

.modal-dialog.modal-dialog-large,
.nested-modal-dialog.modal-dialog-large {
    max-width: 900px;
}

.modal-dialog.modal-dialog-xlarge,
.nested-modal-dialog.modal-dialog-xlarge {
    max-width: 1200px;
}

.modal-dialog .modal-content {
    background: transparent;
    box-shadow: none;
    max-height: 85vh;
    overflow-y: auto;
}

.nested-modal-content {
    background: white;
    border-radius: 12px;
    max-height: 85vh;
    overflow-y: auto;
}

.nested-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.nested-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.nested-modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nested-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nested-modal-body {
    padding: 1.5rem;
}

.nested-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.125rem;
}

.btn-close-modal:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ===================================
   MODAL DIALOG CENTERING (Global Override)
   =================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-dialog,
.modal-dialog.modal-dialog-xlarge,
.modal-dialog.modal-dialog-large,
.modal-dialog.modal-dialog-medium,
div.modal-dialog,
div.modal-dialog.modal-dialog-xlarge {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    z-index: 1001 !important;
    margin: 0 !important;
}

.modal-dialog {
    width: 90%;
    max-width: 500px;
}

.modal-dialog-xlarge,
.modal-dialog.modal-dialog-xlarge {
    max-width: 800px !important;
    width: 95% !important;
}

.modal-dialog-large,
.modal-dialog.modal-dialog-large {
    max-width: 700px !important;
    width: 90% !important;
}

.modal-dialog-medium,
.modal-dialog.modal-dialog-medium {
    max-width: 600px !important;
    width: 90% !important;
}

/* Admin Only Notice for Restricted Fields */
.admin-only-notice {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400E;
    font-size: 0.875rem;
}

.admin-only-notice i {
    color: #F59E0B;
    font-size: 1rem;
}

/* Disabled input styling */
.form-control:disabled,
.form-control[disabled],
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #F3F4F6 !important;
    color: #6B7280 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Employees Header Bar with Back Button */
.employees-header-bar {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

.btn-back-blue {
    background: #667eea;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-back-blue:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-back-blue i {
    font-size: 0.875rem;
}

/* Expenses Header Bar */
.expenses-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.expenses-header-bar .header-title-center {
    flex: 1;
    text-align: center;
}

.expenses-header-bar .header-spacer {
    width: 100px; /* Same width as back button for balance */
}

.expenses-header-bar .dashboard-title {
    margin-bottom: 0.25rem;
}

.expenses-header-bar .dashboard-subtitle {
    margin: 0;
}

/* ============================================
   SAP CONSULTANT DASHBOARD STYLES
   ============================================ */

/* Ana Layout - Rail Sidebar ile */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 56px);
    background: var(--background-secondary, #f8f4ff);
}

/* Sol Sidebar - Rail Style */
.dashboard-sidebar {
    flex-shrink: 0;
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    z-index: 100;
}

/* Sağ Ana İçerik */
.dashboard-main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-width: 0;
}

/* ============================================ */
/* Rail Sidebar - Hover ile genişleyen sidebar */
/* ============================================ */
.rail-sidebar {
    height: 100%;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 64px;
    overflow: hidden;
}

.rail-sidebar.expanded {
    width: 224px;
}

/* Sidebar Header / Logo */
.sidebar-header {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #1e293b;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 600;
    color: white;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rail-sidebar.expanded .logo-text {
    opacity: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-bottom {
    border-top: 1px solid #1e293b;
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Navigation Item */
.sidebar-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 1rem;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-nav-item:hover {
    background: rgba(30, 41, 59, 0.5);
}

.sidebar-nav-item.active {
    background: #1e293b;
}

/* Active Indicator */
.nav-active-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: transparent;
    transition: background 0.2s ease;
}

.sidebar-nav-item.active .nav-active-indicator {
    background: #a78bfa;
}

/* Navigation Icon */
.nav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.2s ease;
}

/* Navigation Label */
.nav-label {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.rail-sidebar.expanded .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-label.active {
    color: white;
    font-weight: 500;
}

/* Tooltip for collapsed state */
.nav-tooltip {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    background: #1e293b;
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rail-sidebar:not(.expanded) .sidebar-nav-item:hover .nav-tooltip {
    opacity: 1;
}

.rail-sidebar.expanded .nav-tooltip {
    display: none;
}

/* Dark Mode Support for Rail Sidebar */
[data-theme="dark"] .rail-sidebar,
body.dark-mode .rail-sidebar {
    background: #0c0f17;
    border-right: 1px solid #1e293b;
}

[data-theme="dark"] .sidebar-header,
body.dark-mode .sidebar-header {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .sidebar-bottom,
body.dark-mode .sidebar-bottom {
    border-top-color: #1e293b;
}

[data-theme="dark"] .sidebar-nav-item.active,
body.dark-mode .sidebar-nav-item.active {
    background: #1e293b;
}

[data-theme="dark"] .nav-tooltip,
body.dark-mode .nav-tooltip {
    background: #334155;
}

/* ============================================ */
/* Grouped Sidebar - Kategorili Sidebar        */
/* ============================================ */
.grouped-sidebar {
    height: 100%;
    background: var(--background-primary, #ffffff);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 64px;
    overflow: hidden;
    border-right: 1px solid var(--border-color, #e5e7eb);
}

.grouped-sidebar.expanded {
    width: 240px;
}

/* Grouped Sidebar Header */
.grouped-sidebar .sidebar-header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--background-primary, #ffffff);
}

.grouped-sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.grouped-sidebar .logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    border-radius: 10px;
    color: white;
    font-size: 1.125rem;
}

.grouped-sidebar .logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary, #1f2937);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.grouped-sidebar.expanded .logo-text {
    opacity: 1;
}

/* Collapse Button */
.sidebar-collapse-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--background-secondary, #f3f4f6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    opacity: 0;
    transition: all 0.2s ease;
}

.grouped-sidebar.expanded .sidebar-collapse-btn {
    opacity: 1;
}

.sidebar-collapse-btn:hover {
    background: var(--background-tertiary, #e5e7eb);
    color: var(--text-primary, #1f2937);
}

.grouped-sidebar.expanded .sidebar-collapse-btn i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.grouped-sidebar:not(.expanded) .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/* Grouped Sidebar Navigation */
.grouped-sidebar .sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grouped-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.grouped-sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.grouped-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e7eb);
    border-radius: 4px;
}

/* Sidebar Group */
.sidebar-group {
    margin: 0 0.5rem;
}

.group-header {
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}

.group-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary, #9ca3af);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.grouped-sidebar.expanded .group-title {
    opacity: 1;
}

.grouped-sidebar:not(.expanded) .group-header {
    height: 8px;
    padding: 0;
    margin-bottom: 0;
}

/* Grouped Sidebar Navigation Item */
.grouped-sidebar .sidebar-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
}

.grouped-sidebar .sidebar-nav-item:hover {
    background: var(--background-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

.grouped-sidebar .sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    color: #8B5CF6;
}

/* Grouped Sidebar Navigation Icon */
.grouped-sidebar .nav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.2s ease;
    color: var(--text-secondary, #6b7280);
}

.grouped-sidebar .sidebar-nav-item:hover .nav-icon,
.grouped-sidebar .sidebar-nav-item.active .nav-icon {
    color: inherit;
}

/* Grouped Sidebar Navigation Label */
.grouped-sidebar .nav-label {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
    color: inherit;
}

.grouped-sidebar.expanded .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Grouped Sidebar Tooltip */
.grouped-sidebar .nav-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: var(--text-primary, #1f2937);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grouped-sidebar:not(.expanded) .sidebar-nav-item:hover .nav-tooltip {
    opacity: 1;
}

.grouped-sidebar.expanded .nav-tooltip {
    display: none;
}

/* Dark Mode Support for Grouped Sidebar */
[data-theme="dark"] .grouped-sidebar,
body.dark-mode .grouped-sidebar {
    background: #0f172a;
    border-right-color: #1e293b;
}

[data-theme="dark"] .grouped-sidebar .sidebar-header,
body.dark-mode .grouped-sidebar .sidebar-header {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .grouped-sidebar .logo-text,
body.dark-mode .grouped-sidebar .logo-text {
    color: #f1f5f9;
}

[data-theme="dark"] .sidebar-collapse-btn,
body.dark-mode .sidebar-collapse-btn {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .sidebar-collapse-btn:hover,
body.dark-mode .sidebar-collapse-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .group-title,
body.dark-mode .group-title {
    color: #64748b;
}

[data-theme="dark"] .grouped-sidebar .sidebar-nav-item,
body.dark-mode .grouped-sidebar .sidebar-nav-item {
    color: #94a3b8;
}

[data-theme="dark"] .grouped-sidebar .sidebar-nav-item:hover,
body.dark-mode .grouped-sidebar .sidebar-nav-item:hover {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .grouped-sidebar .sidebar-nav-item.active,
body.dark-mode .grouped-sidebar .sidebar-nav-item.active {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

[data-theme="dark"] .grouped-sidebar .nav-icon,
body.dark-mode .grouped-sidebar .nav-icon {
    color: #64748b;
}

[data-theme="dark"] .grouped-sidebar .sidebar-nav-item:hover .nav-icon,
[data-theme="dark"] .grouped-sidebar .sidebar-nav-item.active .nav-icon,
body.dark-mode .grouped-sidebar .sidebar-nav-item:hover .nav-icon,
body.dark-mode .grouped-sidebar .sidebar-nav-item.active .nav-icon {
    color: inherit;
}

[data-theme="dark"] .grouped-sidebar .nav-tooltip,
body.dark-mode .grouped-sidebar .nav-tooltip {
    background: #334155;
}

[data-theme="dark"] .grouped-sidebar .sidebar-nav::-webkit-scrollbar-thumb,
body.dark-mode .grouped-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Legacy sidebar styles - keep for backward compatibility */
.applications-sidebar {
    padding: 1rem;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-title i {
    color: #6366f1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.15s ease;
}

.sidebar-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.sidebar-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.old-sidebar-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Loading State */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SAP Consultant Dashboard */
.sap-consultant-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Header - Ay Seçici */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-month-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.month-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.15s ease;
}

.month-nav-btn:hover:not(:disabled) {
    background: #e5e7eb;
    color: #1f2937;
}

.month-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-month {
    min-width: 120px;
    text-align: center;
    font-weight: 500;
    color: #374151;
}

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dönem Seçici */
.period-selector {
    display: flex;
    align-items: center;
}

.period-dropdown {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    min-width: 100px;
}

.period-dropdown:hover {
    border-color: #8b5cf6;
}

.period-dropdown:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.period-dropdown option {
    padding: 0.5rem;
}

/* Üst Metrik Kartları Grid */
.metrics-grid-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Üst Metrik Kartları Grid - 5 Kart */
.metrics-grid-top-five {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Alt Büyük Kartlar Grid */
.metrics-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Alt Büyük Kartlar Grid - 3x2 */
.metrics-grid-bottom-six {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .metrics-grid-bottom-six {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .metrics-grid-bottom-six {
        grid-template-columns: 1fr;
    }
}

/* Genel Metrik Kartı */
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.metric-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Verimlilik Kartı */
.efficiency-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.efficiency-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.efficiency-header i {
    color: #6366f1;
}

.efficiency-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.efficiency-gauge {
    position: relative;
    width: 160px;
    height: 100px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-value {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-value .percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.efficiency-details {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.detail-value.actual {
    color: #22c55e;
}

.detail-value.planned {
    color: #6366f1;
}

/* Ofis Takip Section - Kompakt */
.office-tracking-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Kompakt Ofis Takip Kartı */
.office-tracking-card-compact {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.office-header-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.office-header-compact i {
    color: #6366f1;
    font-size: 0.875rem;
}

.office-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.office-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0;
}

.office-row-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.office-row-icon.office-icon {
    background: #dbeafe;
    color: #2563eb;
}

.office-row-icon.home-icon {
    background: #dcfce7;
    color: #16a34a;
}

.office-row-icon.client-icon {
    background: #fef3c7;
    color: #d97706;
}

.office-row-icon.leave-icon {
    background: #fce7f3;
    color: #db2777;
}

.office-row-label {
    flex: 1;
    font-size: 0.8125rem;
    color: #6b7280;
}

.office-row-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.office-footer-compact {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

/* Dark mode for compact card */
[data-theme="dark"] .office-tracking-card-compact,
body.dark-mode .office-tracking-card-compact {
    background: #1a1a2e !important;
}

[data-theme="dark"] .office-header-compact,
body.dark-mode .office-header-compact {
    color: #f1f1f1 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .office-row-label,
body.dark-mode .office-row-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .office-row-value,
body.dark-mode .office-row-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .office-footer-compact,
body.dark-mode .office-footer-compact {
    color: #6b7280 !important;
    border-top-color: #2d2d4a !important;
}

/* Ofis Takip Kartı (Eski - geniş versiyon) */
.office-tracking-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.office-header i {
    color: #6366f1;
}

.office-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.office-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-icon.office-icon {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.client-icon {
    background: #dcfce7;
    color: #16a34a;
}

.stat-icon.home-icon {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon.leave-icon {
    background: #fce7f3;
    color: #db2777;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.office-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.total-label {
    color: #6b7280;
}

.total-value {
    font-weight: 600;
    color: #374151;
}

/* Dağılım Pasta Grafiği */
.distribution-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.distribution-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.distribution-header i {
    color: #6366f1;
}

.distribution-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #9ca3af;
}

.distribution-empty i {
    font-size: 2rem;
}

.distribution-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.pie-chart-container {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart-inner {
    position: absolute;
    width: 60%;
    height: 60%;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.pie-total {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.pie-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.pie-slice {
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.pie-slice:hover {
    opacity: 0.8;
}

.distribution-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-value {
    color: #6b7280;
    font-weight: 500;
}

.legend-more {
    color: #9ca3af;
    font-style: italic;
}

/* SAP Consultant Dashboard Pie Chart */
.distribution-content-pie {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pie-chart-wrapper {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.pie-chart-wrapper .pie-chart-svg {
    width: 100%;
    height: 100%;
}

.pie-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.pie-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pie-legend-label {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pie-legend-value {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pie-legend-more {
    color: var(--text-muted);
    font-style: italic;
}

/* Prim Kartı */
.premium-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.premium-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.premium-header i {
    color: #eab308;
}

.premium-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-total {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency-symbol {
    font-size: 1.25rem;
    color: #374151;
    font-weight: 600;
}

.premium-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
}

.premium-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.premium-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.premium-project {
    flex: 1;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-days {
    color: #6b7280;
    white-space: nowrap;
}

.premium-value {
    font-weight: 600;
    color: #22c55e;
    white-space: nowrap;
}

.premium-more {
    color: #9ca3af;
    font-style: italic;
}

.premium-empty {
    text-align: center;
    padding: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Gider Özet Kartı */
.expense-summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.expense-summary-card .expense-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.expense-summary-card .expense-header i {
    color: #6366f1;
}

.expense-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-row {
    display: flex;
    gap: 1rem;
}

.expense-item {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expense-item.approved {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.expense-item.pending {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.expense-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.expense-item.approved .expense-label {
    color: #16a34a;
}

.expense-item.pending .expense-label {
    color: #d97706;
}

.expense-values {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.expense-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.expense-amount {
    font-size: 1.125rem;
    font-weight: 700;
}

.expense-item.approved .expense-amount {
    color: #16a34a;
}

.expense-item.pending .expense-amount {
    color: #d97706;
}

.expense-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.total-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.total-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.125rem;
}

/* Ad-Hoc Görevler Kartı (SAP Consultant Dashboard) */
.task-assignments-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.task-assignments-card .task-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.task-assignments-card .task-header i {
    color: #8b5cf6;
}

.task-count-badge {
    background: #8b5cf6;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-item {
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}

.task-item:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
}

.task-item.task-overdue {
    background: #fef2f2;
    border-color: #fecaca;
}

.task-item-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.task-priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-priority-dot.priority-critical {
    background: #ef4444;
}

.task-priority-dot.priority-high {
    background: #f97316;
}

.task-priority-dot.priority-normal {
    background: #3b82f6;
}

.task-priority-dot.priority-low {
    background: #94a3b8;
}

.task-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.task-due {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-due.overdue-text {
    color: #ef4444;
    font-weight: 600;
}

.task-status-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8b5cf6;
    text-transform: uppercase;
}

.task-more {
    text-align: center;
    font-size: 0.75rem;
    color: #8b5cf6;
    font-weight: 500;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e2e8f0;
}

.task-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    color: #94a3b8;
}

.task-empty i {
    font-size: 1.5rem;
    color: #10b981;
}

.task-empty span {
    font-size: 0.8125rem;
}

/* Projelerim Kartı (SAP Consultant Dashboard) */
.my-projects-section {
    margin-top: 1rem;
}

.my-projects-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.my-projects-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
}

.my-projects-header i {
    color: #8b5cf6;
}

.my-projects-list {
    display: flex;
    flex-direction: column;
}

.my-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.my-project-item:last-child {
    border-bottom: none;
}

.my-project-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.my-project-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-project-customer {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.my-project-days {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    margin-left: 1rem;
}

.my-project-more {
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: #8b5cf6;
    font-weight: 500;
}

/* Responsive Düzenlemeler */
@media (max-width: 1400px) {
    .metrics-grid-top-five {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .metrics-grid-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid-top-five {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* Rail Sidebar - Tablet/Mobile için sabit dar */
    .rail-sidebar {
        width: 56px !important;
    }

    .rail-sidebar.expanded {
        width: 200px !important;
    }

    .dashboard-sidebar {
        height: calc(100vh - 56px);
    }

    .metrics-grid-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    /* Mobil için sidebar gizle veya bottom bar olarak göster */
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .metrics-grid-top {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .distribution-content {
        flex-direction: column;
    }

    .efficiency-details {
        gap: 1rem;
    }
}

/* ===================================
   ADMIN DASHBOARD STYLES
   =================================== */

.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
}

/* Admin Dashboard Cards */
.admin-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.admin-card:hover {
    box-shadow: var(--shadow-elevated);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.admin-card-header i {
    font-size: 1.1rem;
    color: var(--skycon-primary);
}

.admin-card-header .header-total {
    margin-left: auto;
    font-size: 0.875rem;
    color: #22c55e;
    font-weight: 700;
}

/* Admin Dashboard Top Grid (2 columns) */
.metrics-grid-admin-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Admin Dashboard Middle Grid (2 columns) */
.metrics-grid-middle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Admin Dashboard Bottom Grid (4 columns) */
.metrics-grid-bottom-admin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Pie Chart Container - Large */
.pie-chart-container-large {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.pie-chart-svg {
    width: 100%;
    height: 100%;
}

.pie-slice {
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.pie-slice:hover {
    opacity: 0.85;
    filter: brightness(1.1);
}

.distribution-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.distribution-legend-large {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-height: 200px;
    overflow-y: auto;
}

.distribution-legend-large .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.distribution-legend-large .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.distribution-legend-large .legend-label {
    flex: 1;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.distribution-legend-large .legend-value {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Pie Chart Container - Small (for bottom grid cards) */
.pie-chart-container-small {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

/* Project Pie Chart Styles */
.project-pie-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.project-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    max-height: 160px;
    overflow-y: auto;
}

.project-pie-legend-scrollable {
    max-height: 280px;
    padding-right: 0.5rem;
}

.project-pie-legend-scrollable::-webkit-scrollbar {
    width: 4px;
}

.project-pie-legend-scrollable::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 2px;
}

.project-pie-legend-scrollable::-webkit-scrollbar-thumb {
    background: var(--border-color, #cbd5e1);
    border-radius: 2px;
}

.project-pie-legend-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #94a3b8);
}

.project-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.project-legend-item .legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.project-legend-item .legend-label {
    flex: 1;
    min-width: 120px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

.project-legend-item .legend-value {
    color: var(--text-secondary);
    font-size: 0.7rem;
    white-space: nowrap;
}

.project-legend-more {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 0.25rem;
}

/* Plan vs Actual Content */
.plan-vs-actual-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
}

.plan-actual-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-group .bar-label {
    width: 80px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.bar-container {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    width: 0;
}

.bar-planned {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.bar-actual {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.bar-group .bar-value {
    width: 80px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Completion Rate Circle */
.completion-rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rate-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid;
}

.rate-circle .rate-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.rate-excellent {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}
.rate-excellent .rate-value { color: #22c55e; }

.rate-good {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}
.rate-good .rate-value { color: #3b82f6; }

.rate-warning {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}
.rate-warning .rate-value { color: #f97316; }

.rate-low {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.rate-low .rate-value { color: #ef4444; }

.rate-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.project-item:hover {
    background: #f3f4f6;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.project-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-customer {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.project-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.project-days {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.project-amount {
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 600;
}

.project-more {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.5rem;
}

/* Employee List */
.employee-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
}

.employee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.employee-item:hover {
    background: #f3f4f6;
}

.employee-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--skycon-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-info {
    flex: 1;
    min-width: 0;
}

.employee-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-stats {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.stat-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.stat-badge.billed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.stat-badge.efficiency {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.employee-days {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--skycon-primary);
    white-space: nowrap;
}

/* En Verimsiz Çalışanlar Stilleri */
.employee-item.inefficient {
    background: #fef2f2;
}

.employee-item.inefficient:hover {
    background: #fee2e2;
}

.employee-rank.warning {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.stat-badge.planned {
    background: rgba(147, 197, 253, 0.15);
    color: #3b82f6;
}

.stat-badge.efficiency-low {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* No Activity (Aktivite Girmemiş) Stiller */
.employee-item.no-activity {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.employee-item.no-activity:hover {
    background: #fee2e2;
}

.employee-rank.danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.stat-badge.no-entry {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    font-weight: 600;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Premium Summary Card */
.premium-summary-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: 1.25rem;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.premium-employee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-radius: var(--radius-sm);
    border-left: 3px solid #eab308;
}

.premium-emp-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-emp-days {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.premium-emp-amount {
    font-weight: 700;
    font-size: 0.875rem;
    color: #ca8a04;
    white-space: nowrap;
}

/* Activity Type Distribution ve Projelerim Row */
.activity-projects-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 1200px) {
    .activity-projects-row {
        grid-template-columns: 1fr;
    }
}

/* Activity Type Distribution Card */
.activity-type-distribution-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    padding: 1.25rem;
    margin-bottom: 0;
}

.my-projects-card-admin {
    margin-bottom: 0;
}

.activity-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.activity-type-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-sm);
    border-left: 3px solid #6366f1;
    transition: all 0.2s ease;
}

.activity-type-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: translateX(3px);
}

.activity-type-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    flex-shrink: 0;
}

.activity-type-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-type-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-type-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-type-days {
    text-align: right;
}

.activity-type-days .billed-days {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #22c55e;
    white-space: nowrap;
}

.activity-type-more {
    text-align: center;
    padding: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    gap: 0.75rem;
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.empty-state span {
    font-size: 0.875rem;
}

.empty-state-small {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* Admin Dashboard Responsive */
@media (max-width: 1400px) {
    .metrics-grid-bottom-admin {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .metrics-grid-admin-top {
        grid-template-columns: 1fr;
    }

    .metrics-grid-middle {
        grid-template-columns: 1fr;
    }

    .plan-vs-actual-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .metrics-grid-bottom-admin {
        grid-template-columns: 1fr;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .distribution-content {
        flex-direction: column;
        align-items: center;
    }

    .distribution-legend-large {
        max-height: none;
        width: 100%;
    }

    .bar-group {
        flex-wrap: wrap;
    }

    .bar-group .bar-label {
        width: 100%;
    }

    .bar-group .bar-value {
        width: 100%;
        text-align: left;
    }
}

/* ===================================
   DARK MODE THEME
   =================================== */

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.theme-toggle-btn:hover {
    background: var(--skycon-primary);
    border-color: var(--skycon-primary);
    color: white;
    transform: rotate(15deg);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: scale(1.1);
}

/* Dark Mode Variables */
[data-theme="dark"],
body.dark-mode,
html.dark-mode,
:root.dark-mode {
    /* Primary Theme - Adjusted for dark mode */
    --skycon-primary: #A78BFA;
    --skycon-secondary: #8B5CF6;
    --skycon-gradient: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);

    /* Background Colors - Dark */
    --background-primary: #0f0f23;
    --background-secondary: #1a1a2e;
    --background-hover: #252542;
    --background-tertiary: #16162a;

    /* Text Colors - Light for dark backgrounds */
    --text-primary: #f1f1f1;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    /* Borders and shadows for dark mode */
    --border-color: #2d2d4a;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-module: 0 2px 12px rgba(0, 0, 0, 0.4);

    /* Card backgrounds */
    --card-background: #1a1a2e;
    --card-border: #2d2d4a;

    /* Table colors */
    --table-header-bg: #252542;
    --table-row-hover: #252542;
    --table-border: #2d2d4a;
}

/* Force dark mode colors on body */
body.dark-mode,
body[data-theme="dark"] {
    background-color: #0f0f23 !important;
    color: #f1f1f1 !important;
}

/* Dark mode body and html */
[data-theme="dark"] body,
[data-theme="dark"] html,
body.dark-mode {
    background-color: #0f0f23 !important;
    color: #f1f1f1 !important;
}

/* Dark mode header */
[data-theme="dark"] .dashboard-top-header,
body.dark-mode .dashboard-top-header {
    background: #1a1a2e !important;
    border-bottom-color: #2d2d4a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .header-brand,
body.dark-mode .header-brand {
    color: #f1f1f1 !important;
}

/* Dark mode sidebar */
[data-theme="dark"] .dashboard-sidebar,
[data-theme="dark"] .sidebar-container,
body.dark-mode .dashboard-sidebar,
body.dark-mode .sidebar-container {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .sidebar-nav-item,
body.dark-mode .sidebar-nav-item {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .sidebar-nav-item:hover,
[data-theme="dark"] .sidebar-nav-item.active,
body.dark-mode .sidebar-nav-item:hover,
body.dark-mode .sidebar-nav-item.active {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

/* Dark mode main content */
[data-theme="dark"] .modern-dashboard,
[data-theme="dark"] .dashboard-container,
[data-theme="dark"] .dashboard-main,
body.dark-mode .modern-dashboard,
body.dark-mode .dashboard-container,
body.dark-mode .dashboard-main {
    background: #0f0f23 !important;
}

/* Dark mode cards */
[data-theme="dark"] .module-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .stat-card-modern,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .card,
[data-theme="dark"] .premium-card,
[data-theme="dark"] .summary-card,
body.dark-mode .module-card,
body.dark-mode .stat-card,
body.dark-mode .stat-card-modern,
body.dark-mode .metric-card,
body.dark-mode .card,
body.dark-mode .premium-card,
body.dark-mode .summary-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .summary-card .card-value {
    color: #f1f5f9 !important;
}

body.dark-mode .summary-card .card-label {
    color: #94a3b8 !important;
}

body.dark-mode .summary-card .card-icon {
    color: inherit !important;
}

body.dark-mode .summary-card .card-icon.blue {
    background: rgba(37, 99, 235, 0.3) !important;
    color: #60a5fa !important;
}

body.dark-mode .summary-card .card-icon.green {
    background: rgba(22, 163, 74, 0.3) !important;
    color: #4ade80 !important;
}

body.dark-mode .summary-card .card-icon.purple {
    background: rgba(147, 51, 234, 0.3) !important;
    color: #c084fc !important;
}

body.dark-mode .summary-card .card-icon.orange {
    background: rgba(234, 88, 12, 0.3) !important;
    color: #fb923c !important;
}

/* Dark mode for date cells in tables */
body.dark-mode .date-day {
    color: #f1f5f9 !important;
}

body.dark-mode .date-time {
    color: #94a3b8 !important;
}

body.dark-mode .date-cell .date-day,
body.dark-mode .date-info .date-day {
    color: #f1f5f9 !important;
}

body.dark-mode .date-cell .date-time,
body.dark-mode .date-info .date-time {
    color: #94a3b8 !important;
}

/* Plan Summary Header - Dark Mode (Plandan Aktivite Oluştur Modal) */
body.dark-mode .plan-summary-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border: 1px solid #475569 !important;
}

body.dark-mode .plan-summary-header .stat-label {
    color: #94a3b8 !important;
}

body.dark-mode .plan-summary-header .stat-value {
    color: #f1f5f9 !important;
}

body.dark-mode .plan-summary-header .stat-value.text-success {
    color: #4ade80 !important;
}

body.dark-mode .plan-summary-header .stat-value.text-warning {
    color: #fbbf24 !important;
}

[data-theme="dark"] .module-card:hover {
    background: var(--background-hover);
    border-color: var(--skycon-primary);
}

[data-theme="dark"] .module-title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .metric-title {
    color: var(--text-primary);
}

[data-theme="dark"] .module-description,
[data-theme="dark"] .card-subtitle {
    color: var(--text-secondary);
}

/* Dark mode forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--background-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--background-secondary);
    border-color: var(--skycon-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

/* Dark mode tables */
[data-theme="dark"] .table,
[data-theme="dark"] table {
    color: var(--text-primary);
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] table thead th {
    background-color: var(--table-header-bg);
    color: var(--text-primary);
    border-color: var(--table-border);
}

[data-theme="dark"] .table tbody td,
[data-theme="dark"] table tbody td {
    border-color: var(--table-border);
    color: var(--text-secondary);
}

[data-theme="dark"] .table tbody tr:hover,
[data-theme="dark"] table tbody tr:hover {
    background-color: var(--table-row-hover);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--background-tertiary);
}

/* Dark mode buttons */
[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--background-hover);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-light {
    background-color: var(--background-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Dark mode modals */
[data-theme="dark"] .modal-content {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary);
}

/* Dark mode dropdowns */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--background-hover);
    color: var(--text-primary);
}

/* Dark mode alerts */
[data-theme="dark"] .alert {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Dark mode badges */
[data-theme="dark"] .badge.bg-light {
    background-color: var(--background-hover) !important;
    color: var(--text-primary) !important;
}

/* Dark mode login page */
[data-theme="dark"] .login-page {
    background: var(--background-primary);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .login-form-container {
    background: var(--background-secondary);
    border-color: var(--border-color);
}

/* Dark mode page headers */
[data-theme="dark"] .page-header,
[data-theme="dark"] .page-header-with-back {
    background: var(--background-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .page-title {
    color: var(--text-primary);
}

[data-theme="dark"] .page-description {
    color: var(--text-secondary);
}

/* Dark mode navigation */
[data-theme="dark"] .nav-tabs {
    border-color: var(--border-color);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--skycon-primary);
}

/* Dark mode charts background */
[data-theme="dark"] .chart-container,
[data-theme="dark"] .chart-wrapper {
    background: var(--background-secondary);
    border-radius: var(--radius-md);
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--background-primary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Dark mode theme toggle button when active */
[data-theme="dark"] .theme-toggle-btn {
    background: var(--background-hover);
    border-color: var(--border-color);
    color: #fbbf24;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: var(--background-primary);
}

/* Dark mode specific dashboard elements */
[data-theme="dark"] .dashboard-title,
[data-theme="dark"] .dashboard-subtitle {
    color: var(--text-primary);
}

[data-theme="dark"] .dashboard-subtitle {
    color: var(--text-secondary);
}

/* Dark mode stat values */
[data-theme="dark"] .stat-value,
[data-theme="dark"] .metric-value,
[data-theme="dark"] .stat-number-modern {
    color: var(--skycon-primary);
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .metric-label {
    color: var(--text-secondary);
}

/* Dark mode user section */
[data-theme="dark"] .user-info {
    color: var(--text-primary);
}

[data-theme="dark"] .user-info:hover {
    color: var(--skycon-primary);
}

/* Dark mode avatar placeholder */
[data-theme="dark"] .avatar-placeholder {
    background: var(--skycon-gradient);
    color: white;
}

/* Dark mode empty states */
[data-theme="dark"] .empty-state,
[data-theme="dark"] .no-data-message {
    color: var(--text-muted);
    background: var(--background-tertiary);
}

/* Dark mode loading states */
[data-theme="dark"] .loading-spinner {
    border-color: var(--border-color);
    border-top-color: var(--skycon-primary);
}

/* Dark mode tooltips */
[data-theme="dark"] .tooltip-inner {
    background-color: var(--background-hover);
    color: var(--text-primary);
}

/* Dark mode popovers */
[data-theme="dark"] .popover {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .popover-header {
    background-color: var(--background-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .popover-body {
    color: var(--text-secondary);
}

/* Dark mode progress bars */
[data-theme="dark"] .progress {
    background-color: var(--background-tertiary);
}

/* Dark mode list groups */
[data-theme="dark"] .list-group-item {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .list-group-item:hover {
    background-color: var(--background-hover);
}

/* Dark mode breadcrumbs */
[data-theme="dark"] .breadcrumb {
    background-color: var(--background-tertiary);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--skycon-primary);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Dark mode pagination */
[data-theme="dark"] .page-link {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .page-link:hover {
    background-color: var(--background-hover);
    color: var(--text-primary);
}

[data-theme="dark"] .page-item.active .page-link {
    background-color: var(--skycon-primary);
    border-color: var(--skycon-primary);
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: var(--background-tertiary);
    color: var(--text-muted);
}

/* Dark mode toasts */
[data-theme="dark"] .toast {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Dark mode calendar */
[data-theme="dark"] .calendar-day {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .calendar-day:hover {
    background-color: var(--background-hover);
}

/* Dark mode text utilities override */
[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--background-secondary) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--background-tertiary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

/* Dark mode hr */
[data-theme="dark"] hr {
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Smooth transition for theme changes */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

/* ===================================
   DARK MODE - DASHBOARD SPECIFIC
   =================================== */

/* Admin Dashboard Container */
[data-theme="dark"] .admin-dashboard,
[data-theme="dark"] .dashboard-layout,
body.dark-mode .admin-dashboard,
body.dark-mode .dashboard-layout {
    background: #0f0f23 !important;
}

/* Dashboard Header */
[data-theme="dark"] .dashboard-header,
body.dark-mode .dashboard-header {
    background: transparent !important;
}

[data-theme="dark"] .dashboard-month-title,
body.dark-mode .dashboard-month-title {
    color: #f1f1f1 !important;
}

/* Period & Month Selectors */
[data-theme="dark"] .period-dropdown,
[data-theme="dark"] .month-selector,
body.dark-mode .period-dropdown,
body.dark-mode .month-selector {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .month-nav-btn,
body.dark-mode .month-nav-btn {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .month-nav-btn:hover:not(:disabled),
body.dark-mode .month-nav-btn:hover:not(:disabled) {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .current-month,
body.dark-mode .current-month {
    color: #f1f1f1 !important;
}

/* Admin Cards */
[data-theme="dark"] .admin-card,
body.dark-mode .admin-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .admin-card-header,
body.dark-mode .admin-card-header {
    color: #f1f1f1 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .admin-card-header i,
body.dark-mode .admin-card-header i {
    color: #A78BFA !important;
}

/* Metric Cards */
[data-theme="dark"] .metric-card,
[data-theme="dark"] .stat-card-modern,
body.dark-mode .metric-card,
body.dark-mode .stat-card-modern {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .metric-card .metric-value,
[data-theme="dark"] .stat-card-modern .stat-number-modern,
body.dark-mode .metric-card .metric-value,
body.dark-mode .stat-card-modern .stat-number-modern {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .metric-card .metric-label,
[data-theme="dark"] .stat-card-modern .stat-label-modern,
body.dark-mode .metric-card .metric-label,
body.dark-mode .stat-card-modern .stat-label-modern {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .metric-card .metric-sub-label,
[data-theme="dark"] .stat-card-modern .stat-sublabel,
body.dark-mode .metric-card .metric-sub-label,
body.dark-mode .stat-card-modern .stat-sublabel {
    color: #6b6b7b !important;
}

/* Premium Card */
[data-theme="dark"] .premium-card,
body.dark-mode .premium-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .premium-card-header,
body.dark-mode .premium-card-header {
    color: #f1f1f1 !important;
}

/* Distribution Chart & Legend */
[data-theme="dark"] .distribution-content,
[data-theme="dark"] .distribution-legend-large,
body.dark-mode .distribution-content,
body.dark-mode .distribution-legend-large {
    background: transparent !important;
}

[data-theme="dark"] .legend-item,
body.dark-mode .legend-item {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .legend-label,
body.dark-mode .legend-label {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .legend-value,
body.dark-mode .legend-value {
    color: #a0a0b0 !important;
}

/* SAP Consultant Pie Chart - Dark Mode */
[data-theme="dark"] .distribution-content-pie,
body.dark-mode .distribution-content-pie {
    background: transparent !important;
}

[data-theme="dark"] .pie-legend-label,
body.dark-mode .pie-legend-label {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .pie-legend-value,
body.dark-mode .pie-legend-value {
    color: #94a3b8 !important;
}

[data-theme="dark"] .pie-legend-more,
body.dark-mode .pie-legend-more {
    color: #64748b !important;
}

/* Bar Charts */
[data-theme="dark"] .bar-group,
body.dark-mode .bar-group {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .bar-label,
body.dark-mode .bar-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .bar-value,
body.dark-mode .bar-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .bar-container,
body.dark-mode .bar-container {
    background: #252542 !important;
}

/* Efficiency Circle */
[data-theme="dark"] .efficiency-ring-bg,
body.dark-mode .efficiency-ring-bg {
    stroke: #2d2d4a !important;
}

[data-theme="dark"] .efficiency-value,
body.dark-mode .efficiency-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .efficiency-label,
body.dark-mode .efficiency-label {
    color: #a0a0b0 !important;
}

/* Office Tracking Card */
[data-theme="dark"] .office-tracking-card,
[data-theme="dark"] .office-stat-card,
body.dark-mode .office-tracking-card,
body.dark-mode .office-stat-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .office-stat-value,
body.dark-mode .office-stat-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .office-stat-label,
body.dark-mode .office-stat-label {
    color: #a0a0b0 !important;
}

/* Expense Summary Card */
[data-theme="dark"] .expense-summary-card,
[data-theme="dark"] .expense-stat,
body.dark-mode .expense-summary-card,
body.dark-mode .expense-stat {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-value,
[data-theme="dark"] .expense-total,
body.dark-mode .expense-value,
body.dark-mode .expense-total {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .expense-label,
body.dark-mode .expense-label {
    color: #a0a0b0 !important;
}

/* Top Employees Card */
[data-theme="dark"] .top-employees-card,
[data-theme="dark"] .employee-rank-item,
body.dark-mode .top-employees-card,
body.dark-mode .employee-rank-item {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .employee-rank-item:hover,
body.dark-mode .employee-rank-item:hover {
    background: #252542 !important;
}

[data-theme="dark"] .employee-name,
body.dark-mode .employee-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .employee-stats,
body.dark-mode .employee-stats {
    color: #a0a0b0 !important;
}

/* Project Cards */
[data-theme="dark"] .project-card,
[data-theme="dark"] .invoiced-project-item,
body.dark-mode .project-card,
body.dark-mode .invoiced-project-item {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .invoiced-project-item:hover,
body.dark-mode .project-card:hover,
body.dark-mode .invoiced-project-item:hover {
    background: #252542 !important;
}

[data-theme="dark"] .project-name,
body.dark-mode .project-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .project-customer,
[data-theme="dark"] .project-days,
body.dark-mode .project-customer,
body.dark-mode .project-days {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .project-amount,
body.dark-mode .project-amount {
    color: #22c55e !important;
}

/* Sidebar in dark mode */
[data-theme="dark"] .dashboard-sidebar,
[data-theme="dark"] .applications-sidebar,
body.dark-mode .dashboard-sidebar,
body.dark-mode .applications-sidebar {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .sidebar-header,
body.dark-mode .sidebar-header {
    color: #a0a0b0 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .sidebar-nav-item,
[data-theme="dark"] .app-link,
body.dark-mode .sidebar-nav-item,
body.dark-mode .app-link {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .sidebar-nav-item:hover,
[data-theme="dark"] .app-link:hover,
[data-theme="dark"] .sidebar-nav-item.active,
[data-theme="dark"] .app-link.active,
body.dark-mode .sidebar-nav-item:hover,
body.dark-mode .app-link:hover,
body.dark-mode .sidebar-nav-item.active,
body.dark-mode .app-link.active {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .app-icon,
body.dark-mode .app-icon {
    background: #252542 !important;
}

/* Dashboard Main Area */
[data-theme="dark"] .dashboard-main,
body.dark-mode .dashboard-main {
    background: #0f0f23 !important;
}

/* Empty State */
[data-theme="dark"] .empty-state,
body.dark-mode .empty-state {
    color: #6b6b7b !important;
    background: #16162a !important;
}

[data-theme="dark"] .empty-state i,
body.dark-mode .empty-state i {
    color: #4b4b5b !important;
}

/* Loading State */
[data-theme="dark"] .dashboard-loading,
body.dark-mode .dashboard-loading {
    color: #a0a0b0 !important;
}

/* SVG Pie Chart - White strokes visible in dark mode */
[data-theme="dark"] .pie-chart-svg path,
body.dark-mode .pie-chart-svg path {
    stroke: #1a1a2e !important;
}

/* Grid Backgrounds */
[data-theme="dark"] .metrics-grid-top,
[data-theme="dark"] .metrics-grid-admin-top,
[data-theme="dark"] .metrics-grid-middle,
[data-theme="dark"] .metrics-grid-bottom,
body.dark-mode .metrics-grid-top,
body.dark-mode .metrics-grid-admin-top,
body.dark-mode .metrics-grid-middle,
body.dark-mode .metrics-grid-bottom {
    background: transparent !important;
}

/* All card-like elements */
[data-theme="dark"] [class*="-card"],
body.dark-mode [class*="-card"] {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* Override for colored cards that should keep their colors */
[data-theme="dark"] .metric-card .metric-icon-wrapper,
body.dark-mode .metric-card .metric-icon-wrapper {
    opacity: 0.9;
}

/* Tables in dashboard */
[data-theme="dark"] .admin-card table,
[data-theme="dark"] .admin-card .table,
body.dark-mode .admin-card table,
body.dark-mode .admin-card .table {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .admin-card th,
body.dark-mode .admin-card th {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .admin-card td,
body.dark-mode .admin-card td {
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

/* Input fields in dashboard */
[data-theme="dark"] .admin-card input,
[data-theme="dark"] .admin-card select,
body.dark-mode .admin-card input,
body.dark-mode .admin-card select {
    background: #16162a !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

/* Links in dark mode */
[data-theme="dark"] a:not(.btn),
body.dark-mode a:not(.btn) {
    color: #A78BFA;
}

[data-theme="dark"] a:not(.btn):hover,
body.dark-mode a:not(.btn):hover {
    color: #c4b5fd;
}

/* Badge colors preserved */
[data-theme="dark"] .badge.bg-success {
    background-color: #22c55e !important;
}

[data-theme="dark"] .badge.bg-warning {
    background-color: #eab308 !important;
}

[data-theme="dark"] .badge.bg-danger {
    background-color: #ef4444 !important;
}

[data-theme="dark"] .badge.bg-info {
    background-color: #3b82f6 !important;
}

[data-theme="dark"] .badge.bg-primary {
    background-color: #A78BFA !important;
}

/* Stat Card Icons Background */
[data-theme="dark"] .stat-icon-modern,
body.dark-mode .stat-icon-modern {
    opacity: 0.9;
}

/* Welcome Section */
[data-theme="dark"] .dashboard-welcome,
body.dark-mode .dashboard-welcome {
    background: transparent !important;
}

[data-theme="dark"] .dashboard-title,
body.dark-mode .dashboard-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .dashboard-subtitle,
body.dark-mode .dashboard-subtitle {
    color: #a0a0b0 !important;
}

/* Module Cards */
[data-theme="dark"] .module-card,
body.dark-mode .module-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .module-card:hover,
body.dark-mode .module-card:hover {
    background: #252542 !important;
    border-color: #A78BFA !important;
}

[data-theme="dark"] .module-title,
body.dark-mode .module-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .module-description,
body.dark-mode .module-description {
    color: #a0a0b0 !important;
}

/* General text in dark mode */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] p,
body.dark-mode p {
    color: #a0a0b0;
}

[data-theme="dark"] span,
body.dark-mode span {
    color: inherit;
}

/* Force specific values */
[data-theme="dark"] .text-success {
    color: #22c55e !important;
}

[data-theme="dark"] .text-danger {
    color: #ef4444 !important;
}

[data-theme="dark"] .text-warning {
    color: #eab308 !important;
}

[data-theme="dark"] .text-info {
    color: #3b82f6 !important;
}

[data-theme="dark"] .text-primary {
    color: #A78BFA !important;
}

/* ===================================
   DARK MODE - SPECIFIC DASHBOARD ITEMS
   =================================== */

/* Project Items in Faturalanan Projeler */
[data-theme="dark"] .project-item,
[data-theme="dark"] .project-list .project-item,
body.dark-mode .project-item,
body.dark-mode .project-list .project-item {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .project-item:hover,
body.dark-mode .project-item:hover {
    background: #2d2d4a !important;
}

[data-theme="dark"] .project-info .project-name,
body.dark-mode .project-info .project-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .project-info .project-customer,
body.dark-mode .project-info .project-customer {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .project-stats .project-amount,
body.dark-mode .project-stats .project-amount {
    color: #22c55e !important;
}

[data-theme="dark"] .project-stats .project-days,
body.dark-mode .project-stats .project-days {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .project-more,
body.dark-mode .project-more {
    color: #A78BFA !important;
}

/* Office Tracking Card - Stat boxes */
[data-theme="dark"] .office-tracking-card,
body.dark-mode .office-tracking-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .office-header,
body.dark-mode .office-header {
    color: #f1f1f1 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .office-stat,
body.dark-mode .office-stat {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .office-stat .stat-value,
body.dark-mode .office-stat .stat-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .office-stat .stat-label,
body.dark-mode .office-stat .stat-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .office-footer,
body.dark-mode .office-footer {
    color: #a0a0b0 !important;
    border-top-color: #2d2d4a !important;
}

[data-theme="dark"] .office-footer .total-value,
body.dark-mode .office-footer .total-value {
    color: #f1f1f1 !important;
}

/* Expense Summary Card */
[data-theme="dark"] .expense-summary-card,
body.dark-mode .expense-summary-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-summary-card .expense-header,
body.dark-mode .expense-summary-card .expense-header {
    color: #f1f1f1 !important;
    border-bottom: none !important;
}

[data-theme="dark"] .expense-item,
[data-theme="dark"] .expense-item.approved,
[data-theme="dark"] .expense-item.pending,
body.dark-mode .expense-item,
body.dark-mode .expense-item.approved,
body.dark-mode .expense-item.pending {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-item .expense-label,
body.dark-mode .expense-item .expense-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .expense-item .expense-count,
body.dark-mode .expense-item .expense-count {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .expense-item.approved .expense-amount,
body.dark-mode .expense-item.approved .expense-amount {
    color: #22c55e !important;
}

[data-theme="dark"] .expense-item.pending .expense-amount,
body.dark-mode .expense-item.pending .expense-amount {
    color: #f97316 !important;
}

[data-theme="dark"] .expense-total,
body.dark-mode .expense-total {
    border-top-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-total .total-amount,
body.dark-mode .expense-total .total-amount {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .expense-total .total-label,
body.dark-mode .expense-total .total-label {
    color: #a0a0b0 !important;
}

/* Görevlerim Kartı Dark Mode */
[data-theme="dark"] .task-assignments-card,
body.dark-mode .task-assignments-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .task-assignments-card .task-header,
body.dark-mode .task-assignments-card .task-header {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .task-item,
body.dark-mode .task-item {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .task-item:hover,
body.dark-mode .task-item:hover {
    border-color: #4c4c7a !important;
    background: #2a2a4a !important;
}

[data-theme="dark"] .task-item.task-overdue,
body.dark-mode .task-item.task-overdue {
    background: #2d1a1a !important;
    border-color: #5c2626 !important;
}

[data-theme="dark"] .task-title,
body.dark-mode .task-title {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .task-due,
body.dark-mode .task-due {
    color: #94a3b8 !important;
}

[data-theme="dark"] .task-more,
body.dark-mode .task-more {
    border-top-color: #2d2d4a !important;
}

[data-theme="dark"] .task-empty,
body.dark-mode .task-empty {
    color: #6b7280 !important;
}

/* Projelerim Kartı Dark Mode */
[data-theme="dark"] .my-projects-card,
body.dark-mode .my-projects-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .my-projects-header,
body.dark-mode .my-projects-header {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .my-project-item,
body.dark-mode .my-project-item {
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .my-project-name,
body.dark-mode .my-project-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .my-project-customer,
[data-theme="dark"] .my-project-days,
body.dark-mode .my-project-customer,
body.dark-mode .my-project-days {
    color: #a0a0b0 !important;
}

/* Employee Items in Lists */
[data-theme="dark"] .employee-item,
[data-theme="dark"] .employee-list .employee-item,
body.dark-mode .employee-item,
body.dark-mode .employee-list .employee-item {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .employee-item:hover,
body.dark-mode .employee-item:hover {
    background: #2d2d4a !important;
}

[data-theme="dark"] .employee-item.inefficient,
body.dark-mode .employee-item.inefficient {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .employee-item .employee-name,
body.dark-mode .employee-item .employee-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .employee-item .employee-days,
body.dark-mode .employee-item .employee-days {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .employee-rank,
body.dark-mode .employee-rank {
    background: #A78BFA !important;
    color: white !important;
}

[data-theme="dark"] .employee-rank.danger,
body.dark-mode .employee-rank.danger {
    background: #ef4444 !important;
}

[data-theme="dark"] .employee-rank.warning,
body.dark-mode .employee-rank.warning {
    background: #eab308 !important;
}

/* Stat badges */
[data-theme="dark"] .stat-badge,
body.dark-mode .stat-badge {
    background: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .stat-badge.billed,
body.dark-mode .stat-badge.billed {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

[data-theme="dark"] .stat-badge.efficiency,
body.dark-mode .stat-badge.efficiency {
    background: rgba(167, 139, 250, 0.2) !important;
    color: #A78BFA !important;
}

[data-theme="dark"] .stat-badge.no-entry,
body.dark-mode .stat-badge.no-entry {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .stat-badge.planned,
body.dark-mode .stat-badge.planned {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

[data-theme="dark"] .stat-badge.efficiency-low,
body.dark-mode .stat-badge.efficiency-low {
    background: rgba(234, 179, 8, 0.2) !important;
    color: #eab308 !important;
}

/* Premium Summary Card */
[data-theme="dark"] .premium-summary-card,
body.dark-mode .premium-summary-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .premium-summary-card .admin-card-header,
body.dark-mode .premium-summary-card .admin-card-header {
    color: #f1f1f1 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .premium-summary-card .header-total,
body.dark-mode .premium-summary-card .header-total {
    color: #22c55e !important;
}

[data-theme="dark"] .premium-employee-item,
body.dark-mode .premium-employee-item {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .premium-employee-item:hover,
body.dark-mode .premium-employee-item:hover {
    background: #2d2d4a !important;
}

[data-theme="dark"] .premium-emp-name,
body.dark-mode .premium-emp-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .premium-emp-days,
body.dark-mode .premium-emp-days {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .premium-emp-amount,
body.dark-mode .premium-emp-amount {
    color: #22c55e !important;
}

/* Activity Type Distribution Card - Dark Mode */
[data-theme="dark"] .activity-type-distribution-card,
body.dark-mode .activity-type-distribution-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .activity-type-distribution-card .admin-card-header,
body.dark-mode .activity-type-distribution-card .admin-card-header {
    color: #f1f1f1 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .activity-type-distribution-card .header-total,
body.dark-mode .activity-type-distribution-card .header-total {
    color: #22c55e !important;
}

[data-theme="dark"] .activity-type-item,
body.dark-mode .activity-type-item {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .activity-type-item:hover,
body.dark-mode .activity-type-item:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
}

[data-theme="dark"] .activity-type-name,
body.dark-mode .activity-type-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .activity-type-count,
body.dark-mode .activity-type-count {
    color: #94a3b8 !important;
}

[data-theme="dark"] .activity-type-days .billed-days,
body.dark-mode .activity-type-days .billed-days {
    color: #4ade80 !important;
}

[data-theme="dark"] .activity-type-more,
body.dark-mode .activity-type-more {
    color: #64748b !important;
}

/* Empty State Small */
[data-theme="dark"] .empty-state-small,
body.dark-mode .empty-state-small {
    color: #6b6b7b !important;
    background: transparent !important;
}

/* Project List */
[data-theme="dark"] .project-list,
body.dark-mode .project-list {
    background: transparent !important;
}

/* Employee List */
[data-theme="dark"] .employee-list,
body.dark-mode .employee-list {
    background: transparent !important;
}

/* Premium Grid */
[data-theme="dark"] .premium-grid,
body.dark-mode .premium-grid {
    background: transparent !important;
}

/* Office Content */
[data-theme="dark"] .office-content,
body.dark-mode .office-content {
    background: transparent !important;
}

/* Expense Content */
[data-theme="dark"] .expense-content,
body.dark-mode .expense-content {
    background: transparent !important;
}

/* Expense Row */
[data-theme="dark"] .expense-row,
body.dark-mode .expense-row {
    background: transparent !important;
}

/* Rate Circle */
[data-theme="dark"] .rate-circle,
body.dark-mode .rate-circle {
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .rate-circle .rate-value,
body.dark-mode .rate-circle .rate-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .rate-label,
body.dark-mode .rate-label {
    color: #a0a0b0 !important;
}

/* Plan vs Actual Content */
[data-theme="dark"] .plan-vs-actual-content,
body.dark-mode .plan-vs-actual-content {
    background: transparent !important;
}

[data-theme="dark"] .plan-actual-bars,
body.dark-mode .plan-actual-bars {
    background: transparent !important;
}

[data-theme="dark"] .completion-rate,
body.dark-mode .completion-rate {
    background: transparent !important;
}

/* ===================================
   DARK MODE - COMPREHENSIVE PAGE STYLES
   =================================== */

/* =========================
   EMPLOYEES PAGE
   ========================= */

/* Employee Header Bar */
[data-theme="dark"] .employees-header-bar,
body.dark-mode .employees-header-bar {
    background: transparent !important;
}

/* Employee Cards */
[data-theme="dark"] .employee-card,
[data-theme="dark"] .employee-grid-card,
[data-theme="dark"] .employee-list-item,
body.dark-mode .employee-card,
body.dark-mode .employee-grid-card,
body.dark-mode .employee-list-item {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .employee-card:hover,
[data-theme="dark"] .employee-grid-card:hover,
body.dark-mode .employee-card:hover,
body.dark-mode .employee-grid-card:hover {
    border-color: #A78BFA !important;
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.2) !important;
}

[data-theme="dark"] .employee-card .employee-name,
[data-theme="dark"] .employee-grid-card .employee-name,
body.dark-mode .employee-card .employee-name,
body.dark-mode .employee-grid-card .employee-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .employee-card .employee-position,
[data-theme="dark"] .employee-card .employee-department,
[data-theme="dark"] .employee-card .employee-email,
body.dark-mode .employee-card .employee-position,
body.dark-mode .employee-card .employee-department,
body.dark-mode .employee-card .employee-email {
    color: #a0a0b0 !important;
}

/* Employee Detail Wizard */
[data-theme="dark"] .employee-detail-wizard,
body.dark-mode .employee-detail-wizard {
    background: transparent !important;
}

[data-theme="dark"] .wizard-tab-navigation,
body.dark-mode .wizard-tab-navigation {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .wizard-tab-button,
body.dark-mode .wizard-tab-button {
    background: transparent !important;
    color: #a0a0b0 !important;
    border-color: transparent !important;
}

[data-theme="dark"] .wizard-tab-button:hover,
[data-theme="dark"] .wizard-tab-button.active,
body.dark-mode .wizard-tab-button:hover,
body.dark-mode .wizard-tab-button.active {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #A78BFA !important;
}

[data-theme="dark"] .wizard-profile-card,
body.dark-mode .wizard-profile-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .profile-name,
body.dark-mode .profile-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .profile-position,
[data-theme="dark"] .profile-department,
body.dark-mode .profile-position,
body.dark-mode .profile-department {
    color: #a0a0b0 !important;
}

/* =========================
   SEARCH & FILTER SECTION
   ========================= */

[data-theme="dark"] .search-filter-section,
[data-theme="dark"] .filter-section,
[data-theme="dark"] .employees-filter-section,
[data-theme="dark"] .filter-container,
[data-theme="dark"] .search-container,
body.dark-mode .search-filter-section,
body.dark-mode .filter-section,
body.dark-mode .employees-filter-section,
body.dark-mode .filter-container,
body.dark-mode .search-container {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .search-input-wrapper,
[data-theme="dark"] .search-box,
body.dark-mode .search-input-wrapper,
body.dark-mode .search-box {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .search-input-wrapper input,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .search-input,
body.dark-mode .search-input-wrapper input,
body.dark-mode .search-box input,
body.dark-mode .search-input {
    background: transparent !important;
    color: #f1f1f1 !important;
    border: none !important;
}

[data-theme="dark"] .search-input-wrapper input::placeholder,
[data-theme="dark"] .search-box input::placeholder,
[data-theme="dark"] .search-input::placeholder,
body.dark-mode .search-input-wrapper input::placeholder,
body.dark-mode .search-box input::placeholder,
body.dark-mode .search-input::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .search-input-wrapper i,
[data-theme="dark"] .search-box i,
body.dark-mode .search-input-wrapper i,
body.dark-mode .search-box i {
    color: #6b6b7b !important;
}

/* Filter Tabs/Chips */
[data-theme="dark"] .filter-tabs,
[data-theme="dark"] .filter-chips,
[data-theme="dark"] .status-filter-tabs,
body.dark-mode .filter-tabs,
body.dark-mode .filter-chips,
body.dark-mode .status-filter-tabs {
    background: transparent !important;
}

[data-theme="dark"] .filter-tab,
[data-theme="dark"] .filter-chip,
[data-theme="dark"] .status-tab,
body.dark-mode .filter-tab,
body.dark-mode .filter-chip,
body.dark-mode .status-tab {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .filter-tab:hover,
[data-theme="dark"] .filter-chip:hover,
[data-theme="dark"] .status-tab:hover,
[data-theme="dark"] .filter-tab.active,
[data-theme="dark"] .filter-chip.active,
[data-theme="dark"] .status-tab.active,
body.dark-mode .filter-tab:hover,
body.dark-mode .filter-chip:hover,
body.dark-mode .status-tab:hover,
body.dark-mode .filter-tab.active,
body.dark-mode .filter-chip.active,
body.dark-mode .status-tab.active {
    background: #A78BFA !important;
    border-color: #A78BFA !important;
    color: white !important;
}

/* =========================
   GENERIC FORM ELEMENTS
   ========================= */

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="date"],
body.dark-mode input[type="datetime-local"],
body.dark-mode input[type="search"],
body.dark-mode textarea,
body.dark-mode select {
    background: #16162a !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    background: #1a1a2e !important;
    border-color: #A78BFA !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] label,
body.dark-mode label {
    color: #a0a0b0 !important;
}

/* Select Options */
[data-theme="dark"] select option,
body.dark-mode select option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* =========================
   GENERIC CARDS & CONTAINERS
   ========================= */

[data-theme="dark"] .card,
[data-theme="dark"] .content-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .detail-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .box,
[data-theme="dark"] .container-card,
body.dark-mode .card,
body.dark-mode .content-card,
body.dark-mode .info-card,
body.dark-mode .detail-card,
body.dark-mode .panel,
body.dark-mode .box,
body.dark-mode .container-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .panel-header,
body.dark-mode .card-header,
body.dark-mode .panel-header {
    background: #252542 !important;
    border-bottom-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .card-body,
[data-theme="dark"] .panel-body,
body.dark-mode .card-body,
body.dark-mode .panel-body {
    background: #1a1a2e !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .card-footer,
[data-theme="dark"] .panel-footer,
body.dark-mode .card-footer,
body.dark-mode .panel-footer {
    background: #252542 !important;
    border-top-color: #2d2d4a !important;
}

/* =========================
   TABLES
   ========================= */

[data-theme="dark"] table,
[data-theme="dark"] .table,
[data-theme="dark"] .data-table,
body.dark-mode table,
body.dark-mode .table,
body.dark-mode .data-table {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] table thead,
[data-theme="dark"] .table thead,
body.dark-mode table thead,
body.dark-mode .table thead {
    background: #252542 !important;
}

[data-theme="dark"] table th,
[data-theme="dark"] .table th,
body.dark-mode table th,
body.dark-mode .table th {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] table td,
[data-theme="dark"] .table td,
body.dark-mode table td,
body.dark-mode .table td {
    background: #1a1a2e !important;
    color: #a0a0b0 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] table tbody tr:hover,
[data-theme="dark"] .table tbody tr:hover,
body.dark-mode table tbody tr:hover,
body.dark-mode .table tbody tr:hover {
    background: #252542 !important;
}

[data-theme="dark"] table tbody tr:nth-child(even),
[data-theme="dark"] .table-striped tbody tr:nth-child(even),
body.dark-mode table tbody tr:nth-child(even),
body.dark-mode .table-striped tbody tr:nth-child(even) {
    background: #16162a !important;
}

/* =========================
   BUTTONS
   ========================= */

[data-theme="dark"] .btn-back-blue,
[data-theme="dark"] .btn-back-modern,
body.dark-mode .btn-back-blue,
body.dark-mode .btn-back-modern {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .btn-back-blue:hover,
[data-theme="dark"] .btn-back-modern:hover,
body.dark-mode .btn-back-blue:hover,
body.dark-mode .btn-back-modern:hover {
    background: #A78BFA !important;
    border-color: #A78BFA !important;
    color: white !important;
}

[data-theme="dark"] .btn-modern,
body.dark-mode .btn-modern {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-modern:hover,
body.dark-mode .btn-modern:hover {
    background: #2d2d4a !important;
    border-color: #A78BFA !important;
}

[data-theme="dark"] .btn-module,
body.dark-mode .btn-module {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-module:hover,
body.dark-mode .btn-module:hover {
    background: #A78BFA !important;
    border-color: #A78BFA !important;
    color: white !important;
}

[data-theme="dark"] .btn-outline-primary,
body.dark-mode .btn-outline-primary {
    border-color: #A78BFA !important;
    color: #A78BFA !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
body.dark-mode .btn-outline-primary:hover {
    background: #A78BFA !important;
    color: white !important;
}

[data-theme="dark"] .btn-outline-secondary,
body.dark-mode .btn-outline-secondary {
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .btn-outline-secondary:hover,
body.dark-mode .btn-outline-secondary:hover {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-secondary,
body.dark-mode .btn-secondary {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-light,
body.dark-mode .btn-light {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

/* Filter Button */
[data-theme="dark"] .btn-filter,
[data-theme="dark"] .filter-btn,
body.dark-mode .btn-filter,
body.dark-mode .filter-btn {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

/* View Toggle Buttons */
[data-theme="dark"] .view-toggle,
[data-theme="dark"] .view-toggle-btn,
body.dark-mode .view-toggle,
body.dark-mode .view-toggle-btn {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .view-toggle.active,
[data-theme="dark"] .view-toggle-btn.active,
body.dark-mode .view-toggle.active,
body.dark-mode .view-toggle-btn.active {
    background: #A78BFA !important;
    border-color: #A78BFA !important;
    color: white !important;
}

/* Sort Dropdown */
[data-theme="dark"] .sort-dropdown,
[data-theme="dark"] .sort-select,
body.dark-mode .sort-dropdown,
body.dark-mode .sort-select {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

/* =========================
   BADGES & TAGS
   ========================= */

[data-theme="dark"] .badge,
[data-theme="dark"] .tag,
[data-theme="dark"] .chip,
body.dark-mode .badge,
body.dark-mode .tag,
body.dark-mode .chip {
    background: #252542 !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .badge-primary,
[data-theme="dark"] .badge.bg-primary,
body.dark-mode .badge-primary,
body.dark-mode .badge.bg-primary {
    background: #A78BFA !important;
    color: white !important;
}

[data-theme="dark"] .badge-success,
[data-theme="dark"] .badge.bg-success,
[data-theme="dark"] .status-active,
body.dark-mode .badge-success,
body.dark-mode .badge.bg-success,
body.dark-mode .status-active {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

[data-theme="dark"] .badge-warning,
[data-theme="dark"] .badge.bg-warning,
body.dark-mode .badge-warning,
body.dark-mode .badge.bg-warning {
    background: rgba(234, 179, 8, 0.2) !important;
    color: #eab308 !important;
}

[data-theme="dark"] .badge-danger,
[data-theme="dark"] .badge.bg-danger,
[data-theme="dark"] .status-inactive,
body.dark-mode .badge-danger,
body.dark-mode .badge.bg-danger,
body.dark-mode .status-inactive {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .badge-info,
[data-theme="dark"] .badge.bg-info,
body.dark-mode .badge-info,
body.dark-mode .badge.bg-info {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

/* =========================
   MODALS
   ========================= */

[data-theme="dark"] .modal-content,
body.dark-mode .modal-content {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .modal-header,
body.dark-mode .modal-header {
    background: #252542 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .modal-title,
body.dark-mode .modal-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .modal-body,
body.dark-mode .modal-body {
    background: #1a1a2e !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .modal-footer,
body.dark-mode .modal-footer {
    background: #252542 !important;
    border-top-color: #2d2d4a !important;
}

[data-theme="dark"] .btn-close,
body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* =========================
   DROPDOWN MENUS
   ========================= */

[data-theme="dark"] .dropdown-menu,
body.dark-mode .dropdown-menu {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .dropdown-item,
body.dark-mode .dropdown-item {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus,
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .dropdown-divider,
body.dark-mode .dropdown-divider {
    border-color: #2d2d4a !important;
}

/* =========================
   PAGINATION
   ========================= */

[data-theme="dark"] .pagination,
body.dark-mode .pagination {
    background: transparent !important;
}

[data-theme="dark"] .page-link,
body.dark-mode .page-link {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .page-link:hover,
body.dark-mode .page-link:hover {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .page-item.active .page-link,
body.dark-mode .page-item.active .page-link {
    background: #A78BFA !important;
    border-color: #A78BFA !important;
    color: white !important;
}

[data-theme="dark"] .page-item.disabled .page-link,
body.dark-mode .page-item.disabled .page-link {
    background: #16162a !important;
    color: #4b4b5b !important;
}

/* =========================
   RESULTS & INFO SECTIONS
   ========================= */

[data-theme="dark"] .results-info,
[data-theme="dark"] .results-count,
[data-theme="dark"] .filter-info,
body.dark-mode .results-info,
body.dark-mode .results-count,
body.dark-mode .filter-info {
    color: #a0a0b0 !important;
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* Clear Filters Button */
[data-theme="dark"] .btn-clear-filters,
[data-theme="dark"] .clear-filters-btn,
body.dark-mode .btn-clear-filters,
body.dark-mode .clear-filters-btn {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-color: transparent !important;
}

/* =========================
   ACTIVITIES & LISTS
   ========================= */

[data-theme="dark"] .activity-item,
[data-theme="dark"] .activity-card,
[data-theme="dark"] .activity-row,
[data-theme="dark"] .list-item,
body.dark-mode .activity-item,
body.dark-mode .activity-card,
body.dark-mode .activity-row,
body.dark-mode .list-item {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .activity-item:hover,
[data-theme="dark"] .activity-card:hover,
[data-theme="dark"] .list-item:hover,
body.dark-mode .activity-item:hover,
body.dark-mode .activity-card:hover,
body.dark-mode .list-item:hover {
    background: #252542 !important;
}

/* =========================
   EXPENSES PAGE
   ========================= */

[data-theme="dark"] .expense-card,
[data-theme="dark"] .expense-item,
[data-theme="dark"] .expense-row,
body.dark-mode .expense-card,
body.dark-mode .expense-item,
body.dark-mode .expense-row {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   INVOICES PAGE
   ========================= */

[data-theme="dark"] .invoice-card,
[data-theme="dark"] .invoice-item,
[data-theme="dark"] .invoice-row,
body.dark-mode .invoice-card,
body.dark-mode .invoice-item,
body.dark-mode .invoice-row {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   OFFICE TRACKING PAGE
   ========================= */

[data-theme="dark"] .tracking-card,
[data-theme="dark"] .tracking-item,
[data-theme="dark"] .location-card,
body.dark-mode .tracking-card,
body.dark-mode .tracking-item,
body.dark-mode .location-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   ANALYTICS PAGE
   ========================= */

[data-theme="dark"] .analytics-card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .report-card,
body.dark-mode .analytics-card,
body.dark-mode .chart-card,
body.dark-mode .report-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   SETTINGS PAGE
   ========================= */

[data-theme="dark"] .settings-card,
[data-theme="dark"] .settings-section,
[data-theme="dark"] .setting-item,
body.dark-mode .settings-card,
body.dark-mode .settings-section,
body.dark-mode .setting-item {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   RESOURCE PLANNING PAGE
   ========================= */

[data-theme="dark"] .resource-card,
[data-theme="dark"] .resource-item,
[data-theme="dark"] .planning-card,
body.dark-mode .resource-card,
body.dark-mode .resource-item,
body.dark-mode .planning-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   BILLING PAGE
   ========================= */

[data-theme="dark"] .billing-card,
[data-theme="dark"] .billing-item,
[data-theme="dark"] .period-card,
body.dark-mode .billing-card,
body.dark-mode .billing-item,
body.dark-mode .period-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   MANAGEMENT PAGES
   ========================= */

[data-theme="dark"] .management-card,
[data-theme="dark"] .management-item,
[data-theme="dark"] .crud-card,
body.dark-mode .management-card,
body.dark-mode .management-item,
body.dark-mode .crud-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* =========================
   ALERTS & NOTIFICATIONS
   ========================= */

[data-theme="dark"] .alert,
body.dark-mode .alert {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .alert-success,
body.dark-mode .alert-success {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}

[data-theme="dark"] .alert-warning,
body.dark-mode .alert-warning {
    background: rgba(234, 179, 8, 0.1) !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
    color: #eab308 !important;
}

[data-theme="dark"] .alert-danger,
body.dark-mode .alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .alert-info,
body.dark-mode .alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #3b82f6 !important;
}

/* =========================
   PROGRESS BARS
   ========================= */

[data-theme="dark"] .progress,
body.dark-mode .progress {
    background: #252542 !important;
}

[data-theme="dark"] .progress-bar,
[data-theme="dark"] .progress-fill,
body.dark-mode .progress-bar,
body.dark-mode .progress-fill {
    background: #A78BFA !important;
}

[data-theme="dark"] .detail-progress,
body.dark-mode .detail-progress {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .progress-text,
body.dark-mode .progress-text {
    color: #a0a0b0 !important;
}

/* =========================
   CHECKBOXES
   ========================= */

[data-theme="dark"] .form-check-input,
body.dark-mode .form-check-input {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .form-check-input:checked,
body.dark-mode .form-check-input:checked {
    background: #A78BFA !important;
    border-color: #A78BFA !important;
}

[data-theme="dark"] .form-check-label,
body.dark-mode .form-check-label {
    color: #a0a0b0 !important;
}

/* =========================
   AVATAR STYLES
   ========================= */

[data-theme="dark"] .avatar,
[data-theme="dark"] .avatar-placeholder,
[data-theme="dark"] .employee-avatar,
[data-theme="dark"] .profile-avatar-initials,
body.dark-mode .avatar,
body.dark-mode .avatar-placeholder,
body.dark-mode .employee-avatar,
body.dark-mode .profile-avatar-initials {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%) !important;
    color: white !important;
}

/* =========================
   ICON STYLES
   ========================= */

[data-theme="dark"] .icon-wrapper,
[data-theme="dark"] .stat-icon,
body.dark-mode .icon-wrapper,
body.dark-mode .stat-icon {
    background: #252542 !important;
}

/* =========================
   DIVIDERS & SEPARATORS
   ========================= */

[data-theme="dark"] hr,
[data-theme="dark"] .divider,
[data-theme="dark"] .separator,
body.dark-mode hr,
body.dark-mode .divider,
body.dark-mode .separator {
    border-color: #2d2d4a !important;
    opacity: 1 !important;
}

/* =========================
   TOOLTIPS
   ========================= */

[data-theme="dark"] .tooltip-inner,
body.dark-mode .tooltip-inner {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

/* =========================
   LOADING STATES
   ========================= */

[data-theme="dark"] .loading-spinner,
[data-theme="dark"] .loading-spinner-large,
[data-theme="dark"] .spinner,
body.dark-mode .loading-spinner,
body.dark-mode .loading-spinner-large,
body.dark-mode .spinner {
    border-color: #2d2d4a !important;
    border-top-color: #A78BFA !important;
}

[data-theme="dark"] .dashboard-loading,
body.dark-mode .dashboard-loading {
    background: transparent !important;
    color: #a0a0b0 !important;
}

/* =========================
   ORGANIZATION CHART
   ========================= */

[data-theme="dark"] .org-chart,
[data-theme="dark"] .org-node,
[data-theme="dark"] .org-card,
body.dark-mode .org-chart,
body.dark-mode .org-node,
body.dark-mode .org-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .org-node-content,
body.dark-mode .org-node-content {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* =========================
   QUICK STATS
   ========================= */

[data-theme="dark"] .quick-stat,
[data-theme="dark"] .quick-stat-card,
body.dark-mode .quick-stat,
body.dark-mode .quick-stat-card {
    background: #252542 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .quick-stat-value,
body.dark-mode .quick-stat-value {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .quick-stat-label,
body.dark-mode .quick-stat-label {
    color: #a0a0b0 !important;
}

/* =========================
   WELCOME SECTION
   ========================= */

[data-theme="dark"] .dashboard-welcome,
[data-theme="dark"] .welcome-header,
[data-theme="dark"] .welcome-section,
body.dark-mode .dashboard-welcome,
body.dark-mode .welcome-header,
body.dark-mode .welcome-section {
    background: transparent !important;
}

/* =========================
   ACTION BUTTONS IN CARDS
   ========================= */

[data-theme="dark"] .card-actions,
[data-theme="dark"] .action-buttons,
body.dark-mode .card-actions,
body.dark-mode .action-buttons {
    background: transparent !important;
}

[data-theme="dark"] .action-btn,
[data-theme="dark"] .icon-btn,
body.dark-mode .action-btn,
body.dark-mode .icon-btn {
    background: #252542 !important;
    border-color: #2d2d4a !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .action-btn:hover,
[data-theme="dark"] .icon-btn:hover,
body.dark-mode .action-btn:hover,
body.dark-mode .icon-btn:hover {
    background: #A78BFA !important;
    color: white !important;
}

/* =========================
   INFO SECTIONS IN CARDS
   ========================= */

[data-theme="dark"] .info-row,
[data-theme="dark"] .detail-row,
[data-theme="dark"] .info-item,
body.dark-mode .info-row,
body.dark-mode .detail-row,
body.dark-mode .info-item {
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .info-label,
[data-theme="dark"] .detail-label,
body.dark-mode .info-label,
body.dark-mode .detail-label {
    color: #6b6b7b !important;
}

[data-theme="dark"] .info-value,
[data-theme="dark"] .detail-value,
body.dark-mode .info-value,
body.dark-mode .detail-value {
    color: #f1f1f1 !important;
}

/* =========================
   GRID VIEWS
   ========================= */

[data-theme="dark"] .grid-view,
[data-theme="dark"] .card-grid,
[data-theme="dark"] .employee-grid,
body.dark-mode .grid-view,
body.dark-mode .card-grid,
body.dark-mode .employee-grid {
    background: transparent !important;
}

/* =========================
   HEADER ACTIONS
   ========================= */

[data-theme="dark"] .header-actions,
body.dark-mode .header-actions {
    background: transparent !important;
}

/* =========================
   SECTION HEADERS
   ========================= */

[data-theme="dark"] .section-header,
[data-theme="dark"] .section-title,
body.dark-mode .section-header,
body.dark-mode .section-title {
    color: #f1f1f1 !important;
    border-color: #2d2d4a !important;
}

/* =========================
   TEXT UTILITIES
   ========================= */

[data-theme="dark"] .text-dark,
body.dark-mode .text-dark {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .text-muted,
body.dark-mode .text-muted {
    color: #6b6b7b !important;
}

[data-theme="dark"] .text-secondary,
body.dark-mode .text-secondary {
    color: #a0a0b0 !important;
}

/* =========================
   BACKGROUND UTILITIES
   ========================= */

[data-theme="dark"] .bg-white,
body.dark-mode .bg-white {
    background: #1a1a2e !important;
}

[data-theme="dark"] .bg-light,
body.dark-mode .bg-light {
    background: #16162a !important;
}

/* =========================
   BORDER UTILITIES
   ========================= */

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end,
body.dark-mode .border,
body.dark-mode .border-top,
body.dark-mode .border-bottom,
body.dark-mode .border-start,
body.dark-mode .border-end {
    border-color: #2d2d4a !important;
}

/* =========================
   SCROLLBAR STYLING
   ========================= */

[data-theme="dark"] ::-webkit-scrollbar,
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track,
body.dark-mode ::-webkit-scrollbar-track {
    background: #0f0f23;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb,
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #2d2d4a;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #3d3d5a;
}

/* =========================
   CONTAINER BACKGROUNDS
   ========================= */

[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid,
body.dark-mode .container,
body.dark-mode .container-fluid {
    background: transparent !important;
}

/* =========================
   LINK STYLING
   ========================= */

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item),
body.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #A78BFA !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
body.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #c4b5fd !important;
}

/* =========================
   OFFICE TRACKING DARK MODE
   ========================= */

/* Office Tracking Calendar Grid */
[data-theme="dark"] .calendar-container,
body.dark-mode .calendar-container {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .calendar-grid,
body.dark-mode .calendar-grid {
    background: #1a1a2e !important;
}

/* Calendar Header */
[data-theme="dark"] .calendar-header-row,
body.dark-mode .calendar-header-row {
    background: #252542 !important;
}

[data-theme="dark"] .calendar-header-cell,
body.dark-mode .calendar-header-cell {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .calendar-date-header,
body.dark-mode .calendar-date-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .calendar-date-header .day-number,
[data-theme="dark"] .calendar-date-header .day-name,
body.dark-mode .calendar-date-header .day-number,
body.dark-mode .calendar-date-header .day-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .weekend-header,
body.dark-mode .weekend-header {
    background: #2d2d4a !important;
}

[data-theme="dark"] .today-header,
body.dark-mode .today-header {
    background: #3d3d6a !important;
}

/* Calendar Employee Column */
[data-theme="dark"] .calendar-employee-column,
[data-theme="dark"] .calendar-employee-cell,
body.dark-mode .calendar-employee-column,
body.dark-mode .calendar-employee-cell {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .employee-name,
body.dark-mode .employee-name {
    color: #f1f1f1 !important;
}

/* Calendar Data Row */
[data-theme="dark"] .calendar-data-row,
body.dark-mode .calendar-data-row {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .calendar-data-row:hover,
body.dark-mode .calendar-data-row:hover {
    background: #1a1a35 !important;
}

/* Calendar Cells */
[data-theme="dark"] .calendar-cell,
body.dark-mode .calendar-cell {
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .calendar-cell .cell-content,
body.dark-mode .calendar-cell .cell-content {
    color: #1a1a2e !important;
}

[data-theme="dark"] .calendar-cell .status-code,
body.dark-mode .calendar-cell .status-code {
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .calendar-cell.empty .cell-content,
[data-theme="dark"] .calendar-cell .empty-placeholder,
body.dark-mode .calendar-cell.empty .cell-content,
body.dark-mode .calendar-cell .empty-placeholder {
    color: #4b4b5b !important;
}

[data-theme="dark"] .weekend-cell,
body.dark-mode .weekend-cell {
    background: #252542 !important;
}

[data-theme="dark"] .today-cell,
body.dark-mode .today-cell {
    box-shadow: inset 0 0 0 2px #A78BFA !important;
}

/* Month Navigation */
[data-theme="dark"] .month-navigation,
body.dark-mode .month-navigation {
    background: linear-gradient(135deg, #3d3d6a 0%, #5d4d8a 100%) !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .current-month,
body.dark-mode .current-month {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-nav,
body.dark-mode .btn-nav {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f1f1f1 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .btn-nav:hover,
body.dark-mode .btn-nav:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Status Legend */
[data-theme="dark"] .status-legend,
body.dark-mode .status-legend {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .legend-item,
[data-theme="dark"] .legend-item span,
body.dark-mode .legend-item,
body.dark-mode .legend-item span {
    color: #f1f1f1 !important;
}

/* Module Buttons */
[data-theme="dark"] .btn-module,
body.dark-mode .btn-module {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-module:hover,
body.dark-mode .btn-module:hover {
    background: #3d3d5c !important;
}

[data-theme="dark"] .btn-module.btn-primary,
body.dark-mode .btn-module.btn-primary {
    background: #667eea !important;
    color: #fff !important;
}

[data-theme="dark"] .btn-module.btn-secondary,
body.dark-mode .btn-module.btn-secondary {
    background: #4b5563 !important;
    color: #fff !important;
}

[data-theme="dark"] .btn-module.btn-warning,
body.dark-mode .btn-module.btn-warning {
    background: #f59e0b !important;
    color: #1a1a2e !important;
}

/* Dashboard Welcome Section */
[data-theme="dark"] .dashboard-welcome,
body.dark-mode .dashboard-welcome {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .dashboard-title,
body.dark-mode .dashboard-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .dashboard-subtitle,
body.dark-mode .dashboard-subtitle {
    color: #a0a0b0 !important;
}

/* Back Button */
[data-theme="dark"] .btn-back-inline,
body.dark-mode .btn-back-inline {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-back-inline:hover,
body.dark-mode .btn-back-inline:hover {
    background: #3d3d5c !important;
}

/* =========================
   ACTIVITIES PAGE DARK MODE
   ========================= */

[data-theme="dark"] .activity-calendar,
[data-theme="dark"] .activities-container,
body.dark-mode .activity-calendar,
body.dark-mode .activities-container {
    background: #1a1a2e !important;
}

[data-theme="dark"] .activity-header,
body.dark-mode .activity-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .activity-row,
body.dark-mode .activity-row {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .activity-row:hover,
body.dark-mode .activity-row:hover {
    background: #1a1a35 !important;
}

[data-theme="dark"] .activity-cell,
body.dark-mode .activity-cell {
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

/* =========================
   APPLICATION CARDS DARK MODE
   ========================= */

[data-theme="dark"] .app-card,
[data-theme="dark"] .application-card,
[data-theme="dark"] .module-card,
body.dark-mode .app-card,
body.dark-mode .application-card,
body.dark-mode .module-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .app-card:hover,
[data-theme="dark"] .application-card:hover,
[data-theme="dark"] .module-card:hover,
body.dark-mode .app-card:hover,
body.dark-mode .application-card:hover,
body.dark-mode .module-card:hover {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .app-card-title,
[data-theme="dark"] .application-title,
[data-theme="dark"] .module-title,
body.dark-mode .app-card-title,
body.dark-mode .application-title,
body.dark-mode .module-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .app-card-description,
[data-theme="dark"] .application-description,
[data-theme="dark"] .module-description,
body.dark-mode .app-card-description,
body.dark-mode .application-description,
body.dark-mode .module-description {
    color: #a0a0b0 !important;
}

/* =========================
   GENERAL PAGE CONTENT DARK MODE
   ========================= */

[data-theme="dark"] .page-header,
body.dark-mode .page-header {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .page-title,
body.dark-mode .page-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .page-subtitle,
[data-theme="dark"] .page-description,
body.dark-mode .page-subtitle,
body.dark-mode .page-description {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .content-section,
[data-theme="dark"] .section-content,
body.dark-mode .content-section,
body.dark-mode .section-content {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .section-header,
[data-theme="dark"] .section-title,
body.dark-mode .section-header,
body.dark-mode .section-title {
    color: #f1f1f1 !important;
    border-color: #2d2d4a !important;
}

/* =========================
   TEXT AND TYPOGRAPHY DARK MODE
   ========================= */

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] p, [data-theme="dark"] span, [data-theme="dark"] label,
body.dark-mode p, body.dark-mode span, body.dark-mode label {
    color: #e0e0e0;
}

[data-theme="dark"] .text-muted,
body.dark-mode .text-muted {
    color: #6b6b7b !important;
}

[data-theme="dark"] .text-secondary,
body.dark-mode .text-secondary {
    color: #a0a0b0 !important;
}

/* =========================
   REPORTS AND DATA DISPLAYS DARK MODE
   ========================= */

[data-theme="dark"] .report-container,
[data-theme="dark"] .data-container,
body.dark-mode .report-container,
body.dark-mode .data-container {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .report-header,
[data-theme="dark"] .data-header,
body.dark-mode .report-header,
body.dark-mode .data-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .report-row,
[data-theme="dark"] .data-row,
body.dark-mode .report-row,
body.dark-mode .data-row {
    background: #16162a !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .report-row:hover,
[data-theme="dark"] .data-row:hover,
body.dark-mode .report-row:hover,
body.dark-mode .data-row:hover {
    background: #1a1a35 !important;
}

/* =========================
   NAVIGATION AND TABS DARK MODE
   ========================= */

[data-theme="dark"] .nav-tabs,
body.dark-mode .nav-tabs {
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .nav-tabs .nav-link,
body.dark-mode .nav-tabs .nav-link {
    color: #a0a0b0 !important;
    border-color: transparent !important;
}

[data-theme="dark"] .nav-tabs .nav-link:hover,
body.dark-mode .nav-tabs .nav-link:hover {
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .nav-tabs .nav-link.active,
body.dark-mode .nav-tabs .nav-link.active {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

/* =========================
   TICKETS AND RESOURCE PLANNING DARK MODE
   ========================= */

[data-theme="dark"] .ticket-card,
[data-theme="dark"] .resource-card,
body.dark-mode .ticket-card,
body.dark-mode .resource-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .ticket-header,
[data-theme="dark"] .resource-header,
body.dark-mode .ticket-header,
body.dark-mode .resource-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .ticket-body,
[data-theme="dark"] .resource-body,
body.dark-mode .ticket-body,
body.dark-mode .resource-body {
    color: #e0e0e0 !important;
}

/* Ensure all text in dark mode is readable */
[data-theme="dark"] *:not(.status-code):not(.legend-badge):not(.btn):not([class*="status-"]),
body.dark-mode *:not(.status-code):not(.legend-badge):not(.btn):not([class*="status-"]) {
    --bs-body-color: #f1f1f1;
}

/* =========================
   EXPENSE / GIDER PAGES DARK MODE
   ========================= */

/* Main Container */
[data-theme="dark"] .expense-form-container,
body.dark-mode .expense-form-container {
    background: #0f0f23 !important;
    color: #f1f1f1 !important;
}

/* Expense Form Header */
[data-theme="dark"] .expense-form-header,
body.dark-mode .expense-form-header {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-form-tabs,
body.dark-mode .expense-form-tabs {
    background: transparent !important;
}

[data-theme="dark"] .tab-button,
body.dark-mode .tab-button {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .tab-button.active,
body.dark-mode .tab-button.active {
    background: #8B5CF6 !important;
    color: white !important;
}

[data-theme="dark"] .receipt-upload-label,
body.dark-mode .receipt-upload-label {
    color: inherit !important;
}

/* Empty State */
[data-theme="dark"] .empty-state,
body.dark-mode .empty-state {
    background: #1a1a2e !important;
    border: 2px dashed #3d3d5c !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .empty-state h3,
body.dark-mode .empty-state h3 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .empty-state p,
body.dark-mode .empty-state p {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .empty-state i,
body.dark-mode .empty-state i {
    color: #6b6b7b !important;
}

/* Expense Header Section */
[data-theme="dark"] .expense-header-section,
body.dark-mode .expense-header-section {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-header-section h4,
[data-theme="dark"] .header-content h4,
body.dark-mode .expense-header-section h4,
body.dark-mode .header-content h4 {
    color: #f1f1f1 !important;
}

/* Field Labels and Inputs */
[data-theme="dark"] .field-label,
[data-theme="dark"] .select-field .field-label,
body.dark-mode .field-label,
body.dark-mode .select-field .field-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .field-input,
[data-theme="dark"] .select-field .field-input,
body.dark-mode .field-input,
body.dark-mode .select-field .field-input {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .field-input:focus,
body.dark-mode .field-input:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .field-input[readonly],
body.dark-mode .field-input[readonly] {
    background: #252542 !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .field-input option,
body.dark-mode .field-input option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* Checkbox styling */
[data-theme="dark"] .checkbox-label,
body.dark-mode .checkbox-label {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .checkmark,
body.dark-mode .checkmark {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .label-text,
body.dark-mode .label-text {
    color: #f1f1f1 !important;
}

/* Bulk Entry Container */
[data-theme="dark"] .bulk-entry-container,
body.dark-mode .bulk-entry-container {
    background: transparent !important;
}

/* Receipt Image Panel */
[data-theme="dark"] .receipt-image-panel,
body.dark-mode .receipt-image-panel {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .receipt-image-container h4,
body.dark-mode .receipt-image-container h4 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .receipt-main-image,
body.dark-mode .receipt-main-image {
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .image-info,
body.dark-mode .image-info {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .image-info p,
body.dark-mode .image-info p {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .image-info p strong,
body.dark-mode .image-info p strong {
    color: #f1f1f1 !important;
}

/* PDF Preview */
[data-theme="dark"] .pdf-preview,
body.dark-mode .pdf-preview {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .pdf-preview p,
body.dark-mode .pdf-preview p {
    color: #f1f1f1 !important;
}

/* Expense Entries Panel */
[data-theme="dark"] .expense-entries-panel,
body.dark-mode .expense-entries-panel {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .panel-header,
body.dark-mode .panel-header {
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .panel-header h4,
body.dark-mode .panel-header h4 {
    color: #f1f1f1 !important;
}

/* Expense Entry Row */
[data-theme="dark"] .expense-entry-row,
body.dark-mode .expense-entry-row {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .expense-entry-row.valid,
body.dark-mode .expense-entry-row.valid {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10B981 !important;
}

[data-theme="dark"] .expense-entry-row.invalid,
body.dark-mode .expense-entry-row.invalid {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: #F59E0B !important;
}

[data-theme="dark"] .entry-header,
body.dark-mode .entry-header {
    color: #f1f1f1 !important;
}

/* No Entries State */
[data-theme="dark"] .no-entries,
body.dark-mode .no-entries {
    color: #6b6b7b !important;
}

[data-theme="dark"] .no-entries i,
body.dark-mode .no-entries i {
    color: #4a4a5a !important;
}

[data-theme="dark"] .no-entries p,
body.dark-mode .no-entries p {
    color: #6b6b7b !important;
}

/* Entries Summary */
[data-theme="dark"] .entries-summary,
body.dark-mode .entries-summary {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .stat-item,
body.dark-mode .stat-item {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .stat-label,
body.dark-mode .stat-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .stat-value,
body.dark-mode .stat-value {
    color: #f1f1f1 !important;
}

/* Currency Breakdown */
[data-theme="dark"] .currency-breakdown,
body.dark-mode .currency-breakdown {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .breakdown-title,
body.dark-mode .breakdown-title {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .currency-total-item,
body.dark-mode .currency-total-item {
    background: #1a1a2e !important;
}

[data-theme="dark"] .currency-label,
body.dark-mode .currency-label {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .currency-value,
body.dark-mode .currency-value {
    color: #A78BFA !important;
}

[data-theme="dark"] .currency-vat,
body.dark-mode .currency-vat {
    color: #a0a0b0 !important;
}

/* VAT Breakdown Inline */
[data-theme="dark"] .vat-breakdown-inline,
body.dark-mode .vat-breakdown-inline {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .vat-label-small,
body.dark-mode .vat-label-small {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .vat-value-small,
body.dark-mode .vat-value-small {
    color: #A78BFA !important;
}

/* Image Modal */
[data-theme="dark"] .image-modal-content,
body.dark-mode .image-modal-content {
    background: #1a1a2e !important;
}

[data-theme="dark"] .image-modal-header,
body.dark-mode .image-modal-header {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .image-modal-header h4,
body.dark-mode .image-modal-header h4 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .image-modal-close,
body.dark-mode .image-modal-close {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .image-modal-body,
body.dark-mode .image-modal-body {
    background: #16162a !important;
}

/* Expense List Page */
[data-theme="dark"] .expense-list-container,
body.dark-mode .expense-list-container {
    background: #0f0f23 !important;
}

[data-theme="dark"] .expense-card,
body.dark-mode .expense-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-card-header,
body.dark-mode .expense-card-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .expense-card-body,
body.dark-mode .expense-card-body {
    color: #e0e0e0 !important;
}

/* Expense Table */
[data-theme="dark"] .expense-table,
body.dark-mode .expense-table {
    background: #1a1a2e !important;
}

[data-theme="dark"] .expense-table th,
body.dark-mode .expense-table th {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .expense-table td,
body.dark-mode .expense-table td {
    background: #16162a !important;
    color: #e0e0e0 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-table tr:hover td,
body.dark-mode .expense-table tr:hover td {
    background: #1a1a35 !important;
}

/* Expense Detail Page */
[data-theme="dark"] .expense-detail-container,
body.dark-mode .expense-detail-container {
    background: #0f0f23 !important;
}

[data-theme="dark"] .expense-detail-card,
body.dark-mode .expense-detail-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-detail-header,
body.dark-mode .expense-detail-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .expense-detail-body,
body.dark-mode .expense-detail-body {
    color: #e0e0e0 !important;
}

/* Expense Group Detail */
[data-theme="dark"] .expense-group-container,
body.dark-mode .expense-group-container {
    background: #0f0f23 !important;
}

[data-theme="dark"] .expense-group-card,
body.dark-mode .expense-group-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .expense-group-header,
body.dark-mode .expense-group-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

/* Action Buttons in Dark Mode */
[data-theme="dark"] .action-button,
body.dark-mode .action-button {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .action-button:hover,
body.dark-mode .action-button:hover {
    background: #3d3d5c !important;
}

[data-theme="dark"] .action-button.primary,
body.dark-mode .action-button.primary {
    background: #8B5CF6 !important;
    color: white !important;
    border-color: #8B5CF6 !important;
}

[data-theme="dark"] .action-button.primary:hover,
body.dark-mode .action-button.primary:hover {
    background: #7C3AED !important;
}

/* Alert Messages in Dark Mode */
[data-theme="dark"] .alert,
body.dark-mode .alert {
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .alert-danger,
body.dark-mode .alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #FCA5A5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .alert-success,
body.dark-mode .alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6EE7B7 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .alert-warning,
body.dark-mode .alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #FCD34D !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .alert-info,
body.dark-mode .alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93C5FD !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* =========================
   GENERAL PAGE CONTENT DARK MODE FIX
   ========================= */

/* Main content area */
[data-theme="dark"] .main-content,
[data-theme="dark"] .page-content,
[data-theme="dark"] .content-wrapper,
body.dark-mode .main-content,
body.dark-mode .page-content,
body.dark-mode .content-wrapper {
    background: #0f0f23 !important;
    color: #f1f1f1 !important;
}

/* Dashboard Layout Content Area */
[data-theme="dark"] .dashboard-main,
body.dark-mode .dashboard-main {
    background: #0f0f23 !important;
}

/* Generic page containers */
[data-theme="dark"] .page-container,
[data-theme="dark"] [class*="-container"]:not(.container):not(.container-fluid),
body.dark-mode .page-container,
body.dark-mode [class*="-container"]:not(.container):not(.container-fluid) {
    background: #0f0f23 !important;
    color: #f1f1f1 !important;
}

/* Forms in Dark Mode */
[data-theme="dark"] .form-control,
body.dark-mode .form-control {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .form-control:focus,
body.dark-mode .form-control:focus {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .form-control::placeholder,
body.dark-mode .form-control::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .form-select,
body.dark-mode .form-select {
    background-color: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .form-label,
body.dark-mode .form-label {
    color: #a0a0b0 !important;
}

/* Input Group */
[data-theme="dark"] .input-group-text,
body.dark-mode .input-group-text {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

/* =========================
   EMPLOYEES / ÇALIŞANLAR PAGE DARK MODE
   ========================= */

/* Employees Container */
[data-theme="dark"] .employees-container,
body.dark-mode .employees-container {
    background: #0f0f23 !important;
    color: #f1f1f1 !important;
}

/* Employees Header Bar */
[data-theme="dark"] .employees-header-bar,
body.dark-mode .employees-header-bar {
    background: transparent !important;
}

/* Dashboard Welcome Section */
[data-theme="dark"] .dashboard-welcome,
body.dark-mode .dashboard-welcome {
    background: linear-gradient(135deg, #1a1a2e 0%, #252542 100%) !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .dashboard-title,
body.dark-mode .dashboard-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .dashboard-subtitle,
body.dark-mode .dashboard-subtitle {
    color: #a0a0b0 !important;
}

/* Filter Section */
[data-theme="dark"] .filter-section,
[data-theme="dark"] .search-filter-container,
body.dark-mode .filter-section,
body.dark-mode .search-filter-container {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .search-input-wrapper input,
[data-theme="dark"] .search-box input,
body.dark-mode .search-input-wrapper input,
body.dark-mode .search-box input {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .search-input-wrapper input::placeholder,
[data-theme="dark"] .search-box input::placeholder,
body.dark-mode .search-input-wrapper input::placeholder,
body.dark-mode .search-box input::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .search-input-wrapper i,
[data-theme="dark"] .search-box i,
body.dark-mode .search-input-wrapper i,
body.dark-mode .search-box i {
    color: #6b6b7b !important;
}

/* Filter Tabs */
[data-theme="dark"] .filter-tabs,
body.dark-mode .filter-tabs {
    background: transparent !important;
}

[data-theme="dark"] .filter-tab,
[data-theme="dark"] .status-filter-btn,
body.dark-mode .filter-tab,
body.dark-mode .status-filter-btn {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .filter-tab:hover,
[data-theme="dark"] .status-filter-btn:hover,
body.dark-mode .filter-tab:hover,
body.dark-mode .status-filter-btn:hover {
    background: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .filter-tab.active,
[data-theme="dark"] .status-filter-btn.active,
body.dark-mode .filter-tab.active,
body.dark-mode .status-filter-btn.active {
    background: #8B5CF6 !important;
    color: white !important;
    border-color: #8B5CF6 !important;
}

/* Filters Button */
[data-theme="dark"] .btn-filters,
[data-theme="dark"] .filters-toggle,
body.dark-mode .btn-filters,
body.dark-mode .filters-toggle {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

/* View Toggle Buttons */
[data-theme="dark"] .view-toggle,
[data-theme="dark"] .view-mode-buttons,
body.dark-mode .view-toggle,
body.dark-mode .view-mode-buttons {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .view-toggle button,
[data-theme="dark"] .view-mode-btn,
body.dark-mode .view-toggle button,
body.dark-mode .view-mode-btn {
    background: transparent !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .view-toggle button.active,
[data-theme="dark"] .view-mode-btn.active,
body.dark-mode .view-toggle button.active,
body.dark-mode .view-mode-btn.active {
    background: #8B5CF6 !important;
    color: white !important;
}

/* Sort Select */
[data-theme="dark"] .sort-select,
[data-theme="dark"] .sort-dropdown,
body.dark-mode .sort-select,
body.dark-mode .sort-dropdown {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .sort-select option,
[data-theme="dark"] .sort-dropdown option,
body.dark-mode .sort-select option,
body.dark-mode .sort-dropdown option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* Results Count */
[data-theme="dark"] .results-count,
[data-theme="dark"] .employee-count,
body.dark-mode .results-count,
body.dark-mode .employee-count {
    background: #252542 !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .results-count strong,
[data-theme="dark"] .employee-count strong,
body.dark-mode .results-count strong,
body.dark-mode .employee-count strong {
    color: #f1f1f1 !important;
}

/* Employees List View */
[data-theme="dark"] .employees-list,
body.dark-mode .employees-list {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* List Header */
[data-theme="dark"] .list-header,
body.dark-mode .list-header {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .header-cell,
body.dark-mode .header-cell {
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

/* List Rows */
[data-theme="dark"] .list-row,
body.dark-mode .list-row {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .list-row:hover,
body.dark-mode .list-row:hover {
    background: #1a1a35 !important;
}

[data-theme="dark"] .list-row.selected,
body.dark-mode .list-row.selected {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: #8B5CF6 !important;
}

[data-theme="dark"] .list-row.inactive-row,
body.dark-mode .list-row.inactive-row {
    background: rgba(107, 107, 123, 0.1) !important;
}

/* List Cells */
[data-theme="dark"] .list-cell,
body.dark-mode .list-cell {
    color: #e0e0e0 !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .name-cell,
body.dark-mode .name-cell {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .name-cell .employee-name,
body.dark-mode .name-cell .employee-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .name-cell .employee-number,
body.dark-mode .name-cell .employee-number {
    color: #6b6b7b !important;
}

/* Employee Grid View */
[data-theme="dark"] .employees-grid,
body.dark-mode .employees-grid {
    background: transparent !important;
}

/* Employee Card */
[data-theme="dark"] .employee-card,
body.dark-mode .employee-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .employee-card:hover,
body.dark-mode .employee-card:hover {
    background: #1f1f38 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .employee-card.selected,
body.dark-mode .employee-card.selected {
    border-color: #8B5CF6 !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

[data-theme="dark"] .employee-card.inactive-employee,
body.dark-mode .employee-card.inactive-employee {
    opacity: 0.7;
}

/* Card Header */
[data-theme="dark"] .card-header,
body.dark-mode .card-header {
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .employee-name,
body.dark-mode .employee-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .employee-position,
body.dark-mode .employee-position {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .employee-department,
body.dark-mode .employee-department {
    color: #8B5CF6 !important;
}

/* Card Body */
[data-theme="dark"] .card-body,
body.dark-mode .card-body {
    background: transparent !important;
}

[data-theme="dark"] .employee-details .detail-item,
body.dark-mode .employee-details .detail-item {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .employee-details .detail-item i,
body.dark-mode .employee-details .detail-item i {
    color: #6b6b7b !important;
}

[data-theme="dark"] .employee-details .detail-item span,
body.dark-mode .employee-details .detail-item span {
    color: #e0e0e0 !important;
}

/* Card Footer */
[data-theme="dark"] .card-footer,
body.dark-mode .card-footer {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

/* Quick Action Buttons */
[data-theme="dark"] .btn-quick-action,
body.dark-mode .btn-quick-action {
    background: #252542 !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .btn-quick-action:hover,
body.dark-mode .btn-quick-action:hover {
    background: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-quick-action.danger:hover,
body.dark-mode .btn-quick-action.danger:hover {
    background: #EF4444 !important;
    color: white !important;
}

/* Contact Buttons */
[data-theme="dark"] .btn-contact,
body.dark-mode .btn-contact {
    background: #252542 !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .btn-contact:hover,
body.dark-mode .btn-contact:hover {
    background: #8B5CF6 !important;
    color: white !important;
}

/* Avatar */
[data-theme="dark"] .avatar-circle,
[data-theme="dark"] .avatar-small,
body.dark-mode .avatar-circle,
body.dark-mode .avatar-small {
    border-color: #3d3d5c !important;
}

/* Status Badges */
[data-theme="dark"] .badge,
body.dark-mode .badge {
    color: white !important;
}

[data-theme="dark"] .active-badge,
body.dark-mode .active-badge {
    background: #10B981 !important;
}

[data-theme="dark"] .inactive-badge,
body.dark-mode .inactive-badge {
    background: #6B7280 !important;
}

[data-theme="dark"] .new-hire,
body.dark-mode .new-hire {
    background: #F59E0B !important;
}

/* Modals */
[data-theme="dark"] .modal-overlay,
body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .confirmation-modal,
[data-theme="dark"] .success-modal,
[data-theme="dark"] .employee-modal,
body.dark-mode .confirmation-modal,
body.dark-mode .success-modal,
body.dark-mode .employee-modal {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .modal-header,
body.dark-mode .modal-header {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .modal-title,
body.dark-mode .modal-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .modal-body,
body.dark-mode .modal-body {
    background: #1a1a2e !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .modal-message,
body.dark-mode .modal-message {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .modal-details,
body.dark-mode .modal-details {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .detail-item,
body.dark-mode .modal-details .detail-item {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .modal-actions,
body.dark-mode .modal-actions {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

/* Employee Detail Wizard */
[data-theme="dark"] .employee-detail-wizard,
body.dark-mode .employee-detail-wizard {
    background: transparent !important;
}

[data-theme="dark"] .detail-progress,
body.dark-mode .detail-progress {
    background: #1a1a2e !important;
}

[data-theme="dark"] .progress-bar,
body.dark-mode .progress-bar {
    background: #252542 !important;
}

[data-theme="dark"] .progress-text,
body.dark-mode .progress-text {
    color: #a0a0b0 !important;
}

/* Wizard Tab Navigation */
[data-theme="dark"] .wizard-tab-navigation,
body.dark-mode .wizard-tab-navigation {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .wizard-tab-button,
body.dark-mode .wizard-tab-button {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .wizard-tab-button:hover,
body.dark-mode .wizard-tab-button:hover {
    background: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .wizard-tab-button.active,
body.dark-mode .wizard-tab-button.active {
    background: #8B5CF6 !important;
    color: white !important;
    border-color: #8B5CF6 !important;
}

[data-theme="dark"] .wizard-tab-title,
body.dark-mode .wizard-tab-title {
    color: inherit !important;
}

/* Wizard Profile Card */
[data-theme="dark"] .wizard-profile-card,
body.dark-mode .wizard-profile-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .profile-name,
body.dark-mode .profile-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .profile-position,
[data-theme="dark"] .profile-department,
body.dark-mode .profile-position,
body.dark-mode .profile-department {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .quick-stat,
body.dark-mode .quick-stat {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .quick-stat i,
body.dark-mode .quick-stat i {
    color: #8B5CF6 !important;
}

/* Wizard Tab Content */
[data-theme="dark"] .wizard-tab-content,
body.dark-mode .wizard-tab-content {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .wizard-form-section,
body.dark-mode .wizard-form-section {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .wizard-section-header,
body.dark-mode .wizard-section-header {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .wizard-section-header h2,
body.dark-mode .wizard-section-header h2 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .wizard-section-content,
body.dark-mode .wizard-section-content {
    background: transparent !important;
}

[data-theme="dark"] .wizard-info-item label,
body.dark-mode .wizard-info-item label {
    color: #6b6b7b !important;
}

[data-theme="dark"] .info-value-display,
body.dark-mode .info-value-display {
    color: #f1f1f1 !important;
}

/* Create/Edit Employee Modal Form */
[data-theme="dark"] .employee-form,
body.dark-mode .employee-form {
    background: #1a1a2e !important;
}

[data-theme="dark"] .form-group label,
body.dark-mode .form-group label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus,
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

/* Organization Chart */
[data-theme="dark"] .org-chart-container,
body.dark-mode .org-chart-container {
    background: #0f0f23 !important;
}

[data-theme="dark"] .org-node,
body.dark-mode .org-node {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .org-node:hover,
body.dark-mode .org-node:hover {
    background: #252542 !important;
    border-color: #8B5CF6 !important;
}

[data-theme="dark"] .org-node-name,
body.dark-mode .org-node-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .org-node-title,
body.dark-mode .org-node-title {
    color: #a0a0b0 !important;
}

/* Back Button */
[data-theme="dark"] .btn-back-blue,
body.dark-mode .btn-back-blue {
    background: #252542 !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-back-blue:hover,
body.dark-mode .btn-back-blue:hover {
    background: #3d3d5c !important;
}

/* Module Buttons */
[data-theme="dark"] .btn-module,
body.dark-mode .btn-module {
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-org-chart,
body.dark-mode .btn-org-chart {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .btn-org-chart:hover,
body.dark-mode .btn-org-chart:hover {
    background: #3d3d5c !important;
}

/* Clear Filters Button */
[data-theme="dark"] .btn-clear-filters,
body.dark-mode .btn-clear-filters {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #FCA5A5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .btn-clear-filters:hover,
body.dark-mode .btn-clear-filters:hover {
    background: #EF4444 !important;
    color: white !important;
}

/* =========================
   EMPLOYEES PAGE - ADDITIONAL DARK MODE FIXES
   ========================= */

/* Employee Controls Container */
[data-theme="dark"] .employee-controls,
body.dark-mode .employee-controls {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

/* Search Section */
[data-theme="dark"] .search-section,
body.dark-mode .search-section {
    background: transparent !important;
}

[data-theme="dark"] .search-input-group,
body.dark-mode .search-input-group {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .search-input-group input,
[data-theme="dark"] .search-input,
body.dark-mode .search-input-group input,
body.dark-mode .search-input {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .search-input-group input::placeholder,
[data-theme="dark"] .search-input::placeholder,
body.dark-mode .search-input-group input::placeholder,
body.dark-mode .search-input::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .search-icon,
body.dark-mode .search-icon {
    color: #6b6b7b !important;
}

[data-theme="dark"] .btn-clear-search,
body.dark-mode .btn-clear-search {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .btn-clear-search:hover,
body.dark-mode .btn-clear-search:hover {
    color: #f1f1f1 !important;
}

/* Quick Filters */
[data-theme="dark"] .quick-filters,
body.dark-mode .quick-filters {
    background: transparent !important;
}

[data-theme="dark"] .quick-filter-btn,
body.dark-mode .quick-filter-btn {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .quick-filter-btn:hover,
body.dark-mode .quick-filter-btn:hover {
    background: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .quick-filter-btn.active,
body.dark-mode .quick-filter-btn.active {
    background: #8B5CF6 !important;
    color: white !important;
    border-color: #8B5CF6 !important;
}

[data-theme="dark"] .info-btn,
body.dark-mode .info-btn {
    color: #a0a0b0 !important;
}

/* Advanced Filters */
[data-theme="dark"] .advanced-filters,
body.dark-mode .advanced-filters {
    background: #16162a !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .filter-row,
body.dark-mode .filter-row {
    background: transparent !important;
}

[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-date,
body.dark-mode .filter-select,
body.dark-mode .filter-date {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .filter-select option,
body.dark-mode .filter-select option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* View Controls */
[data-theme="dark"] .view-controls,
body.dark-mode .view-controls {
    background: transparent !important;
}

[data-theme="dark"] .btn-filter-toggle,
body.dark-mode .btn-filter-toggle {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-filter-toggle:hover,
body.dark-mode .btn-filter-toggle:hover {
    background: #3d3d5c !important;
    color: #f1f1f1 !important;
}

/* View Switcher */
[data-theme="dark"] .view-switcher,
body.dark-mode .view-switcher {
    background: #252542 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .view-btn,
body.dark-mode .view-btn {
    background: transparent !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .view-btn:hover,
body.dark-mode .view-btn:hover {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .view-btn.active,
body.dark-mode .view-btn.active {
    background: #8B5CF6 !important;
    color: white !important;
}

/* Sort Controls */
[data-theme="dark"] .sort-controls,
body.dark-mode .sort-controls {
    background: transparent !important;
}

[data-theme="dark"] .sort-controls select,
[data-theme="dark"] .sort-select,
body.dark-mode .sort-controls select,
body.dark-mode .sort-select {
    background: #16162a !important;
    color: #f1f1f1 !important;
    border-color: #3d3d5c !important;
}

/* Results Summary */
[data-theme="dark"] .results-summary,
body.dark-mode .results-summary {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
}

[data-theme="dark"] .results-info,
body.dark-mode .results-info {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .results-count,
body.dark-mode .results-count {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .results-filtered,
body.dark-mode .results-filtered {
    color: #6b6b7b !important;
}

[data-theme="dark"] .btn-clear-all,
body.dark-mode .btn-clear-all {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #FCA5A5 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .btn-clear-all:hover,
body.dark-mode .btn-clear-all:hover {
    background: #EF4444 !important;
    color: white !important;
}

/* Bulk Actions */
[data-theme="dark"] .bulk-actions,
body.dark-mode .bulk-actions {
    background: transparent !important;
}

[data-theme="dark"] .bulk-count,
body.dark-mode .bulk-count {
    color: #8B5CF6 !important;
}

[data-theme="dark"] .btn-bulk-action,
body.dark-mode .btn-bulk-action {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-bulk-action:hover,
body.dark-mode .btn-bulk-action:hover {
    background: #3d3d5c !important;
    color: #f1f1f1 !important;
}

/* Employee Cards in Grid View - Fix white background */
[data-theme="dark"] .employees-container,
[data-theme="dark"] .employees-container.grid,
[data-theme="dark"] .employees-container.list,
body.dark-mode .employees-container,
body.dark-mode .employees-container.grid,
body.dark-mode .employees-container.list {
    background: transparent !important;
}

[data-theme="dark"] .employee-card,
body.dark-mode .employee-card {
    background: #1a1a2e !important;
    border-color: #2d2d4a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .employee-card:hover,
body.dark-mode .employee-card:hover {
    background: #1f1f38 !important;
    border-color: #8B5CF6 !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .employee-card .card-header,
body.dark-mode .employee-card .card-header {
    background: transparent !important;
}

[data-theme="dark"] .employee-card .employee-info,
body.dark-mode .employee-card .employee-info {
    background: transparent !important;
}

[data-theme="dark"] .employee-card .employee-name,
body.dark-mode .employee-card .employee-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .employee-card .employee-position,
body.dark-mode .employee-card .employee-position {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .employee-card .employee-department,
body.dark-mode .employee-card .employee-department {
    color: #8B5CF6 !important;
}

[data-theme="dark"] .employee-card .card-body,
body.dark-mode .employee-card .card-body {
    background: transparent !important;
}

[data-theme="dark"] .employee-card .employee-details,
body.dark-mode .employee-card .employee-details {
    background: transparent !important;
}

[data-theme="dark"] .employee-card .detail-item,
body.dark-mode .employee-card .detail-item {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .employee-card .detail-item i,
body.dark-mode .employee-card .detail-item i {
    color: #6b6b7b !important;
}

[data-theme="dark"] .employee-card .detail-item span,
body.dark-mode .employee-card .detail-item span {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .employee-card .card-footer,
body.dark-mode .employee-card .card-footer {
    background: rgba(22, 22, 42, 0.5) !important;
    border-color: #2d2d4a !important;
}

/* Department Indicator */
[data-theme="dark"] .department-indicator,
body.dark-mode .department-indicator {
    opacity: 0.8;
}

/* Card Select Checkbox */
[data-theme="dark"] .card-select,
body.dark-mode .card-select {
    background: transparent !important;
}

[data-theme="dark"] .card-select input[type="checkbox"],
body.dark-mode .card-select input[type="checkbox"] {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

/* Employee Badges */
[data-theme="dark"] .employee-badges,
body.dark-mode .employee-badges {
    background: transparent !important;
}

[data-theme="dark"] .employee-badges .badge,
body.dark-mode .employee-badges .badge {
    font-weight: 600 !important;
}

/* Quick Actions in Card */
[data-theme="dark"] .quick-actions,
body.dark-mode .quick-actions {
    background: transparent !important;
}

[data-theme="dark"] .quick-actions .btn-quick-action,
body.dark-mode .quick-actions .btn-quick-action {
    background: #252542 !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .quick-actions .btn-quick-action:hover,
body.dark-mode .quick-actions .btn-quick-action:hover {
    background: #8B5CF6 !important;
    color: white !important;
}

[data-theme="dark"] .quick-actions .btn-quick-action.danger:hover,
body.dark-mode .quick-actions .btn-quick-action.danger:hover {
    background: #EF4444 !important;
}

/* Card Hover Indicator */
[data-theme="dark"] .card-hover-indicator,
body.dark-mode .card-hover-indicator {
    color: #8B5CF6 !important;
}

/* Contact Buttons in Card */
[data-theme="dark"] .employee-card .btn-contact,
body.dark-mode .employee-card .btn-contact {
    background: #252542 !important;
    color: #a0a0b0 !important;
}

[data-theme="dark"] .employee-card .btn-contact:hover,
body.dark-mode .employee-card .btn-contact:hover {
    background: #8B5CF6 !important;
    color: white !important;
}

/* Detail Icons in compact card */
[data-theme="dark"] .detail-icon,
body.dark-mode .detail-icon {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #A78BFA !important;
}

[data-theme="dark"] .detail-icon:hover,
body.dark-mode .detail-icon:hover {
    background: #8B5CF6 !important;
    color: white !important;
}

[data-theme="dark"] .hire-date-text,
body.dark-mode .hire-date-text {
    color: #a0a0b0 !important;
}

/* ===================================
   DARK MODE - MANAGEMENT PAGES
   (Y�netim Ekranlari)
   =================================== */

/* Maintenance Page Container */
[data-theme="dark"] .maintenance-page-container,
body.dark-mode .maintenance-page-container {
    background: #0f0f1a !important;
}

/* Activities Header */
[data-theme="dark"] .activities-header,
body.dark-mode .activities-header {
    background: #1a1a2e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .page-title-compact,
body.dark-mode .page-title-compact {
    color: #f1f1f1 !important;
}

/* Maintenance Sidebar */
[data-theme="dark"] .maintenance-sidebar,
body.dark-mode .maintenance-sidebar {
    background: #1a1a2e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .menu-item,
body.dark-mode .menu-item {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .menu-item:hover,
body.dark-mode .menu-item:hover {
    background: #252542 !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .menu-item.active,
body.dark-mode .menu-item.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%) !important;
    color: white !important;
}

/* Management Content Card */
[data-theme="dark"] .management-content-card,
body.dark-mode .management-content-card {
    background: #1a1a2e !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Content Header */
[data-theme="dark"] .content-header,
body.dark-mode .content-header {
    background: linear-gradient(135deg, #1e1e35 0%, #252542 100%) !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .content-title,
body.dark-mode .content-title {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .content-description,
body.dark-mode .content-description {
    color: #a0a0b0 !important;
}

/* Filter Input */
[data-theme="dark"] .filter-input,
body.dark-mode .filter-input {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .filter-input::placeholder,
body.dark-mode .filter-input::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .filter-input:focus,
body.dark-mode .filter-input:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .filter-group .search-icon,
body.dark-mode .filter-group .search-icon {
    color: #6b6b7b !important;
}

/* Filter Select */
[data-theme="dark"] .filter-select,
body.dark-mode .filter-select {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

/* Status Filter Group */
[data-theme="dark"] .status-filter-group,
body.dark-mode .status-filter-group {
    background: #16162a !important;
}

[data-theme="dark"] .status-filter-btn,
body.dark-mode .status-filter-btn {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .status-filter-btn:hover,
body.dark-mode .status-filter-btn:hover {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .status-filter-btn.active,
body.dark-mode .status-filter-btn.active {
    background: #252542 !important;
    color: #8B5CF6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Count Badges */
[data-theme="dark"] .count-badge.total,
body.dark-mode .count-badge.total {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%) !important;
    color: #A78BFA !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

[data-theme="dark"] .count-badge.active,
body.dark-mode .count-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%) !important;
    color: #34D399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Data Table - Dark Mode */
[data-theme="dark"] .data-table-container,
body.dark-mode .data-table-container {
    background: transparent !important;
}

[data-theme="dark"] .data-table thead th,
body.dark-mode .data-table thead th {
    background: linear-gradient(135deg, #1e1e35 0%, #252542 100%) !important;
    color: #a0a0b0 !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .data-table tbody tr:nth-child(even),
body.dark-mode .data-table tbody tr:nth-child(even) {
    background: #16162a !important;
}

[data-theme="dark"] .data-table tbody tr:nth-child(odd),
body.dark-mode .data-table tbody tr:nth-child(odd) {
    background: #1a1a2e !important;
}

[data-theme="dark"] .data-table tbody tr:hover,
body.dark-mode .data-table tbody tr:hover {
    background: linear-gradient(135deg, #252542 0%, #2d2d4a 100%) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15) !important;
}

[data-theme="dark"] .data-table tbody tr.inactive-row,
body.dark-mode .data-table tbody tr.inactive-row {
    opacity: 0.5 !important;
    background: #16162a !important;
}

[data-theme="dark"] .data-table tbody td,
body.dark-mode .data-table tbody td {
    color: #d0d0d8 !important;
    border-bottom-color: #2d2d4a !important;
}

/* Item Name Cell */
[data-theme="dark"] .item-name,
body.dark-mode .item-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .item-subtitle,
body.dark-mode .item-subtitle {
    color: #a0a0b0 !important;
}

/* Resource Type Badge */
[data-theme="dark"] .resource-type-badge,
body.dark-mode .resource-type-badge {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    color: #A78BFA !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

/* Customer Badge */
[data-theme="dark"] .customer-badge,
body.dark-mode .customer-badge {
    color: #a0a0b0 !important;
}

/* Status Badges */
[data-theme="dark"] .badge-success,
body.dark-mode .badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%) !important;
    color: #34D399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .badge-secondary,
body.dark-mode .badge-secondary {
    background: linear-gradient(135deg, #252542 0%, #2d2d4a 100%) !important;
    color: #a0a0b0 !important;
    border-color: #3d3d5c !important;
}

/* Application Type Badges for Category Management */
.app-badge-giderler {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.app-badge-harcamalar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
    color: #4F46E5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.app-badge-both {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .app-badge-giderler,
body.dark-mode .app-badge-giderler {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.2) 100%) !important;
    color: #F87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .app-badge-harcamalar,
body.dark-mode .app-badge-harcamalar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(129, 140, 248, 0.2) 100%) !important;
    color: #818CF8 !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .app-badge-both,
body.dark-mode .app-badge-both {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%) !important;
    color: #34D399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Creator Cell */
[data-theme="dark"] .creator-avatar,
body.dark-mode .creator-avatar {
    background: linear-gradient(135deg, #4a4a5a 0%, #3d3d5c 100%) !important;
}

[data-theme="dark"] .creator-name,
body.dark-mode .creator-name {
    color: #a0a0b0 !important;
}

/* Date Cell */
[data-theme="dark"] .date-primary,
body.dark-mode .date-primary {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .date-secondary,
body.dark-mode .date-secondary {
    color: #6b6b7b !important;
}

/* Budget Cell */
[data-theme="dark"] .budget-amount,
body.dark-mode .budget-amount {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .budget-currency,
body.dark-mode .budget-currency {
    color: #a0a0b0 !important;
}

/* Action Buttons */
[data-theme="dark"] .btn-icon,
body.dark-mode .btn-icon {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .btn-edit,
body.dark-mode .btn-edit {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.2) 100%) !important;
    color: #60A5FA !important;
}

[data-theme="dark"] .btn-edit:hover,
body.dark-mode .btn-edit:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(96, 165, 250, 0.3) 100%) !important;
}

[data-theme="dark"] .btn-deactivate,
body.dark-mode .btn-deactivate {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.2) 100%) !important;
    color: #F87171 !important;
}

[data-theme="dark"] .btn-deactivate:hover,
body.dark-mode .btn-deactivate:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(248, 113, 113, 0.3) 100%) !important;
}

[data-theme="dark"] .btn-activate,
body.dark-mode .btn-activate {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%) !important;
    color: #34D399 !important;
}

[data-theme="dark"] .btn-activate:hover,
body.dark-mode .btn-activate:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(52, 211, 153, 0.3) 100%) !important;
}

/* Empty State */
[data-theme="dark"] .empty-state,
body.dark-mode .empty-state {
    color: #6b6b7b !important;
}

[data-theme="dark"] .empty-state-icon,
body.dark-mode .empty-state-icon {
    background: linear-gradient(135deg, #252542 0%, #2d2d4a 100%) !important;
}

[data-theme="dark"] .empty-state-icon i,
body.dark-mode .empty-state-icon i {
    color: #4a4a5a !important;
}

[data-theme="dark"] .empty-state p,
body.dark-mode .empty-state p {
    color: #6b6b7b !important;
}

/* Loading Container */
[data-theme="dark"] .loading-container,
body.dark-mode .loading-container {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .loading-spinner-large,
body.dark-mode .loading-spinner-large {
    border-color: #3d3d5c !important;
    border-top-color: #8B5CF6 !important;
}

/* ===================================
   DARK MODE - MODAL/POPUP DIALOGS
   =================================== */

/* Modal Backdrop */
[data-theme="dark"] .modal-backdrop,
body.dark-mode .modal-backdrop {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

/* Modal Overlay */
[data-theme="dark"] .modal-overlay,
body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

/* Modal Content */
[data-theme="dark"] .modal-content,
body.dark-mode .modal-content {
    background: #1a1a2e !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .modal-content-large,
body.dark-mode .modal-content-large {
    background: #1a1a2e !important;
}

/* Modal Header */
[data-theme="dark"] .modal-header,
body.dark-mode .modal-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #764ba2 100%) !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .modal-header h3,
body.dark-mode .modal-header h3 {
    color: white !important;
}

[data-theme="dark"] .modal-close,
body.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

[data-theme="dark"] .modal-close:hover,
body.dark-mode .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Modal Body */
[data-theme="dark"] .modal-body,
body.dark-mode .modal-body {
    background: #1a1a2e !important;
}

/* Modal Footer */
[data-theme="dark"] .modal-footer,
body.dark-mode .modal-footer {
    background: #16162a !important;
    border-top-color: #3d3d5c !important;
}

/* Form Controls in Modal */
[data-theme="dark"] .form-label,
body.dark-mode .form-label {
    color: #d0d0d8 !important;
}

[data-theme="dark"] .form-control,
body.dark-mode .form-control {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .form-control::placeholder,
body.dark-mode .form-control::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .form-control:focus,
body.dark-mode .form-control:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .form-control option,
body.dark-mode .form-control option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* Color Picker */
[data-theme="dark"] .color-picker-wrapper,
body.dark-mode .color-picker-wrapper {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .color-value,
body.dark-mode .color-value {
    color: #a0a0b0 !important;
}

/* Modal Buttons */
[data-theme="dark"] .btn-secondary,
body.dark-mode .btn-secondary {
    background: #252542 !important;
    color: #d0d0d8 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .btn-secondary:hover:not(:disabled),
body.dark-mode .btn-secondary:hover:not(:disabled) {
    background: #2d2d4a !important;
    border-color: #4a4a5a !important;
}

/* Alerts in Modal */
[data-theme="dark"] .modal-body .alert-danger,
body.dark-mode .modal-body .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

[data-theme="dark"] .modal-body .alert-success,
body.dark-mode .modal-body .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

/* ===================================
   DARK MODE - MODAL TABS (Project Dialog)
   =================================== */

/* Tab Headers */
[data-theme="dark"] .modal-tabs,
body.dark-mode .modal-tabs {
    background: #16162a !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .modal-tab,
body.dark-mode .modal-tab {
    color: #a0a0b0 !important;
    background: transparent !important;
}

[data-theme="dark"] .modal-tab:hover,
body.dark-mode .modal-tab:hover {
    color: #f1f1f1 !important;
    background: #252542 !important;
}

[data-theme="dark"] .modal-tab.active,
body.dark-mode .modal-tab.active {
    color: #8B5CF6 !important;
    background: #1a1a2e !important;
    border-bottom-color: #8B5CF6 !important;
}

/* Tab Content */
[data-theme="dark"] .tab-content,
body.dark-mode .tab-content {
    background: #1a1a2e !important;
}

[data-theme="dark"] .tab-section-title,
body.dark-mode .tab-section-title {
    color: #f1f1f1 !important;
}

/* Resource List in Projects */
[data-theme="dark"] .resource-list,
body.dark-mode .resource-list {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .resource-item,
body.dark-mode .resource-item {
    background: #1a1a2e !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .resource-item:hover,
body.dark-mode .resource-item:hover {
    background: #252542 !important;
}

[data-theme="dark"] .resource-name,
body.dark-mode .resource-name {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .resource-rate,
body.dark-mode .resource-rate {
    color: #a0a0b0 !important;
}

/* Task List in Projects */
[data-theme="dark"] .task-list,
body.dark-mode .task-list {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .task-item,
body.dark-mode .task-item {
    background: #1a1a2e !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .task-item:hover,
body.dark-mode .task-item:hover {
    background: #252542 !important;
}

[data-theme="dark"] .task-name,
body.dark-mode .task-name {
    color: #f1f1f1 !important;
}

/* Contract Period List */
[data-theme="dark"] .contract-period-list,
body.dark-mode .contract-period-list {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .contract-period-item,
body.dark-mode .contract-period-item {
    background: #1a1a2e !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .contract-period-item:hover,
body.dark-mode .contract-period-item:hover {
    background: #252542 !important;
}

/* Form Row */
[data-theme="dark"] .form-row,
body.dark-mode .form-row {
    border-color: #3d3d5c !important;
}

/* Form Group Label */
[data-theme="dark"] .form-group label,
body.dark-mode .form-group label {
    color: #d0d0d8 !important;
}

/* Small Text/Help Text */
[data-theme="dark"] .form-text,
body.dark-mode .form-text,
[data-theme="dark"] .help-text,
body.dark-mode .help-text {
    color: #6b6b7b !important;
}

/* Checkbox and Radio */
[data-theme="dark"] .form-check-label,
body.dark-mode .form-check-label {
    color: #d0d0d8 !important;
}

/* Select2 and Custom Select Dropdowns */
[data-theme="dark"] select,
body.dark-mode select {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] select:focus,
body.dark-mode select:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] select option,
body.dark-mode select option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

/* ===================================
   DARK MODE - ADDITIONAL MODAL STYLES
   =================================== */

/* Modal Dialog Wrapper */
[data-theme="dark"] .modal-dialog,
body.dark-mode .modal-dialog {
    background: transparent !important;
}

/* Input Groups */
[data-theme="dark"] .input-group,
body.dark-mode .input-group {
    background: transparent !important;
}

[data-theme="dark"] .input-group-text,
body.dark-mode .input-group-text {
    background: #252542 !important;
    border-color: #3d3d5c !important;
    color: #a0a0b0 !important;
}

/* TextArea */
[data-theme="dark"] textarea.form-control,
body.dark-mode textarea.form-control {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

/* Info Box/Note Box */
[data-theme="dark"] .info-box,
body.dark-mode .info-box,
[data-theme="dark"] .note-box,
body.dark-mode .note-box {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #A78BFA !important;
}

/* Card in Modal */
[data-theme="dark"] .modal-body .card,
body.dark-mode .modal-body .card {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .modal-body .card-header,
body.dark-mode .modal-body .card-header {
    background: #252542 !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .modal-body .card-body,
body.dark-mode .modal-body .card-body {
    background: #16162a !important;
    color: #d0d0d8 !important;
}

/* Add Item Button */
[data-theme="dark"] .btn-add-item,
body.dark-mode .btn-add-item {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #A78BFA !important;
}

[data-theme="dark"] .btn-add-item:hover,
body.dark-mode .btn-add-item:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    border-color: #8B5CF6 !important;
}

/* Remove/Delete Button in Lists */
[data-theme="dark"] .btn-remove,
body.dark-mode .btn-remove,
[data-theme="dark"] .btn-delete-item,
body.dark-mode .btn-delete-item {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

[data-theme="dark"] .btn-remove:hover,
body.dark-mode .btn-remove:hover,
[data-theme="dark"] .btn-delete-item:hover,
body.dark-mode .btn-delete-item:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #EF4444 !important;
}

/* Date Range Cell */
[data-theme="dark"] .date-range-cell,
body.dark-mode .date-range-cell {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .date-range,
body.dark-mode .date-range {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .date-range i,
body.dark-mode .date-range i {
    color: #6b6b7b !important;
}

/* Alert in Page */
[data-theme="dark"] .alert,
body.dark-mode .alert {
    border-radius: 12px !important;
}

[data-theme="dark"] .alert-danger,
body.dark-mode .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

[data-theme="dark"] .alert-success,
body.dark-mode .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

[data-theme="dark"] .alert-warning,
body.dark-mode .alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #FBBF24 !important;
}

[data-theme="dark"] .alert-info,
body.dark-mode .alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.15) 100%) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60A5FA !important;
}

/* Table Row Selection */
[data-theme="dark"] .data-table tbody tr.selected,
body.dark-mode .data-table tbody tr.selected {
    background: rgba(139, 92, 246, 0.2) !important;
}

/* Text Muted */
[data-theme="dark"] .text-muted,
body.dark-mode .text-muted {
    color: #6b6b7b !important;
}

/* ===================================
   DARK MODE - NESTED MODALS (Alt Pop-up'lar)
   (Kaynak Ekle, G�rev Ekle, S�zlesme D�nemi vb.)
   =================================== */

/* Nested Modal Backdrop */
[data-theme="dark"] .nested-modal-backdrop,
body.dark-mode .nested-modal-backdrop {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px) !important;
}

/* Nested Modal Content */
[data-theme="dark"] .nested-modal-content,
body.dark-mode .nested-modal-content {
    background: #1a1a2e !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
}

/* Nested Modal Header */
[data-theme="dark"] .nested-modal-header,
body.dark-mode .nested-modal-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #764ba2 100%) !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .nested-modal-header h3,
body.dark-mode .nested-modal-header h3 {
    color: white !important;
}

[data-theme="dark"] .nested-modal-close,
body.dark-mode .nested-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

[data-theme="dark"] .nested-modal-close:hover,
body.dark-mode .nested-modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Nested Modal Body */
[data-theme="dark"] .nested-modal-body,
body.dark-mode .nested-modal-body {
    background: #1a1a2e !important;
}

[data-theme="dark"] .nested-modal-body .form-label,
body.dark-mode .nested-modal-body .form-label {
    color: #d0d0d8 !important;
}

[data-theme="dark"] .nested-modal-body .form-control,
body.dark-mode .nested-modal-body .form-control {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .nested-modal-body .form-control::placeholder,
body.dark-mode .nested-modal-body .form-control::placeholder {
    color: #6b6b7b !important;
}

[data-theme="dark"] .nested-modal-body .form-control:focus,
body.dark-mode .nested-modal-body .form-control:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .nested-modal-body select.form-control,
body.dark-mode .nested-modal-body select.form-control {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .nested-modal-body select.form-control option,
body.dark-mode .nested-modal-body select.form-control option {
    background: #1a1a2e !important;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .nested-modal-body input[type="date"],
body.dark-mode .nested-modal-body input[type="date"] {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
    color-scheme: dark !important;
}

[data-theme="dark"] .nested-modal-body input[type="number"],
body.dark-mode .nested-modal-body input[type="number"] {
    background: #16162a !important;
    border-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

/* Nested Modal Footer */
[data-theme="dark"] .nested-modal-footer,
body.dark-mode .nested-modal-footer {
    background: #16162a !important;
    border-top-color: #3d3d5c !important;
}

[data-theme="dark"] .nested-modal-footer .btn-secondary,
body.dark-mode .nested-modal-footer .btn-secondary {
    background: #252542 !important;
    color: #d0d0d8 !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .nested-modal-footer .btn-secondary:hover,
body.dark-mode .nested-modal-footer .btn-secondary:hover {
    background: #2d2d4a !important;
    border-color: #4a4a5a !important;
}

/* Checkbox in Nested Modal */
[data-theme="dark"] .nested-modal-body .checkbox-label,
body.dark-mode .nested-modal-body .checkbox-label {
    color: #d0d0d8 !important;
}

[data-theme="dark"] .nested-modal-body .checkbox-label span,
body.dark-mode .nested-modal-body .checkbox-label span {
    color: #d0d0d8 !important;
}

/* Form Text/Help Text in Nested Modal */
[data-theme="dark"] .nested-modal-body .form-text,
body.dark-mode .nested-modal-body .form-text {
    color: #6b6b7b !important;
}

[data-theme="dark"] .nested-modal-body .text-muted,
body.dark-mode .nested-modal-body .text-muted {
    color: #6b6b7b !important;
}

/* Alert in Nested Modal */
[data-theme="dark"] .nested-modal-body .alert-danger,
body.dark-mode .nested-modal-body .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #F87171 !important;
}

/* Billing Plan Info Box */
[data-theme="dark"] .billing-plan-info,
body.dark-mode .billing-plan-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .billing-plan-info p,
body.dark-mode .billing-plan-info p {
    color: #60A5FA !important;
}

/* ===================================
   DARK MODE - MODAL TABS (Proje Dialog)
   =================================== */

/* Tab Buttons in Modal */
[data-theme="dark"] .modal-tabs,
body.dark-mode .modal-tabs {
    background: #16162a !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .tab-button,
body.dark-mode .tab-button {
    color: #a0a0b0 !important;
    background: transparent !important;
}

[data-theme="dark"] .tab-button:hover:not(:disabled),
body.dark-mode .tab-button:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #A78BFA !important;
}

[data-theme="dark"] .tab-button.active,
body.dark-mode .tab-button.active {
    color: #8B5CF6 !important;
    background: #1a1a2e !important;
    border-bottom-color: #8B5CF6 !important;
}

[data-theme="dark"] .tab-button:disabled,
body.dark-mode .tab-button:disabled {
    opacity: 0.4 !important;
    color: #6b6b7b !important;
}

/* Section Header in Modal */
[data-theme="dark"] .section-header,
body.dark-mode .section-header {
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .section-header h4,
body.dark-mode .section-header h4 {
    color: #f1f1f1 !important;
}

/* Empty State Small */
[data-theme="dark"] .empty-state-small,
body.dark-mode .empty-state-small {
    color: #6b6b7b !important;
}

[data-theme="dark"] .empty-state-small i,
body.dark-mode .empty-state-small i {
    color: #4a4a5a !important;
}

/* Modal Body Table in Resources/Tasks */
[data-theme="dark"] .modal-body .data-table thead th,
body.dark-mode .modal-body .data-table thead th {
    background: linear-gradient(135deg, #1e1e35 0%, #252542 100%) !important;
    color: #a0a0b0 !important;
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .modal-body .data-table tbody tr:nth-child(even),
body.dark-mode .modal-body .data-table tbody tr:nth-child(even) {
    background: #16162a !important;
}

[data-theme="dark"] .modal-body .data-table tbody tr:nth-child(odd),
body.dark-mode .modal-body .data-table tbody tr:nth-child(odd) {
    background: #1a1a2e !important;
}

[data-theme="dark"] .modal-body .data-table tbody tr:hover,
body.dark-mode .modal-body .data-table tbody tr:hover {
    background: #252542 !important;
}

[data-theme="dark"] .modal-body .data-table tbody td,
body.dark-mode .modal-body .data-table tbody td {
    color: #d0d0d8 !important;
    border-bottom-color: #2d2d4a !important;
}

/* Billing Summary */
[data-theme="dark"] .billing-summary,
body.dark-mode .billing-summary {
    background: linear-gradient(135deg, #1e1e35 0%, #252542 100%) !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .billing-summary .summary-label,
body.dark-mode .billing-summary .summary-label {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .billing-summary .summary-value,
body.dark-mode .billing-summary .summary-value {
    color: #f1f1f1 !important;
}

/* Total Row */
[data-theme="dark"] .total-row,
body.dark-mode .total-row {
    background: linear-gradient(135deg, #252542 0%, #2d2d4a 100%) !important;
}

[data-theme="dark"] .total-row td,
body.dark-mode .total-row td {
    border-top-color: #3d3d5c !important;
    color: #f1f1f1 !important;
}

/* Invoiced Row */
[data-theme="dark"] .invoiced-row,
body.dark-mode .invoiced-row {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%) !important;
}

/* Form Section */
[data-theme="dark"] .form-section,
body.dark-mode .form-section {
    background: #16162a !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .form-section-title,
body.dark-mode .form-section-title {
    color: #d0d0d8 !important;
}

/* Contract Periods Section */
[data-theme="dark"] .contract-periods-section,
body.dark-mode .contract-periods-section {
    background: transparent !important;
}

/* Modal Content Large Specific */
[data-theme="dark"] .modal-content-large,
body.dark-mode .modal-content-large {
    background: #1a1a2e !important;
}

/* Input type date picker icon color fix */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) !important;
}

/* Select dropdown arrow */
[data-theme="dark"] .filter-select,
body.dark-mode .filter-select {
    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='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
}

/* Btn Info */
[data-theme="dark"] .btn-info,
body.dark-mode .btn-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.2) 100%) !important;
    color: #60A5FA !important;
}

[data-theme="dark"] .btn-info:hover,
body.dark-mode .btn-info:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(96, 165, 250, 0.3) 100%) !important;
}

/* ===================================
   DARK MODE - CUSTOMERS MANAGEMENT NESTED MODAL
   =================================== */

/* Customer Contact Modal Backdrop */
[data-theme="dark"] .modal-backdrop,
body.dark-mode .modal-backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(6px) !important;
}

/* Customer Contact Dialog Content */
[data-theme="dark"] .modal-dialog .modal-content,
body.dark-mode .modal-dialog .modal-content {
    background: #1a1a2e !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
}

/* Contact Card Dark Mode */
[data-theme="dark"] .contact-card,
body.dark-mode .contact-card {
    background: linear-gradient(135deg, #16162a 0%, #1a1a2e 100%) !important;
    border-color: #3d3d5c !important;
}

[data-theme="dark"] .contact-card:hover,
body.dark-mode .contact-card:hover {
    background: #252542 !important;
    border-color: #4a4a5a !important;
}

[data-theme="dark"] .contact-info h5,
body.dark-mode .contact-info h5 {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .contact-job-title,
body.dark-mode .contact-job-title {
    color: #A78BFA !important;
}

[data-theme="dark"] .contact-details span,
body.dark-mode .contact-details span {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .contact-details i,
body.dark-mode .contact-details i {
    color: #6b6b7b !important;
}

/* Tab Content Header Dark Mode */
[data-theme="dark"] .tab-content-header,
body.dark-mode .tab-content-header {
    border-bottom-color: #3d3d5c !important;
}

[data-theme="dark"] .tab-content-header h4,
body.dark-mode .tab-content-header h4 {
    color: #f1f1f1 !important;
}

/* Small Loading Container Dark Mode */
[data-theme="dark"] .loading-container-small,
body.dark-mode .loading-container-small {
    color: #a0a0b0 !important;
}

[data-theme="dark"] .loading-spinner-small,
body.dark-mode .loading-spinner-small {
    border-color: #3d3d5c !important;
    border-top-color: #8B5CF6 !important;
}

/* Dropdown List Dark Mode */
[data-theme="dark"] .dropdown-list,
body.dark-mode .dropdown-list {
    background: #1a1a2e !important;
    border-color: #3d3d5c !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .dropdown-item,
body.dark-mode .dropdown-item {
    color: #d0d0d8 !important;
    border-bottom-color: #2d2d4a !important;
}

[data-theme="dark"] .dropdown-item:hover,
body.dark-mode .dropdown-item:hover {
    background: #252542 !important;
    color: #A78BFA !important;
}

/* Form Hint Dark Mode */
[data-theme="dark"] .form-hint,
body.dark-mode .form-hint {
    color: #6b6b7b !important;
}

/* ===================================
   FATURA LİSTESİ TUTAR ALANI - DARK MODE
   =================================== */
[data-theme="dark"] .tutar-text,
body.dark-mode .tutar-text,
[data-theme="dark"] .tutar-column,
body.dark-mode .tutar-column,
[data-theme="dark"] .amount,
body.dark-mode .amount {
    color: #ffffff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

[data-theme="dark"] td.tutar-column,
body.dark-mode td.tutar-column {
    color: #ffffff !important;
}

[data-theme="dark"] .tutar-column .tutar-text,
body.dark-mode .tutar-column .tutar-text {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* ===================================
   FATURA RAPORLARI - DARK MODE
   =================================== */
[data-theme="dark"] .billing-reports-container,
body.dark-mode .billing-reports-container,
.dark .billing-reports-container {
    background: #0f172a !important;
}

[data-theme="dark"] .billing-reports-container .page-title,
body.dark-mode .billing-reports-container .page-title,
.dark .billing-reports-container .page-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .billing-reports-container .page-title i,
body.dark-mode .billing-reports-container .page-title i,
.dark .billing-reports-container .page-title i {
    color: #a5b4fc !important;
}

[data-theme="dark"] .billing-reports-container .page-description,
body.dark-mode .billing-reports-container .page-description,
.dark .billing-reports-container .page-description {
    color: #94a3b8 !important;
}

[data-theme="dark"] .billing-reports-container .filters-card,
body.dark-mode .billing-reports-container .filters-card,
.dark .billing-reports-container .filters-card {
    background: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .billing-reports-container .filter-group label,
body.dark-mode .billing-reports-container .filter-group label,
.dark .billing-reports-container .filter-group label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .billing-reports-container .form-select,
body.dark-mode .billing-reports-container .form-select,
.dark .billing-reports-container .form-select {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .billing-reports-container .summary-card,
body.dark-mode .billing-reports-container .summary-card,
.dark .billing-reports-container .summary-card {
    background: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .billing-reports-container .card-value,
body.dark-mode .billing-reports-container .card-value,
.dark .billing-reports-container .card-value {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .billing-reports-container .card-label,
body.dark-mode .billing-reports-container .card-label,
.dark .billing-reports-container .card-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .billing-reports-container .report-section,
body.dark-mode .billing-reports-container .report-section,
.dark .billing-reports-container .report-section {
    background: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .billing-reports-container .section-title,
body.dark-mode .billing-reports-container .section-title,
.dark .billing-reports-container .section-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .billing-reports-container .section-title i,
body.dark-mode .billing-reports-container .section-title i,
.dark .billing-reports-container .section-title i {
    color: #a5b4fc !important;
}

[data-theme="dark"] .billing-reports-container .bar-chart,
body.dark-mode .billing-reports-container .bar-chart,
.dark .billing-reports-container .bar-chart {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .billing-reports-container .month-label,
body.dark-mode .billing-reports-container .month-label,
.dark .billing-reports-container .month-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .billing-reports-container .month-amount,
body.dark-mode .billing-reports-container .month-amount,
.dark .billing-reports-container .month-amount {
    color: #64748b !important;
}

[data-theme="dark"] .billing-reports-container .legend-item,
body.dark-mode .billing-reports-container .legend-item,
.dark .billing-reports-container .legend-item {
    color: #94a3b8 !important;
}

[data-theme="dark"] .billing-reports-container .data-table th,
body.dark-mode .billing-reports-container .data-table th,
.dark .billing-reports-container .data-table th {
    background: #334155 !important;
    color: #94a3b8 !important;
    border-bottom-color: #475569 !important;
}

[data-theme="dark"] .billing-reports-container .data-table td,
body.dark-mode .billing-reports-container .data-table td,
.dark .billing-reports-container .data-table td {
    color: #e2e8f0 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .billing-reports-container .data-table .text-success,
body.dark-mode .billing-reports-container .data-table .text-success,
.dark .billing-reports-container .data-table .text-success {
    color: #34d399 !important;
}

[data-theme="dark"] .billing-reports-container .data-table .text-warning,
body.dark-mode .billing-reports-container .data-table .text-warning,
.dark .billing-reports-container .data-table .text-warning {
    color: #fbbf24 !important;
}

[data-theme="dark"] .billing-reports-container .total-row,
body.dark-mode .billing-reports-container .total-row,
.dark .billing-reports-container .total-row {
    background: #334155 !important;
}

[data-theme="dark"] .billing-reports-container .total-row td,
body.dark-mode .billing-reports-container .total-row td,
.dark .billing-reports-container .total-row td {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .billing-reports-container .progress-container,
body.dark-mode .billing-reports-container .progress-container,
.dark .billing-reports-container .progress-container {
    background: #475569 !important;
}

[data-theme="dark"] .billing-reports-container .progress-text,
body.dark-mode .billing-reports-container .progress-text,
.dark .billing-reports-container .progress-text {
    color: #ffffff !important;
}

[data-theme="dark"] .billing-reports-container .status-card,
body.dark-mode .billing-reports-container .status-card,
.dark .billing-reports-container .status-card {
    background: #334155 !important;
}

[data-theme="dark"] .billing-reports-container .status-count,
body.dark-mode .billing-reports-container .status-count,
.dark .billing-reports-container .status-count {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .billing-reports-container .status-label,
body.dark-mode .billing-reports-container .status-label,
.dark .billing-reports-container .status-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .billing-reports-container .status-amount,
body.dark-mode .billing-reports-container .status-amount,
.dark .billing-reports-container .status-amount {
    color: #64748b !important;
}

/* ===================================
   HARCAMALARIM MODULE STYLES
   Personal Expense Tracking
   =================================== */

/* Header Button */
.btn-add-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background-color: #6366F1;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-add-new:hover {
    background-color: #4F46E5;
}

.btn-add-new i {
    font-size: 14px;
}

/* Header Buttons Container */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Admin View Button */
.btn-admin-view {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-admin-view:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-admin-view i {
    font-size: 14px;
}

/* Summary Cards Grid */
.harcama-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.harcama-summary-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.harcama-summary-card.borc {
    border-left: 4px solid #DC2626;
}

.harcama-summary-card.alacak {
    border-left: 4px solid #059669;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.summary-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon.borc {
    color: #DC2626;
}

.summary-icon.alacak {
    color: #059669;
}

.summary-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
}

.summary-value.borc {
    color: #DC2626;
}

.summary-value.alacak {
    color: #059669;
}

/* List Card */
.harcama-list-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Filters */
.harcama-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    font-size: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    background: #FFFFFF;
    box-sizing: border-box;
}

.search-box input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select {
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    appearance: none;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.filter-select:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.record-count {
    font-size: 13px;
    color: #6B7280;
    margin-left: auto;
}

/* Table */
.harcama-table-container {
    overflow-x: auto;
}

.harcama-table {
    width: 100%;
    border-collapse: collapse;
}

.harcama-table thead {
    background: #F9FAFB;
}

.harcama-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.harcama-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background-color 0.15s;
}

.harcama-table tbody tr:hover {
    background: #F9FAFB;
}

.harcama-table td {
    padding: 16px 20px;
    font-size: 14px;
}

.harcama-table .date-cell {
    color: #6B7280;
}

.harcama-table .desc-cell {
    color: #111827;
    font-weight: 500;
}

.harcama-table .category-cell {
    color: #6B7280;
}

.harcama-table .tutar-cell {
    font-weight: 600;
}

.harcama-table .tutar-cell.borc {
    color: #DC2626;
}

.harcama-table .tutar-cell.alacak {
    color: #059669;
}

/* Tip Badge */
.tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tip-badge.borc {
    background: #FEF2F2;
    color: #DC2626;
}

.tip-badge.alacak {
    background: #ECFDF5;
    color: #059669;
}

/* Durum Badge */
.durum-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.durum-badge.beklemede {
    background: #FEF3C7;
    color: #92400E;
}

.durum-badge.onaylandi {
    background: #D1FAE5;
    color: #065F46;
}

.durum-badge.reddedildi {
    background: #FEE2E2;
    color: #991B1B;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    background: #F3F4F6;
    color: #111827;
}

.action-btn.delete:hover {
    background: #FEE2E2;
    color: #DC2626;
    border-color: #FECACA;
}

/* Toplu Atama Badge */
.toplu-atama-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

.toplu-atama-badge i {
    font-size: 0.65rem;
}

/* Action Disabled Hint */
.action-disabled-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.action-disabled-hint:hover {
    color: #6b7280;
}

/* Empty State */
.empty-state {
    padding: 60px 20px !important;
    text-align: center;
    color: #6B7280;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.harcama-modal {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.15s;
}

.modal-close:hover {
    background: #F3F4F6;
    color: #111827;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.form-group .required {
    color: #DC2626;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tip Selector */
.tip-selector {
    display: flex;
    gap: 12px;
}

.tip-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s;
}

.tip-option input {
    display: none;
}

.tip-option.selected.borc {
    border-color: #DC2626;
    background: #FEF2F2;
}

.tip-option.selected.alacak {
    border-color: #059669;
    background: #ECFDF5;
}

.tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.tip-option .tip-icon.borc {
    background: #FEE2E2;
    color: #DC2626;
}

.tip-option.selected .tip-icon.borc {
    background: #DC2626;
    color: #FFFFFF;
}

.tip-option .tip-icon.alacak {
    background: #D1FAE5;
    color: #059669;
}

.tip-option.selected .tip-icon.alacak {
    background: #059669;
    color: #FFFFFF;
}

.tip-text .tip-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.tip-text .tip-desc {
    font-size: 12px;
    color: #6B7280;
}

/* Tutar Input */
.tutar-input-wrapper {
    position: relative;
}

.tutar-input-wrapper .form-input {
    padding-right: 50px;
}

.currency-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-cancel:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.btn-save {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: #6366F1;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-save:hover {
    background: #4F46E5;
}

/* Responsive */
@media (max-width: 768px) {
    .harcama-summary-grid {
        grid-template-columns: 1fr;
    }

    .harcama-filters {
        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tip-selector {
        flex-direction: column;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .harcama-summary-card,
body.dark-mode .harcama-summary-card,
.dark .harcama-summary-card {
    background: #1e293b !important;
}

[data-theme="dark"] .harcama-list-card,
body.dark-mode .harcama-list-card,
.dark .harcama-list-card {
    background: #1e293b !important;
}

[data-theme="dark"] .harcama-filters,
body.dark-mode .harcama-filters,
.dark .harcama-filters {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .harcama-table thead,
body.dark-mode .harcama-table thead,
.dark .harcama-table thead {
    background: #0f172a !important;
}

[data-theme="dark"] .harcama-table th,
body.dark-mode .harcama-table th,
.dark .harcama-table th {
    color: #94a3b8 !important;
}

[data-theme="dark"] .harcama-table tbody tr,
body.dark-mode .harcama-table tbody tr,
.dark .harcama-table tbody tr {
    border-color: #334155 !important;
}

[data-theme="dark"] .harcama-table tbody tr:hover,
body.dark-mode .harcama-table tbody tr:hover,
.dark .harcama-table tbody tr:hover {
    background: #334155 !important;
}

[data-theme="dark"] .harcama-table .desc-cell,
body.dark-mode .harcama-table .desc-cell,
.dark .harcama-table .desc-cell {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .harcama-modal,
body.dark-mode .harcama-modal,
.dark .harcama-modal {
    background: #1e293b !important;
}

[data-theme="dark"] .modal-header,
body.dark-mode .modal-header,
.dark .modal-header {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .modal-header h2,
body.dark-mode .modal-header h2,
.dark .modal-header h2 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-input,
body.dark-mode .form-input,
.dark .form-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tip-option,
body.dark-mode .tip-option,
.dark .tip-option {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tip-text .tip-title,
body.dark-mode .tip-text .tip-title,
.dark .tip-text .tip-title {
    color: #f1f5f9 !important;
}

/* ===================================
   TOPLU HARCAMA ATAMA STYLES
   =================================== */

/* Process Button (Orange) */
.btn-process-orange {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-process-orange:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-process-orange i {
    font-size: 14px;
}

/* Filter Buttons Group */
.filter-buttons-group {
    display: flex;
    gap: 4px;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 8px;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover {
    color: #111827;
}

.filter-btn.active {
    background: #FFFFFF;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Atama Info Cell */
.atama-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.atama-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.atama-avatar.alacak {
    background: #ECFDF5;
    color: #059669;
}

.atama-avatar.borc {
    background: #FEF2F2;
    color: #DC2626;
}

.atama-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.atama-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.atama-category {
    font-size: 12px;
    color: #6B7280;
}

/* Count Badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #F3F4F6;
    color: #6B7280;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.count-badge i {
    font-size: 10px;
}

/* Day Badge */
.day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.aktif {
    background: #ECFDF5;
    color: #059669;
}

.status-badge.pasif {
    background: #F3F4F6;
    color: #6B7280;
}

/* Action Button Variants */
.action-btn.view:hover {
    background: #EEF2FF;
    color: #4F46E5;
    border-color: #C7D2FE;
}

.action-btn.deactivate:hover {
    background: #FEF3C7;
    color: #D97706;
    border-color: #FDE68A;
}

.action-btn.activate:hover {
    background: #ECFDF5;
    color: #059669;
    border-color: #A7F3D0;
}

.action-btn.edit:hover {
    background: #EEF2FF;
    color: #4F46E5;
    border-color: #C7D2FE;
}

/* Inactive Row */
.inactive-row {
    opacity: 0.6;
}

/* Employee Selection Box */
.employee-selection-box {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.employee-selection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.btn-link {
    padding: 0;
    border: none;
    background: none;
    color: #6366F1;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

.selection-divider {
    color: #D1D5DB;
}

.selection-count {
    margin-left: auto;
    font-size: 12px;
    color: #6B7280;
    background: #E5E7EB;
    padding: 2px 8px;
    border-radius: 9999px;
}

.employee-checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.employee-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.employee-checkbox-item:hover {
    background: #F9FAFB;
}

.employee-checkbox-item.selected {
    background: #EEF2FF;
    border-color: #C7D2FE;
}

.employee-checkbox-item input {
    display: none;
}

.employee-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.employee-name {
    font-size: 13px;
    color: #374151;
}

/* Atama Info Card View */
.atama-info-card-view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 16px;
}

.atama-info-card-view strong {
    font-size: 14px;
    color: #111827;
}

/* Employees List View */
.employees-list-view {
    max-height: 300px;
    overflow-y: auto;
}

.employee-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.employee-list-item:last-child {
    border-bottom: none;
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emp-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.emp-email {
    font-size: 12px;
    color: #6B7280;
}

.empty-message {
    text-align: center;
    color: #6B7280;
    padding: 24px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6B7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #6366F1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
}

/* Form Hint */
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9CA3AF;
}

/* Summary Icon with Gradient */
.summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
}

/* Dark Mode for Toplu Harcama Atama */
[data-theme="dark"] .filter-buttons-group,
body.dark-mode .filter-buttons-group,
.dark .filter-buttons-group {
    background: #1e293b !important;
}

[data-theme="dark"] .filter-btn,
body.dark-mode .filter-btn,
.dark .filter-btn {
    color: #94a3b8 !important;
}

[data-theme="dark"] .filter-btn.active,
body.dark-mode .filter-btn.active,
.dark .filter-btn.active {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .atama-name,
body.dark-mode .atama-name,
.dark .atama-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .employee-selection-box,
body.dark-mode .employee-selection-box,
.dark .employee-selection-box {
    border-color: #334155 !important;
}

[data-theme="dark"] .employee-selection-header,
body.dark-mode .employee-selection-header,
.dark .employee-selection-header {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .employee-checkbox-item:hover,
body.dark-mode .employee-checkbox-item:hover,
.dark .employee-checkbox-item:hover {
    background: #1e293b !important;
}

[data-theme="dark"] .employee-checkbox-item.selected,
body.dark-mode .employee-checkbox-item.selected,
.dark .employee-checkbox-item.selected {
    background: #312e81 !important;
    border-color: #4f46e5 !important;
}

[data-theme="dark"] .employee-name,
body.dark-mode .employee-name,
.dark .employee-name {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .atama-info-card-view,
body.dark-mode .atama-info-card-view,
.dark .atama-info-card-view {
    background: #1e293b !important;
}

[data-theme="dark"] .atama-info-card-view strong,
body.dark-mode .atama-info-card-view strong,
.dark .atama-info-card-view strong {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .employee-list-item,
body.dark-mode .employee-list-item,
.dark .employee-list-item {
    border-color: #334155 !important;
}

[data-theme="dark"] .emp-name,
body.dark-mode .emp-name,
.dark .emp-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .count-badge,
body.dark-mode .count-badge,
.dark .count-badge {
    background: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .day-badge,
body.dark-mode .day-badge,
.dark .day-badge {
    background: #312e81 !important;
    color: #a5b4fc !important;
}

[data-theme="dark"] .status-badge.aktif,
body.dark-mode .status-badge.aktif,
.dark .status-badge.aktif {
    background: #064e3b !important;
    color: #34d399 !important;
}

[data-theme="dark"] .status-badge.pasif,
body.dark-mode .status-badge.pasif,
.dark .status-badge.pasif {
    background: #374151 !important;
    color: #9ca3af !important;
}

/* ============================================
   Harcamalarim Home - Compact Stats Cards
   ============================================ */
.harcama-home-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.harcama-home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 24px;
    min-width: 240px;
    flex: 1;
    max-width: 280px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.harcama-home-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.harcama-home-stat.borc {
    border-left: 4px solid #ef4444;
}

.harcama-home-stat.alacak {
    border-left: 4px solid #10b981;
}

.harcama-home-stat.pozitif {
    border-left: 4px solid #3b82f6;
}

.harcama-home-stat.negatif {
    border-left: 4px solid #f59e0b;
}

.harcama-home-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.harcama-home-stat-icon.borc {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.harcama-home-stat-icon.alacak {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.harcama-home-stat-icon.pozitif {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.harcama-home-stat-icon.negatif {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.harcama-home-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.harcama-home-stat-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.harcama-home-stat-value.borc {
    color: #dc2626;
}

.harcama-home-stat-value.alacak {
    color: #059669;
}

.harcama-home-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 768px) {
    .harcama-home-stats {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
    }

    .harcama-home-stat {
        max-width: 100%;
        min-width: unset;
    }
}

/* Dark mode */
[data-theme="dark"] .harcama-home-stat,
body.dark-mode .harcama-home-stat,
.dark .harcama-home-stat {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .harcama-home-stat.borc,
body.dark-mode .harcama-home-stat.borc {
    border-left-color: #ef4444 !important;
}

[data-theme="dark"] .harcama-home-stat.alacak,
body.dark-mode .harcama-home-stat.alacak {
    border-left-color: #10b981 !important;
}

[data-theme="dark"] .harcama-home-stat.pozitif,
body.dark-mode .harcama-home-stat.pozitif {
    border-left-color: #3b82f6 !important;
}

[data-theme="dark"] .harcama-home-stat.negatif,
body.dark-mode .harcama-home-stat.negatif {
    border-left-color: #f59e0b !important;
}

[data-theme="dark"] .harcama-home-stat-label,
body.dark-mode .harcama-home-stat-label {
    color: #94a3b8 !important;
}
