/* style.css - Organized Structure */
/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Colors */
    --primary-red: #d32f2f;
    --dark-red: #b71c1c;
    --light-red: #ffebee;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
    --text-dark: #333333;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { 
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

/* ===== LAYOUT COMPONENTS ===== */

/* Portal Layout */
.portal-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.portal-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Login Layout */
.login-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.login-container {
    max-width: 450px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

/* Dashboard Layout */
.dashboard-body {
    background-color: var(--gray-light);
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1000;
}

.logo {
    width: 100px;
    height: auto;
    margin-left: 40px;   /* move right */
    margin-top: 20px;    /* move down */
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    padding: var(--space-sm) var(--space-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content {
    padding: var(--space-xl);
    flex: 1;
}

/* ===== NAVIGATION COMPONENTS ===== */

/* Logo */
.logo {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 700;
    text-align: center;
}

.portal-logo {
    margin-bottom: var(--space-xl);
}

.portal-logo h1 {
    font-size: 2.5rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto;
    border-radius: 2px;
}

.login-logo .divider {
    width: 60px;
    height: 3px;
}

/* Navigation Menu */
.nav-menu {
    padding: var(--space-lg) 0;
}

.nav-item {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--light-red);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.nav-item.active {
    background: var(--light-red);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    font-weight: 600;
}

.nav-item i {
    width: 24px;
    margin-right: var(--space-sm);
    font-size: 1.1rem;
}

/* ===== TYPOGRAPHY COMPONENTS ===== */

.portal-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.login-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.page-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

.section-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--gray-medium);
}

/* ===== CARD COMPONENTS ===== */

.portal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    width: 320px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.15);
    border-color: var(--primary-red);
}

.portal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2rem;
    color: var(--white);
}

.admin-icon {
    background: #1976d2;
}

.staff-icon {
    background: #388e3c;
}

.portal-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.portal-card p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.portal-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== BUTTON COMPONENTS ===== */

.btn {
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.btn-secondary:hover {
    background: var(--gray-medium);
}

.btn-success {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-success:hover {
    background: #bbdefb;
}

.btn-danger {
    background: #ffebee;
    color: var(--primary-red);
}

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

.login-btn {
    width: 100%;
    padding: var(--space-sm);
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-md);
}

.login-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* ===== FORM COMPONENTS ===== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
}

.input-with-icon input {
    width: 100%;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 45px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ===== TABLE COMPONENTS ===== */

.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

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

.employees-table th {
    background: var(--light-red);
    color: var(--primary-red);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-medium);
}

.employees-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
    color: var(--text-dark);
}

.employees-table tr:hover {
    background: var(--gray-light);
}

.actions {
    display: flex;
    gap: var(--space-xs);
}

