:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    
    --success: #2ecc71;
    --warning: #f39c12;
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 90px;
    --header-height: 50px;

    
    /* Neutral Colors */
    --dark: #1e293b;
    --dark-2: #334155;
    --light: #f8fafc;
    --light-2: #e2e8f0;
    --white: #ffffff;
    --black: #0f172a;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-sidebar: #1e293b;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Border & Shadow */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Modern Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 25px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .menu-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-right: 15px;
    display: none;
}

.header .menu-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
}

.header .brand {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.header .brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.header .brand-logo i {
    color: white;
    font-size: 1.2rem;
}

.header .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header .brand-text span {
    color: var(--secondary);
}

.header .search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header .search-box {
    position: relative;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.header .search-box:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    border-color: var(--secondary);
}

.header .search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    padding: 0 10px;
    font-size: 0.95rem;
}

.header .search-box .search-icon {
    color: #6c757d;
    transition: color 0.3s ease;
}

.header .search-box:focus-within .search-icon {
    color: var(--secondary);
}

.header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.header .action-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.header .action-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
}

.header .action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .user-dropdown .dropdown-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--primary);
}

.header .user-dropdown .dropdown-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

.header .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.header .user-info {
    text-align: left;
    margin-right: 5px;
}

.header .user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.header .user-role {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Modern Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, #034180 100%);
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    padding: calc(var(--header-height) + 20px) 0 20px 0;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 0 25px 20px;
    border-bottom: 1px solid rgba(232, 241, 239, 0.925);
    margin-bottom: 20px;
}

.sidebar .menu-divider {
            height: 1px;
            background-color: rgba(232, 241, 239, 0.925);
            margin: 20px 1px;
        }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}


.sidebar-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: white;
    white-space: wrap;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.sidebar.collapsed .sidebar-subtitle {
    display: none;
}

.sidebar-nav {
    padding: 0 15px;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}