/* ===== WIDGET COMPONENTS ===== */

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.widget {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s ease;
}

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

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.widget-title {
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.widget-icon {
    width: 40px;
    height: 40px;
    background: var(--light-red);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.widget-change {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.widget-change.positive {
    color: #28a745;
}

/* ===== DASHBOARD COMPONENTS ===== */

.welcome-section {
    margin-bottom: var(--space-xl);
}

.welcome-section h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.welcome-section p {
    color: var(--gray-dark);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.activity-section, .quick-links-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--light-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    margin-right: var(--space-sm);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.quick-links-grid {
    display: grid;
    gap: var(--space-sm);
}

.quick-link {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.quick-link:hover {
    background: var(--light-red);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.quick-link i {
    width: 20px;
    margin-right: var(--space-sm);
    color: var(--primary-red);
}

/* ===== MODAL COMPONENTS ===== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-red);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ===== MISC COMPONENTS ===== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.portals-container {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-name {
    font-weight: 600;
    color: var(--text-dark);
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
}

.forgot-password {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.forgot-password a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.footer-note {
    text-align: center;
    padding: var(--space-sm);
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    color: var(--gray-dark);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-red);
}

.back-link {
    text-align: center;
    margin-top: var(--space-md);
}

.back-link a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--primary-red);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 1.3rem;
    }

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

    .page-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .employees-table {
        display: block;
        overflow-x: auto;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .portals-container {
        flex-direction: column;
        align-items: center;
    }
    
    .portal-card {
        width: 100%;
        max-width: 350px;
    }

    .login-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    .content {
        padding: var(--space-lg);
    }
    
    .topbar {
        padding: var(--space-sm) var(--space-lg);
    }
}
/* Add these styles to your style.css file in the FORM COMPONENTS section */

/* ===== FORM COMPONENTS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 45px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    background: var(--white);
}

.input-with-icon input::placeholder {
    color: var(--gray-dark);
    opacity: 0.7;
}

/* Login form specific styles */
.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: var(--space-xl);
}

.login-form .input-with-icon input {
    padding: 15px 15px 15px 45px;
    height: 52px;
    font-size: 1rem;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: var(--space-xl) 0 var(--space-lg) 0;
    height: 52px;
}

.login-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

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

.forgot-password {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.forgot-password a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Login container adjustments */
.login-container {
    max-width: 420px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.login-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.footer-note {
    text-align: center;
    padding: var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
    color: var(--gray-dark);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-red);
    margin-bottom: var(--space-lg);
}

.back-link {
    text-align: center;
    margin-top: var(--space-md);
}

.back-link a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.back-link a:hover {
    color: var(--primary-red);
}
/* Add these to your existing style.css */

/* Topbar enhancements */
.page-info {
    display: flex;
    align-items: center;
}

.topbar .page-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Widget enhancements */
.widget-change {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
}

.widget-change.positive {
    color: #28a745;
}

.widget-change.negative {
    color: #dc3545;
}

.widget-change i {
    font-size: 0.7rem;
}

/* Activity section enhancements */
.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.view-all {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--light-red);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.activity-desc {
    color: var(--gray-dark);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.activity-time {
    color: var(--gray-dark);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Quick links enhancements */
.quick-links-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.quick-links-grid {
    display: grid;
    gap: var(--space-sm);
}

.quick-link {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.quick-link:hover {
    background: var(--light-red);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.quick-link i {
    width: 20px;
    margin-right: var(--space-sm);
    color: var(--primary-red);
    font-size: 1rem;
}

.quick-link span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Welcome section */
.welcome-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-red);
}

.welcome-section h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.welcome-section p {
    color: var(--gray-dark);
    font-size: 1rem;
    margin: 0;
}

/* Dashboard content layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

/* Responsive design for dashboard */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-section {
        padding: var(--space-md);
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* Add these to your style.css file */

/* Employee Management Specific Styles */
.header-content {
    flex: 1;
}

.page-subtitle {
    color: var(--gray-dark);
    font-size: 1rem;
    margin-top: var(--space-xs);
}

/* Table Header */
.table-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

.table-actions {
    display: flex;
    justify-content: between;
    align-items: center;
    gap: var(--space-md);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
}

.search-box input {
    width: 100%;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 35px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.filter-select {
    padding: var(--space-sm);
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
}

/* Employee Table Enhancements */
.employee-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.name-info {
    display: flex;
    flex-direction: column;
}

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

.email {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 2px;
}

.employee-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-red);
}

.department-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.department-badge.engineering {
    background: #e3f2fd;
    color: #1976d2;
}

.department-badge.marketing {
    background: #f3e5f5;
    color: #7b1fa2;
}

.department-badge.finance {
    background: #e8f5e8;
    color: #388e3c;
}

.department-badge.hr {
    background: #fff3e0;
    color: #f57c00;
}

.salary {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #e8f5e8;
    color: #388e3c;
}

.status-badge.inactive {
    background: #ffebee;
    color: var(--primary-red);
}

.actions {
    display: flex;
    gap: var(--space-xs);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Table Footer */
.table-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-medium);
    background: var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-info {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pagination-btn {
    padding: 6px 10px;
    border: 1px solid var(--gray-medium);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

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

.pagination-page {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* Employee Form Styles */
.employee-form .form-group {
    margin-bottom: var(--space-md);
}

.employee-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.employee-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .search-box {
        max-width: none;
    }
    
    .table-footer {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .employee-name {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
}
/* Add these to your style.css file */

/* Salary Form Styles */
.salary-form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.salary-form {
    padding: var(--space-xl);
}

.form-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--light-red);
}

.section-title i {
    color: var(--primary-red);
    width: 20px;
}

/* Field Notes */
.field-note {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 4px;
    font-style: italic;
}

/* Summary Section */
.summary-section {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.summary-grid {
    display: grid;
    gap: var(--space-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gray-medium);
}

.summary-item.total {
    border-left-color: var(--primary-red);
    background: var(--light-red);
}

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

.summary-value {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-medium);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--space-md);
}

/* Responsive Design for Salary Form */
@media (max-width: 768px) {
    .salary-form {
        padding: var(--space-lg);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: var(--space-md);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Input focus states for salary form */
.salary-form input:focus,
.salary-form select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Readonly input styling */
.salary-form input[readonly] {
    background-color: var(--gray-light);
    border-color: var(--gray-medium);
    color: var(--gray-dark);
}

.salary-form input[readonly]:focus {
    border-color: var(--gray-medium);
    box-shadow: none;
}

/* Add these to your style.css file */

/* Upload Page Specific Styles */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-medium);
    z-index: 1;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: var(--space-sm);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 3px solid var(--gray-medium);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.step-description {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.upload-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: var(--space-md);
}

.upload-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.upload-description {
    color: var(--gray-dark);
    margin-bottom: var(--space-lg);
}

.upload-area {
    border: 2px dashed var(--gray-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--primary-red);
    background: var(--light-red);
}

.upload-placeholder {
    color: var(--gray-dark);
}

.upload-placeholder i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
}

.file-types {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-style: italic;
}

.upload-preview {
    text-align: left;
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
}

.file-info i {
    font-size: 1.5rem;
    color: #28a745;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.remove-file {
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.remove-file:hover {
    background: var(--gray-medium);
    color: var(--primary-red);
}

.upload-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Instructions Card */
.instructions-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.instructions-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.instructions-title i {
    color: var(--primary-red);
}

.instructions-content {
    margin-bottom: var(--space-lg);
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-text {
    flex: 1;
    color: var(--text-dark);
}

.sample-table {
    margin-top: var(--space-lg);
}

.sample-table h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.sample-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sample-data th,
.sample-data td {
    padding: 8px 12px;
    border: 1px solid var(--gray-medium);
    text-align: left;
}

.sample-data th {
    background: var(--light-red);
    color: var(--primary-red);
    font-weight: 600;
}

.sample-data td {
    background: var(--white);
}

/* Validation Results */
.validation-results {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
}

.validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
}

.validation-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.validation-title i {
    color: #28a745;
}

.validation-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.stat.success {
    background: #e8f5e8;
    color: #28a745;
}

.stat.error {
    background: #ffebee;
    color: var(--primary-red);
}

.stat.warning {
    background: #fff3e0;
    color: #f57c00;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Errors and Success Lists */
.section-subtitle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.errors-list,
.success-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.error-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: #ffebee;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-red);
}

.error-details {
    flex: 1;
}

.error-message {
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 4px;
}

.error-context {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.success-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: #e8f5e8;
    border-radius: var(--radius-md);
    border-left: 4px solid #28a745;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.employee-id {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.salary-info {
    text-align: right;
}

.salary-amount {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.net-salary {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* Final Actions */
.final-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-medium);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .validation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .validation-stats {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .process-steps::before {
        display: none;
    }
    
    .upload-actions,
    .final-actions {
        flex-direction: column;
    }
    
    .error-item,
    .success-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .salary-info {
        text-align: left;
        width: 100%;
    }
}

/* Add these to your style.css file */

/* ===== HORIZONTAL FILTER BAR FIX ===== */

/* Filters Section */
.filters-section {
    margin-bottom: 30px;
}

.filter-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    height: 45px;
    width: 100%;
    min-width: 0;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Search Group */
.search-group {
    position: relative;
    flex: 2;
    min-width: 250px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.search-box input {
    padding-left: 45px;
    width: 100%;
}

/* Button Group */
.filter-group:last-child {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex: none;
    min-width: auto;
}

.filter-group:last-child button,
.filter-group:last-child a {
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    height: 45px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-sm {
    padding: 10px 15px;
    font-size: 13px;
    height: 40px;
}

/* Responsive Design for Horizontal Filters */
@media (max-width: 992px) {
    .filter-form {
        flex-wrap: wrap;
    }
    
    .filter-group {
        min-width: calc(50% - 10px);
    }
    
    .search-group {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group:last-child {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .filter-group:last-child {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group:last-child button,
    .filter-group:last-child a {
        width: 100%;
        justify-content: center;
    }
}

/* Bulk Actions */
.bulk-actions {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-info h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.bulk-info p {
    color: var(--gray-dark);
    margin: 0;
}

.bulk-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Payslips Table */
.payslips-table {
    width: 100%;
    border-collapse: collapse;
}

.payslips-table th {
    background: var(--light-red);
    color: var(--primary-red);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-medium);
}

.payslips-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
    color: var(--text-dark);
}

.payslips-table tr:hover {
    background: var(--gray-light);
}

.payslips-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.employee-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.name-info {
    display: flex;
    flex-direction: column;
}

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

.email {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 2px;
}

.department-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.department-badge.engineering {
    background: #e3f2fd;
    color: #1976d2;
}

.department-badge.marketing {
    background: #f3e5f5;
    color: #7b1fa2;
}

.department-badge.finance {
    background: #e8f5e8;
    color: #388e3c;
}

.department-badge.hr {
    background: #fff3e0;
    color: #f57c00;
}

.department-badge.sales {
    background: #e8eaf6;
    color: #303f9f;
}

.employee-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-red);
}

.salary {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.net-salary {
    color: #28a745;
}

.last-generated {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.generated {
    background: #e8f5e8;
    color: #28a745;
}

.status-badge.not-generated {
    background: #ffebee;
    color: var(--primary-red);
}

.status-badge.emailed {
    background: #e3f2fd;
    color: #1976d2;
}

.actions {
    display: flex;
    gap: var(--space-xs);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Table Header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

.table-info h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.table-count {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

.selected-count {
    color: var(--primary-red);
    font-weight: 600;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.pagination-btn {
    padding: 6px 10px;
    border: 1px solid var(--gray-medium);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

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

.pagination-info {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* Modal Enhancements */
.modal-lg {
    max-width: 800px;
}

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

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.payslip-preview {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 400px;
}

.payslip-content h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .filters-section {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .bulk-buttons {
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .table-actions {
        width: 100%;
    }
    
    .search-box {
        max-width: none;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .employee-name {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .modal-actions {
        flex-direction: column;
        width: 100%;
        margin-top: var(--space-md);
    }
    
    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add these to your style.css file */

/* Payslip View Specific Styles */
.payslip-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Payslip Header */
.payslip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 3px solid var(--primary-red);
}

.company-info {
    flex: 1;
}

.company-logo h1 {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.company-address {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.company-address p {
    margin: 2px 0;
}

.payslip-title {
    text-align: right;
}

.payslip-title h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.payslip-period {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--space-xs);
}

.payslip-number {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 4px;
}

/* Section Headers */
.section-header {
    background: var(--light-red);
    padding: var(--space-md);
    margin: var(--space-lg) 0 var(--space-md) 0;
    border-left: 4px solid var(--primary-red);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.section-header h3 {
    color: var(--primary-red);
    margin: 0;
    font-size: 1.2rem;
}

/* Employee Information */
.employee-details {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.detail-row {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-md);
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-sm);
}

.detail-item label {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.detail-value {
    font-weight: 600;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
}

/* Salary Breakdown */
.salary-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.earnings-section,
.deductions-section {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.breakdown-list {
    margin-top: var(--space-md);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.breakdown-item.total {
    border-top: 2px solid var(--primary-red);
    border-bottom: none;
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-weight: 700;
}

.item-label {
    color: var(--text-dark);
    font-weight: 500;
}

.item-amount {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.breakdown-item.total .item-amount {
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Net Salary Section */
.net-salary-section {
    margin-bottom: var(--space-xl);
}

.net-salary-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.net-salary-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.net-salary-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: 'Courier New', monospace;
}

.net-salary-words {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* Additional Information */
.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.info-section {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.info-section h4 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.info-content {
    color: var(--text-dark);
    line-height: 1.6;
}

.info-content p {
    margin: var(--space-xs) 0;
}

/* Payslip Footer */
.payslip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 2px solid var(--gray-medium);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.footer-section p {
    margin: 2px 0;
}

/* Action Footer */
.action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Print Styles */
@media print {
    .sidebar,
    .topbar,
    .page-header,
    .action-footer {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .payslip-container {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .payslip-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .payslip-title {
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .salary-breakdown {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .additional-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .payslip-footer {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .action-footer {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .action-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced styling for better visual hierarchy */
.earnings-section .breakdown-item:not(.total) .item-amount {
    color: #28a745;
}

.deductions-section .breakdown-item:not(.total) .item-amount {
    color: #dc3545;
}

/* Hover effects for interactive elements */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.payslip-container {
    transition: transform 0.3s ease;
}

.payslip-container:hover {
    transform: translateY(-5px);
}

/* Add these to your style.css file */

/* Reports Page Specific Styles */
.report-period select {
    padding: var(--space-sm);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
    min-width: 150px;
}

/* Summary Cards Enhancements */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform 0.3s ease;
}

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

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.summary-icon.total {
    background: var(--primary-red);
}

.summary-icon.tax {
    background: #ff9800;
}

.summary-icon.bonus {
    background: #4caf50;
}

.summary-icon.deduction {
    background: #2196f3;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: var(--space-xs);
}

.summary-change {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary-change.positive {
    color: #28a745;
}

.summary-change.negative {
    color: #dc3545;
}

/* Charts Section */
.charts-section {
    margin-bottom: var(--space-xl);
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
}

.chart-title i {
    color: var(--primary-red);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Reports Table Section */
.reports-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.section-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--gray-light);
}

.section-title h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.section-title p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.95rem;
}

.export-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Reports Table */
.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th {
    background: var(--light-red);
    color: var(--primary-red);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-medium);
    position: sticky;
    top: 0;
}

.reports-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
    color: var(--text-dark);
}

.reports-table tr:hover {
    background: var(--gray-light);
}

.reports-table .month {
    font-weight: 600;
    color: var(--text-dark);
}

.reports-table .employees {
    text-align: center;
    font-family: 'Courier New', monospace;
}

.reports-table .salary,
.reports-table .tax,
.reports-table .bonus,
.reports-table .deduction,
.reports-table .avg-salary {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: right;
}

.reports-table .growth {
    font-weight: 600;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.reports-table .growth.positive {
    color: #28a745;
}

.reports-table .growth.negative {
    color: #dc3545;
}

/* Table Summary */
.table-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-label {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.summary-value {
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
}

.summary-value.positive {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .export-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .table-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .summary-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .reports-table {
        display: block;
        overflow-x: auto;
    }
}

/* Print Styles for Reports */
@media print {
    .sidebar,
    .topbar,
    .page-header,
    .export-actions {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .summary-cards,
    .charts-section,
    .reports-section {
        box-shadow: none !important;
        margin: 10px 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12px !important;
    }
    
    .chart-container {
        height: 250px !important;
    }
}

/* Enhanced chart styling */
.chart-card {
    transition: transform 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar for table */
.table-container {
    max-height: 600px;
    overflow-y: auto;
}

.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--gray-light);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Add these to your style.css file */

/* Settings Page Specific Styles */
.settings-nav {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.nav-btn {
    flex: 1;
    padding: var(--space-lg);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--gray-light);
    color: var(--primary-red);
}

.nav-btn.active {
    background: var(--light-red);
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.settings-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.settings-tab {
    display: none;
    padding: var(--space-xl);
}

.settings-tab.active {
    display: block;
}

.settings-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-medium);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.section-header h3 i {
    color: var(--primary-red);
}

.section-header p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.95rem;
}

/* Settings Form */
.settings-form {
    margin-top: var(--space-lg);
}

/* Input with suffix/prefix */
.input-with-suffix,
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    padding-right: 40px;
}

.input-with-prefix input {
    padding-left: 50px;
}

.input-suffix,
.input-prefix {
    position: absolute;
    padding: 0 var(--space-sm);
    color: var(--gray-dark);
    font-weight: 500;
    background: var(--gray-light);
    height: 100%;
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-medium);
}

.input-suffix {
    right: 0;
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-prefix {
    left: 0;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-with-suffix input:focus + .input-suffix,
.input-with-prefix input:focus ~ .input-prefix {
    border-color: var(--primary-red);
    background: var(--light-red);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    color: var(--text-dark);
}

/* Logo Upload Section */
.logo-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.logo-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.current-logo {
    border: 2px dashed var(--gray-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-logo img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-dark);
}

.logo-placeholder i {
    font-size: 3rem;
    color: var(--gray-medium);
}

.logo-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.upload-requirements {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.upload-requirements h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.upload-requirements ul {
    color: var(--gray-dark);
    margin: 0;
    padding-left: var(--space-md);
}

.upload-requirements li {
    margin-bottom: var(--space-xs);
}

/* Password Strength */
.password-strength {
    margin-top: var(--space-sm);
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-medium);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-align: right;
}

.password-match {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.password-requirements {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
}

.password-requirements h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.password-requirements ul {
    margin: 0;
    padding-left: var(--space-md);
}

.password-requirements li {
    margin-bottom: var(--space-xs);
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-nav {
        flex-direction: column;
    }
    
    .logo-upload-section {
        grid-template-columns: 1fr;
    }
    
    .logo-actions {
        flex-direction: column;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .nav-btn {
        padding: var(--space-md);
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .nav-btn.active {
        border-left-color: var(--primary-red);
        border-bottom: none;
    }
}

/* Enhanced form styling */
.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Field notes styling */
.field-note {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 4px;
    font-style: italic;
}

/* Transition effects */
.settings-tab {
    animation: fadeIn 0.3s ease;
}

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

/* Hover effects */
.settings-section {
    transition: transform 0.2s ease;
}

.settings-section:hover {
    transform: translateX(5px);
}

/* Add these to your style.css file */

/* Staff Login Specific Styles */
.login-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.login-container {
    max-width: 420px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.login-subtitle {
    color: var(--gray-dark);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Staff Login Form */
.login-form {
    margin-bottom: var(--space-lg);
}

.login-form .form-group {
    margin-bottom: var(--space-lg);
}

.login-form label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 45px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    height: 52px;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    background: var(--white);
}

.input-with-icon input::placeholder {
    color: var(--gray-dark);
    opacity: 0.7;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.remember-me label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: normal;
    cursor: pointer;
}

.forgot-password a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.login-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

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

.login-btn:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Info Section */
.info-section {
    background: var(--gray-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-red);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--gray-dark);
    line-height: 1.4;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-medium);
}

.back-link a,
.support-link a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.back-link a:hover,
.support-link a:hover {
    color: var(--primary-red);
}

/* Modal Styles for Forgot Password */
.modal-sm {
    max-width: 400px;
}

.modal-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-title i {
    color: var(--primary-red);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-red);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* Info Note */
.info-note {
    background: var(--light-red);
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.info-note i {
    color: var(--primary-red);
    margin-top: 2px;
    flex-shrink: 0;
}

.info-note {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: var(--space-lg);
    }
    
    .login-title {
        font-size: 1.6rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    .modal-body {
        padding: var(--space-lg);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced focus states */
.input-with-icon input:focus {
    transform: translateY(-1px);
}

/* Animation for form elements */
.login-form .form-group {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for form groups */
.login-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.login-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.form-options { animation-delay: 0.3s; }
.login-btn { animation-delay: 0.4s; }

/* Loading animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Add these to your style.css file */

/* Staff Dashboard Specific Styles */
.staff-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.staff-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.staff-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.staff-id {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-red);
}

.welcome-content h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.welcome-content p {
    color: var(--gray-dark);
    font-size: 1rem;
    margin: 0;
}

.month-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Quick Action Card */
.quick-action-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.action-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-text h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.3rem;
}

.action-text p {
    margin: 0;
    opacity: 0.9;
}

.quick-action-card .btn {
    background: var(--white);
    color: var(--primary-red);
    border: 2px solid var(--white);
}

.quick-action-card .btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s ease;
}

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

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.stat-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    flex: 1;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.stat-icon.salary {
    background: var(--primary-red);
}

.stat-icon.download {
    background: #2196f3;
}

.stat-icon.tax {
    background: #ff9800;
}

.stat-icon.ssnit {
    background: #4caf50;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-family: 'Courier New', monospace;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.neutral {
    color: var(--gray-dark);
}

.stat-details {
    background: var(--gray-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item span:first-child {
    color: var(--gray-dark);
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.stat-actions {
    margin-top: var(--space-md);
}

/* Payslips List */
.payslips-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.payslip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-red);
    transition: transform 0.2s ease;
}

.payslip-item:hover {
    transform: translateX(5px);
}

.payslip-month {
    flex: 1;
}

.payslip-month .month {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.status.available {
    background: #e8f5e8;
    color: #28a745;
}

.status.downloaded {
    background: #e3f2fd;
    color: #2196f3;
}

.payslip-details {
    text-align: right;
    margin-right: var(--space-lg);
}

.salary-amount {
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    margin-bottom: 2px;
}

.payslip-date {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.payslip-actions {
    display: flex;
    gap: var(--space-xs);
}

/* Quick Links Section */
.quick-links-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.quick-links-grid {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quick-link {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    gap: var(--space-md);
}

.quick-link:hover {
    background: var(--light-red);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    transform: translateX(5px);
}

.quick-link i {
    width: 20px;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.quick-link span {
    font-weight: 600;
    flex: 1;
}

.quick-link small {
    color: var(--gray-dark);
    font-size: 0.8rem;
}

/* Important Dates */
.important-dates {
    border-top: 1px solid var(--gray-medium);
    padding-top: var(--space-lg);
}

.important-dates h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.date-icon {
    width: 36px;
    height: 36px;
    background: var(--light-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    flex-shrink: 0;
}

.date-content {
    flex: 1;
}

.date-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.date {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .quick-action-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .action-content {
        width: 100%;
    }
    
    .payslip-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .payslip-details {
        text-align: left;
        margin-right: 0;
    }
    
    .payslip-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .staff-info {
        flex-direction: column;
        align-items: flex-end;
        gap: var(--space-xs);
    }
}

/* Animation for cards */
.stat-card {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for stat cards */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Add these to your style.css file */

/* Staff Payslips Specific Styles */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform 0.3s ease;
}

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

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.summary-icon.total {
    background: var(--primary-red);
}

.summary-icon.available {
    background: #28a745;
}

.summary-icon.downloaded {
    background: #2196f3;
}

.summary-icon.recent {
    background: #ff9800;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin: 0;
}

/* Filters Section */
.filters-section {
    margin-bottom: var(--space-xl);
}

.filter-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--space-xl);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.search-group {
    flex: 2;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
}

.search-box input {
    width: 100%;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 35px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Payslips Table */
.payslips-table {
    width: 100%;
    border-collapse: collapse;
}

.payslips-table th {
    background: var(--light-red);
    color: var(--primary-red);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-medium);
    position: sticky;
    top: 0;
}

.payslips-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
    color: var(--text-dark);
}

.payslips-table tr:hover {
    background: var(--gray-light);
}

.month-cell {
    font-weight: 600;
}

.month-name {
    color: var(--text-dark);
    margin-bottom: 4px;
}

.year-badge {
    background: var(--gray-light);
    color: var(--gray-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.salary {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: right;
}

.salary.gross {
    color: var(--text-dark);
}

.salary.deduction {
    color: #dc3545;
}

.salary.net {
    color: #28a745;
    font-size: 1.1rem;
}

.last-accessed {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.available {
    background: #e8f5e8;
    color: #28a745;
}

.status-badge.downloaded {
    background: #e3f2fd;
    color: #2196f3;
}

.status-badge.pending {
    background: #fff3e0;
    color: #ff9800;
}

.actions {
    display: flex;
    gap: var(--space-xs);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Table Header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

.table-info h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.table-count {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

.table-summary {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-label {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.summary-value {
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
    margin: 0;
    font-size: 1rem;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.pagination-btn {
    padding: 6px 10px;
    border: 1px solid var(--gray-medium);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

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

.pagination-info {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* Tips Section */
.tips-section {
    margin-top: var(--space-xl);
}

.tip-card {
    background: var(--light-red);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.tip-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tip-content h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.tip-content ul {
    margin: 0;
    padding-left: var(--space-md);
    color: var(--text-dark);
}

.tip-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .table-footer {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .table-summary {
        width: 100%;
        justify-content: space-between;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .tip-card {
        flex-direction: column;
        text-align: center;
    }
    
    .payslips-table {
        display: block;
        overflow-x: auto;
    }
}

/* Animation for table rows */
.payslips-table tbody tr {
    animation: slideIn 0.3s ease;
}

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

/* Staggered animation for table rows */
.payslips-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.payslips-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.payslips-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.payslips-table tbody tr:nth-child(4) { animation-delay: 0.4s; }

/* Print styles */
@media print {
    .sidebar,
    .topbar,
    .page-header,
    .summary-cards,
    .filters-section,
    .table-actions,
    .actions,
    .tips-section {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .table-container {
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12px !important;
    }
}

/* Add these to your style.css file */

/* Staff Payslip View Specific Styles */
.payslip-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Payslip Header */
.payslip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 3px solid var(--primary-red);
}

.company-info {
    flex: 1;
}

.company-logo h1 {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.company-address {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.company-address p {
    margin: 2px 0;
}

.payslip-title {
    text-align: right;
}

.payslip-title h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.payslip-period {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--space-xs);
}

.payslip-number {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 4px;
}

/* Section Headers */
.section-header {
    background: var(--light-red);
    padding: var(--space-md);
    margin: var(--space-lg) 0 var(--space-md) 0;
    border-left: 4px solid var(--primary-red);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.section-header h3 {
    color: var(--primary-red);
    margin: 0;
    font-size: 1.2rem;
}

/* Employee Information */
.employee-details {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.detail-row {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-md);
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-sm);
}

.detail-item label {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.detail-value {
    font-weight: 600;
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
}

/* Salary Breakdown */
.salary-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.earnings-section,
.deductions-section {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.breakdown-list {
    margin-top: var(--space-md);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

.breakdown-item.total {
    border-top: 2px solid var(--primary-red);
    border-bottom: none;
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-weight: 700;
}

.item-label {
    color: var(--text-dark);
    font-weight: 500;
}

.item-amount {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.breakdown-item.total .item-amount {
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Net Salary Section */
.net-salary-section {
    margin-bottom: var(--space-xl);
}

.net-salary-card {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.net-salary-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.net-salary-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: 'Courier New', monospace;
}

.net-salary-words {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* YTD Section */
.ytd-section {
    margin-bottom: var(--space-xl);
}

.ytd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.ytd-item {
    background: var(--gray-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border-left: 3px solid var(--primary-red);
}

.ytd-label {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: var(--space-xs);
}

.ytd-value {
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

/* Additional Information */
.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.info-section {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.info-section h4 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.info-content {
    color: var(--text-dark);
    line-height: 1.6;
}

.info-content p {
    margin: var(--space-xs) 0;
}

/* Payslip Footer */
.payslip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 2px solid var(--gray-medium);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.footer-section p {
    margin: 2px 0;
}

/* Action Footer */
.action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Help Section */
.help-section {
    margin-top: var(--space-xl);
}

.help-card {
    background: var(--light-red);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.help-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.help-content h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.help-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.help-link i {
    width: 20px;
}

/* Print Styles */
@media print {
    .sidebar,
    .topbar,
    .page-header,
    .action-footer,
    .help-section {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .payslip-container {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .payslip-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .payslip-title {
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .salary-breakdown {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .additional-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .ytd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payslip-footer {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .action-footer {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .action-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .help-card {
        flex-direction: column;
        text-align: center;
    }
    
    .help-links {
        align-items: center;
    }
}

/* Enhanced styling for better visual hierarchy */
.earnings-section .breakdown-item:not(.total) .item-amount {
    color: #28a745;
}

.deductions-section .breakdown-item:not(.total) .item-amount {
    color: #dc3545;
}

/* Security note for account number */
.detail-value[data-sensitive="true"] {
    letter-spacing: 2px;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.detail-value[data-sensitive="true"]:hover {
    filter: none;
}

/* Add these to your style.css file */

/* Staff Profile Specific Styles */
.profile-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-picture-section {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.profile-picture {
    text-align: center;
    position: relative;
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.picture-actions {
    margin-top: var(--space-sm);
}

.profile-quick-info h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.8rem;
}

.staff-role {
    margin: 0 0 var(--space-sm) 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

.status-badge.active {
    background: #28a745;
    color: var(--white);
}

.member-since {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    gap: var(--space-xl);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Content */
.profile-content {
    padding: var(--space-xl);
}

.profile-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-medium);
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.section-header h3 i {
    color: var(--primary-red);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    padding: var(--space-sm);
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-red);
}

/* Salary Grid */
.salary-grid {
    display: grid;
    gap: var(--space-sm);
}

.salary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--gray-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-red);
}

.salary-item.total {
    background: var(--light-red);
    border-left-color: var(--dark-red);
    font-weight: 700;
}

.salary-label {
    color: var(--text-dark);
    font-weight: 500;
}

.salary-value {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.salary-item.total .salary-value {
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Security Section */
.security-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--gray-light);
    border-radius: var(--radius-sm);
}

.security-item i {
    width: 20px;
    text-align: center;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

/* Actions Footer */
.actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
}

/* Leave Count Styling */
.leave-count {
    background: #28a745;
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal Styles (reused from settings) */
.modal-sm {
    max-width: 450px;
}

.modal-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-title i {
    color: var(--primary-red);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-red);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* Password Strength (reused from settings) */
.password-strength {
    margin-top: var(--space-sm);
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-medium);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-align: right;
}

.password-match {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

.password-requirements {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
}

.password-requirements h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.password-requirements ul {
    margin: 0;
    padding-left: var(--space-md);
}

.password-requirements li {
    margin-bottom: var(--space-xs);
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .profile-stats {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .profile-picture-section {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .profile-status {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .security-actions {
        flex-direction: column;
    }
    
    .actions-footer {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .action-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .topbar,
    .page-header,
    .btn,
    .actions-footer,
    .picture-actions {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .profile-container {
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .profile-header {
        background: #f8f9fa !important;
        color: black !important;
        border: 2px solid #ddd;
    }
    
    .profile-placeholder {
        background: #ddd !important;
        border-color: #999 !important;
        color: #666 !important;
    }
}

/* Animation for profile sections */
.profile-section {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for profile sections */
.profile-section:nth-child(1) { animation-delay: 0.1s; }
.profile-section:nth-child(2) { animation-delay: 0.2s; }
.profile-section:nth-child(3) { animation-delay: 0.3s; }
.profile-section:nth-child(4) { animation-delay: 0.4s; }
.profile-section:nth-child(5) { animation-delay: 0.5s; }

/* Add these to your style.css file */

/* Logout Page Specific Styles */
.logout-body {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logout-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
}

.logout-content {
    padding: var(--space-xl) 0;
}

/* Logout Spinner */
.logout-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg) auto;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid var(--light-red);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-red);
}

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

/* Logout Message */
.logout-message {
    margin-bottom: var(--space-xl);
}

.logout-message h1 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.logout-message p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Progress Bar */
.logout-progress {
    margin-bottom: var(--space-xl);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* Logout Actions */
.logout-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.logout-actions .btn {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

/* Security Notice */
.security-notice {
    background: var(--light-red);
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
    margin-bottom: var(--space-lg);
}

.notice-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notice-content h4 {
    color: var(--text-dark);
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.1rem;
}

.notice-content p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Logout Footer */
.logout-footer {
    border-top: 1px solid var(--gray-medium);
    padding-top: var(--space-lg);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.logout-footer p {
    margin: 0 0 var(--space-sm) 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* Success Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.redirecting {
    animation: fadeOut 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logout-container {
        padding: var(--space-lg);
        margin: var(--space-md);
    }
    
    .logout-message h1 {
        font-size: 1.6rem;
    }
    
    .logout-message p {
        font-size: 1rem;
    }
    
    .logout-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .logout-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .security-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .logout-body {
        padding: var(--space-md);
    }
    
    .logout-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .logout-content {
        padding: var(--space-lg) 0;
    }
    
    .logout-message h1 {
        font-size: 1.4rem;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    .spinner-circle {
        animation: none;
        border: 4px solid var(--light-red);
    }
    
    .progress-fill {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .logout-body {
        background: var(--white);
        border: 2px solid var(--text-dark);
    }
    
    .logout-container {
        border: 2px solid var(--text-dark);
    }
    
    .security-notice {
        border: 2px solid var(--text-dark);
        background: var(--white);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .logout-body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .logout-container {
        background: #2c3e50;
        color: var(--white);
    }
    
    .logout-message h1 {
        color: var(--white);
    }
    
    .logout-message p {
        color: #bdc3c7;
    }
    
    .security-notice {
        background: #34495e;
        border-color: #3498db;
        color: var(--white);
    }
    
    .security-notice p {
        color: #bdc3c7;
    }
    
    .logout-footer {
        border-top-color: #34495e;
        color: #bdc3c7;
    }
    
    .footer-links a {
        color: #bdc3c7;
    }
    
    .footer-links a:hover {
        color: #3498db;
    }
}

/* Print Styles */
@media print {
    .logout-body {
        background: white !important;
    }
    
    .logout-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .logout-spinner,
    .logout-progress,
    .logout-actions {
        display: none !important;
    }
}

/* Add these to your style.css file */

/* Leave Management Specific Styles */

/* Leave Type Badges */
.leave-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.leave-type-badge.annual {
    background: #e3f2fd;
    color: #1976d2;
}

.leave-type-badge.sick {
    background: #ffebee;
    color: #d32f2f;
}

.leave-type-badge.casual {
    background: #fff3e0;
    color: #f57c00;
}

.leave-type-badge.maternity {
    background: #f3e5f5;
    color: #7b1fa2;
}

.leave-type-badge.paternity {
    background: #e8f5e8;
    color: #388e3c;
}

.leave-type-badge.study {
    background: #e1f5fe;
    color: #0288d1;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.approved {
    background: #e8f5e8;
    color: #388e3c;
}

.status-badge.rejected {
    background: #ffebee;
    color: #d32f2f;
}

/* Leave Table */
.leave-table {
    width: 100%;
    border-collapse: collapse;
}

.leave-table th {
    background: var(--light-red);
    color: var(--primary-red);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-medium);
}

.leave-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-medium);
    color: var(--text-dark);
}

.leave-table tr:hover {
    background: var(--gray-light);
}

.employee-name {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.name-info {
    display: flex;
    flex-direction: column;
}

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

.department {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 2px;
}

.date, .days {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: var(--space-xs);
}

/* Actions Panel */
.actions-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
    overflow: hidden;
}

.panel-header {
    background: var(--gray-light);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
}

.panel-header h4 {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
}

.panel-content {
    padding: var(--space-lg);
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Leave Details Modal */
.leave-details {
    max-height: 60vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-medium);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.detail-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.reason-box {
    background: var(--gray-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-red);
}

.reason-box p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Stat Icons for Leave */
.stat-icon.pending {
    background: #ffc107;
}

.stat-icon.approved {
    background: #28a745;
}

.stat-icon.total {
    background: #17a2b8;
}

.stat-icon.today {
    background: #6f42c1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .leave-table {
        display: block;
        overflow-x: auto;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .filter-card {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .topbar,
    .page-header,
    .filters-section,
    .actions-panel,
    .table-actions,
    .actions {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content {
        padding: 0 !important;
    }
    
    .table-container {
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Leave Management Styles */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.stat-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-icon.annual { background: #667eea; }
.stat-icon.sick { background: #f5576c; }
.stat-icon.pending { background: #f59e0b; }
.stat-icon.total { background: #10b981; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.85rem;
    color: #666;
}

/* Leave Type Badges */
.leave-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.leave-type-badge.annual {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.leave-type-badge.sick {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.leave-type-badge.casual {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.approved {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Leave Table */
.leave-table {
    width: 100%;
    border-collapse: collapse;
}

.leave-table th {
    padding: 15px 25px;
    text-align: left;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.leave-table td {
    padding: 15px 25px;
    border-bottom: 1px solid #dee2e6;
}

.leave-table tbody tr:hover {
    background: #f8f9fa;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.days {
    font-weight: 600;
    color: #333;
}

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

/* Actions Panel */
.actions-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
}

.panel-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.panel-content {
    padding: 20px 25px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #d32f2f;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ===== HAMBURGER SIDEBAR OVERRIDES ===== */
/* Force desktop sidebar to be normal */
.sidebar {
    width: 260px;
    transition: all 0.3s ease;
}

/* On mobile, hide sidebar and use overlay */
@media (max-width: 768px) {
    /* Override old rules */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 280px !important;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
    }
    .sidebar.open {
        left: 0;
    }
    /* Hide old span-hiding behaviour – show text normally */
    .sidebar .nav-item span {
        display: inline !important;
    }
    .sidebar .nav-item i {
        margin-right: 10px !important;
        font-size: 1.1rem !important;
    }
    .sidebar .nav-item {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
    }
    /* Override old width:70px nonsense */
    .sidebar .logo {
        display: block !important;
    }
    /* Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    .sidebar-overlay.active {
        display: block;
    }
    /* Hamburger button */
    .mobile-menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1060;
        background: #d32f2f;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 1.2rem;
        cursor: pointer;
    }
    /* Sidebar close button */
    .sidebar-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #666;
    }
    /* Main content adjustments */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding-top: 70px; /* room for topbar + hamburger */
    }
}

/* Desktop – hide hamburger elements */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .sidebar-overlay,
    .sidebar-close {
        display: none;
    }
    .sidebar {
        left: 0 !important;
    }
    .main-content {
        margin-left: 260px;
    }
}

@media (min-width: 769px) {
    body.dashboard-body .main-content {
        margin-left: 0 !important;
        flex: 1 !important;
    }
}

body.hr-role .main-content {
    margin-left: 0 !important;
    width: 100%;
}
body.hr-role .sidebar {
    display: none !important;
}

.filter-select {
    line-height: 5;         /* ensures the text is vertically centred */
    vertical-align: middle;
}