.menu-item {
    color: gray;
    padding: 5px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.sidebar-nav .menu-item:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.sidebar-nav .nav-link.active {
    color: var(--accent);
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 4px 15px rgba(130, 219, 52, 0.2);
}


.sidebar-nav .menu-item.active {
    color: var(--accent);
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}


.sidebar-nav .nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-nav .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sidebar-nav .nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.sidebar-nav .nav-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-nav .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar.collapsed .nav-badge {
    display: none;
}


.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-user {
    justify-content: center;
    padding: 10px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar.collapsed .sidebar-user-info {
    display: none;
}

.sidebar-user-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-toggle:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Main Content Adjustments */
.main-content {
    margin-left: var(--sidebar-width);
    padding: calc(var(--header-height) + 20px) 30px 30px;
    transition: all 0.3s ease;
    min-height: 100vh;
    background: #f8f9fa;
}

.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
    display: none;
    backdrop-filter: blur(2px);
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .header .menu-toggle{
        display: block;

    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .header .brand-text {
        font-size: 1.3rem;
    }
    
    .header .search-container {
        max-width: 300px;
    }

    .header .user-avatar {
    width: 30px;
    height: 30px;
    font-size: .8rem;
}
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
      .header .menu-toggle{
        display: block;

    }
    .header {
        padding: 0 15px;
    }
    
    .header .brand {
        margin-right: 15px;
    }

     .header .brand-logo {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .header .brand-text {
        font-size: 1rem;
    }
    
    .header .search-container {
        display: none;
    }
    
    .header .header-actions {
        gap: 8px;
    }
    
    .header .user-dropdown .dropdown-toggle {
        padding: 6px 10px;
    }
    
    .header .user-info {
        display: none;
    }
        .header .user-avatar {
    width: 25px;
    height: 25px;
    font-size: .8rem;
}
    
    .main-content {
        padding: calc(var(--header-height) + 15px) 15px 15px;
    }
    
    .sidebar {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
    }
    
    .header .menu-toggle {
        margin-right: 10px;
        padding: 8px;
        display: block;
    }
    
    .header .brand-logo {
        width: 25px;
        height: 25px;
        margin-right: 6px;
    }
    
    .header .brand-text {
        font-size: 0.8rem;
    }
    
    .header .action-btn {
        width: 35px;
        height: 35px;
    }
    
    .sidebar {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .header {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .header.scrolled {
        background: rgba(45, 55, 72, 0.95);
    }
    
    .header .search-box {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .header .search-box:focus-within {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .header .search-box input {
        color: white;
    }
    
    .header .user-name {
        color: white;
    }
}

/* Animation classes */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar {
    animation: slideInLeft 0.3s ease-out;
}

.header {
    animation: slideInRight 0.3s ease-out;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.border-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}


/* Payroll Summary Card Styles */
.card.border-left-primary { border-left: 0.25rem solid #4e73df !important; }
.card.border-left-success { border-left: 0.25rem solid #1cc88a !important; }
.card.border-left-info { border-left: 0.25rem solid #36b9cc !important; }
.card.border-left-warning { border-left: 0.25rem solid #f6c23e !important; }
.card.border-left-secondary { border-left: 0.25rem solid #858796 !important; }

.payroll-summary-card {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
}

.payroll-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.payroll-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.payroll-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart container improvements */
.chart-container {
    position: relative;
    margin: auto;
}

/* Summary card animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.payroll-card-updated {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payroll-stat-number {
        font-size: 1.25rem;
    }
    
    .payroll-summary-card .col-auto {
        display: none;
    }
}

/* Status indicator dots */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-paid { background-color: #1cc88a; }
.status-processed { background-color: #f6c23e; }
.status-draft { background-color: #858796; }

/* Progress bars for budget utilization */
.budget-progress {
    height: 6px;
    margin-top: 5px;
}

/* Hover effects for quick actions */
.quick-action-btn {
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Loading spinner for refresh */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles for payroll summary */
@media print {
    .payroll-summary-card {
        break-inside: avoid;
        border: 1px solid #000 !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* Payroll Summary Cards Styles */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Chart Styles */
.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

@media (min-width: 768px) {
    .chart-area {
        height: 20rem;
    }
}

.chart-pie {
    position: relative;
    height: 15rem;
    width: 100%;
}

@media (min-width: 768px) {
    .chart-pie {
        height: 15rem;
    }
}

/* Card Shadow Effects */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
    transform: translateY(-2px);
}

/* Progress Bar Styles */
.progress {
    border-radius: 10px;
    background-color: #eaecf4;
}

.progress-bar {
    border-radius: 10px;
}

/* Badge Styles for Status */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Table Styles for Project Distribution */
.table-borderless td, .table-borderless th {
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
    
    .text-xs {
        font-size: 0.65rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Hover Effects for Interactive Elements */
.view-details:hover, .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

/* Print Styles for Reports */
@media print {
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none !important;
    }
    
    .chart-area, .chart-pie {
        height: 300px !important;
    }
}

/* Add to existing style.css */

/* User avatar in header */
.header .dropdown-toggle img {
    border: 2px solid var(--secondary);
}

/* User management table styles */
.table td .badge {
    font-size: 0.75rem;
}

/* Modal enhancements */
.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Role badges */
.badge.bg-danger { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; }
.badge.bg-primary { background: linear-gradient(135deg, #3498db, #2980b9) !important; }
.badge.bg-success { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; }
.badge.bg-secondary { background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important; }


/* Report Export Styles */
.export-section {
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
}

.export-section .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.export-filters {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.export-actions {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.quick-export-btn {
    transition: all 0.3s ease;
}

.quick-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Filter form styles */
.filter-group {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
}

.export-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.export-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.export-stats h6 {
    margin-bottom: 10px;
    opacity: 0.9;
}

.export-stats .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.export-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}


/* Employees Section Styles */
.employee-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.salary-preview {
    background-color: #e8f5e8;
    border-left: 4px solid #28a745;
}

.payroll-summary-card {
    transition: transform 0.2s;
}

.payroll-summary-card:hover {
    transform: translateY(-2px);
}

.employee-checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* DataTables customization */
.datatable-table {
    font-size: 0.875rem;
}

.datatable-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Payroll breakdown styles */
.earnings-section {
    background-color: #f8fff8;
    border-radius: 0.5rem;
    padding: 1rem;
}

.deductions-section {
    background-color: #fff8f8;
    border-radius: 0.5rem;
    padding: 1rem;
}

.net-salary-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

/* Modal enhancements */
.modal-lg {
    max-width: 900px;
}

.employee-details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: -1rem -1rem 2rem -1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .employee-details-header {
        padding: 1rem;
        margin: -1rem -1rem 1rem -1rem;
    }
    
    .net-salary-display {
        padding: 1rem;
    }
}

/* Print styles for payroll */
@media print {
    .sidebar, .header, .btn, .modal-footer {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Inventory Styles */
.inventory-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.inventory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.stat-card.bg-primary { background: linear-gradient(135deg, #3498db, #2980b9) !important; }
.stat-card.bg-success { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; }
.stat-card.bg-info { background: linear-gradient(135deg, #17a2b8, #138496) !important; }
.stat-card.bg-warning { background: linear-gradient(135deg, #ffc107, #e0a800) !important; }
.stat-card.bg-danger { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; }
.stat-card.bg-secondary { background: linear-gradient(135deg, #6c757d, #5a6268) !important; }

.inventory-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.inventory-card .card-text {
    font-size: 0.9rem;
}

.inventory-card .badge {
    font-size: 0.75rem;
}

/* Inventory Tabs */
.nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    padding: 12px 20px;
}

.nav-tabs .nav-link.active {
    color: #3498db;
    background: none;
    border-bottom: 3px solid #3498db;
}

.nav-tabs .nav-link:hover {
    color: #3498db;
    border: none;
    border-bottom: 3px solid #dee2e6;
}

/* Low Stock Alert */
.card.border-warning {
    border-width: 2px !important;
}

/* Modal backdrop fixes */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Ensure proper modal stacking */
.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Fix for multiple backdrops */
.modal-backdrop ~ .modal-backdrop {
    display: none;
}

/* Ensure body doesn't get stuck with modal styles */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}


/* Mobile Install Button Styles */
.mobile-install-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    animation: pulse 2s infinite;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.install-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.install-banner-text {
    flex: 1;
}

.install-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
}

.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1050;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .mobile-install-btn {
        bottom: 70px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .install-banner {
        padding: 12px 15px;
    }
    
    .install-banner-text strong {
        font-size: 0.9rem;
    }
    
    .install-banner-text small {
        font-size: 0.8rem;
    }
}

/* Standalone mode adjustments */
@media all and (display-mode: standalone) {
    .main-content {
        padding-top: 10px;
    }
    
    .mobile-nav-tabs {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
/* Logo Image Styles - FIXED */
.logo-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Fallback logo styles */
.logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.logo-fallback i {
    font-size: 2rem;
}

/* Different logo shape options */
.logo-circle .logo-image,
.logo-circle .logo-fallback {
    border-radius: 50%;
}

.logo-square .logo-image,
.logo-square .logo-fallback {
    border-radius: 12px;
}

.logo-rounded .logo-image,
.logo-rounded .logo-fallback {
    border-radius: 20px;
}

/* Logo size variations */
.logo-small {
    width: 60px;
    height: 60px;
}

.logo-medium {
    width: 80px;
    height: 80px;
}

.logo-large {
    width: 100px;
    height: 100px;
}

/* Logo with background gradient */
.logo-with-bg .logo-image {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    padding: 4px;
}

/* Transparent logo */
.logo-transparent .logo-image {
    background: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


