:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #ea4335;
    --light-color: #f0f2f5;
    --dark-color: #202124;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --danger-color: #ea4335;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-family: 'Sansation', 'Noto Sans SC', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle, rgba(189, 204, 255, 1) 1%, rgba(176, 226, 255, 1) 43%, rgba(255, 255, 255, 1) 100%);
}

.company-name {
    display: flex;
    align-items: center;
    position: absolute;
    top: -50px;
    left: 10%;
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
}

.material-symbols-rounded {
    margin-right: 5px;
}

/* Main section container for the pages */
.container {
    max-width: 800px;
    min-height: 120px;
    min-width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: none;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Salary page specific container styling */
.salary-page .container {
    max-width: 1200px;
    width: 100%;
    text-align: left;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

h1 {
    color: var(--primary-color);
    margin: 60px 0 25px 0;
    font-weight: 500;
    font-size: 28px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 22px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Sansation', sans-serif;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.main-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Sansation', sans-serif;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.main-button i {
    margin-right: 8px;
    color: white;
}

.main-button:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.main-button:active {
    transform: translateY(0);
}

.back-button {
    background-color: #6c757d;
}

.back-button:hover {
    background-color: #5a6268;
}

.success-button {
    background-color: var(--success-color);
}

.success-button:hover {
    background-color: #2d9249;
}

.danger-button {
    background-color: var(--danger-color);
}

.danger-button:hover {
    background-color: #d33426;
}

#currentTime {
    font-size: 32px;
    margin: 25px 0;
    color: var(--primary-color);
    font-weight: 300;
}

.current-date {
    font-size: 18px;
    color: var(--dark-color);
    margin: 20px 0;
    font-weight: 400;
}

.error-message {
    color: var(--danger-color);
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: rgba(234, 67, 53, 0.1);
    display: none;
}

.success-message {
    color: var(--success-color);
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: rgba(52, 168, 83, 0.1);
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.table-container {
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 20px;
    position: relative;
    border-radius: var(--border-radius);
}

thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f8f9fa;
}

.date-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.date-selector select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 0;
}

.employee-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    text-align: center;
}

.employee-status.clocked-in {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--success-color);
}

.employee-status.clocked-out {
    background-color: rgba(234, 67, 53, 0.1);
    color: var(--danger-color);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .outer-container {
        padding: 20px;
        width: 100%;
        
    }

    .container {
        padding: 30px 20px;
        min-height: 80px;
        min-width: 350px;
    }

    .company-name {
        position: relative;
        top: 0;
        left: 0;
        justify-content: center;
        margin-bottom: 20px;
    }

    .date-selector {
        flex-direction: column;
    }
    
    h1 {
        margin-top: 30px;
    }
}

/* Admin dashboard specific styles - Updated for new layout */
.admin-layout .container h1 {
    margin-top: 60px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    text-align: center;
}

.admin-layout .sidebar .company-name {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 0;
}

/* Fix spacing in employee name page */
#employeeNamePage {
    position: relative;
    padding-top: 30px;
}

#employeeNamePage h1 {
    margin-top: 40px;
    margin-bottom: 20px;
    clear: both;
    width: 100%;
    text-align: center;
}

#employeeNamePage .current-date {
    margin-bottom: 20px;
    clear: both;
}

#employeeNamePage input {
    margin: 15px 0;
}

#employeeNamePage .main-button {
    margin: 15px 0;
}

/* Admin Dashboard Sidebar Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: transparent;
}

.sidebar {
    width: 250px;
    background-color: white;
    box-shadow: 1px solid var(--box-shadow);
    border-right: 1px solid #444;
    padding: 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease;
}

.sidebar span {
    color: var(--dark-color);
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 250px;
}


.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    text-align: center;
    position: relative;
}

.sidebar-header h2 {
    color: black;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.sidebar-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #dc3545;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    color: #dc3545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle-btn {
    display: none;
}

.sidebar.collapsed .sidebar-toggle-btn {
    display: block;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a span {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav a .material-symbols-rounded {
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav a:hover {
    background-color: white;
    width: 90%;
    left: 10px;
    height: 45px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    color: #333;
}

.sidebar-nav a:hover .material-symbols-rounded {
    color: #333;
}

.sidebar-nav a.active {
    background-color: white;
    width: 90%;
    left: 10px;
    height: 45px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}


.sidebar-nav i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background-color: transparent;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px !important;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 250px !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 20px 10px;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-toggle-btn {
        display: none;
    }
    
    .container {
        padding: 30px 20px;
        min-width: 350px;
    }
}

/* Admin Page Styles */
.admin-page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.admin-page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dashboard-actions .main-button {
    margin-top: 0 !important;
    width: auto;
    flex: 1;
}

/* Rate Settings Grid */
.rate-settings label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.rate-settings input {
    margin-bottom: 0;
}

/* Table Actions */
.employee-actions,
.project-actions,
.rate-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.employee-actions .main-button,
.project-actions .main-button,
.rate-actions .main-button {
    margin-top: 0 !important;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #444;
}

.sidebar-logout-btn {
    width: 100%;
    padding: 12px 16px;
    background: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 6px;
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.sidebar-logout-btn span {
    color: white;
}

/* Sidebar layout adjustments */
.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
}

/* Responsive adjustments for sidebar logout */
@media (max-width: 768px) {
    .sidebar-footer {
        padding: 15px;
    }
    
    .sidebar-logout-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    margin-top: 5px;
    text-align: left;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    display: block;
    line-height: 1.4;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Sansation', sans-serif;
    transition: all 0.3s ease;
    background: white;
    margin-top: 0;
    margin-bottom: 0;
}

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

.form-group input::placeholder {
    color: #adb5bd;
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sansation', sans-serif;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-notification i {
    font-size: 18px;
}

/* Import Modal Specific Styles */
.import-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.import-instructions h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.template-download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.template-download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-download-btn i {
    font-size: 0.8rem;
}

.csv-format,
.csv-example {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
}

.import-options {
    margin-bottom: 20px;
}

.import-options h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.radio-content small {
    color: #6c757d;
    font-size: 0.9rem;
}

/* File Upload Area */
.file-upload-area {
    margin-bottom: 20px;
}

/* Configuration Section */
.config-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .config-section {
        grid-template-columns: 1fr;
    }
}

/* Public Holiday Multipliers File Upload */
.file-upload-section {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: none;
    font-size: 14px;
}

.file-upload-label:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.file-upload-label i {
    font-size: 16px;
}

.file-upload-input {
    display: none;
}

.file-upload-info {
    margin-top: 8px;
    color: #6c757d;
}

.file-upload-info small {
    font-size: 12px;
    font-style: italic;
}

/* File Download Section */
.file-download-section {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-download-section .file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    background: transparent;
    border: none;
    margin: 0;
}

.file-download-section .file-info i {
    font-size: 24px;
    color: #28a745;
}

.file-download-section .file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-download-section .file-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.file-download-section .file-size {
    font-size: 12px;
    color: #6c757d;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.download-btn i {
    font-size: 12px;
}

/* Overtime Multiplier Section */
.overtime-multiplier-section {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.overtime-multiplier-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.overtime-multiplier-label i {
    font-size: 16px;
    color: var(--primary-color);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.overtime-multiplier-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background: white;
    transition: all var(--transition-speed) ease;
    -moz-appearance: textfield; /* Firefox */
}

.overtime-multiplier-input::-webkit-outer-spin-button,
.overtime-multiplier-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.overtime-multiplier-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.overtime-multiplier-input:hover {
    border-color: #d1d5db;
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: #6b7280;
    font-weight: 500;
    font-size: 16px;
    pointer-events: none;
}

.input-info {
    color: #6c757d;
}

.input-info small {
    font-size: 12px;
    font-style: italic;
}

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #3498db;
    background: #f0f8ff;
}

.upload-zone i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-zone h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.upload-zone p {
    margin: 0;
    color: #6c757d;
}

.upload-btn {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.upload-btn:hover {
    color: #2980b9;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    margin-top: 10px;
}

.file-info i {
    font-size: 24px;
    color: #28a745;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
}

.file-size {
    font-size: 0.9rem;
    color: #6c757d;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #f8d7da;
}

/* Import Preview */
.import-preview {
    margin-bottom: 20px;
}

.import-preview h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.preview-table-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
}

.preview-table-container table {
    width: 100%;
    margin: 0;
}

.preview-table-container th,
.preview-table-container td {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.preview-table-container th {
    background: #f8f9fa;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.preview-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.preview-stats span {
    padding: 5px 10px;
    border-radius: 4px;
    background: #f8f9fa;
    color: #6c757d;
}

/* Import Errors */
.import-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.import-errors h4 {
    margin: 0 0 10px 0;
    color: #721c24;
}

.import-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #721c24;
}

.import-errors li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Edit Button Styles */
.edit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-btn i {
    font-size: 0.8rem;
}

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

/* Delete Button Styles */
.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


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

/* Actions column styling */
table td:last-child {
    text-align: center;
    white-space: nowrap;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .success-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .success-notification.show {
        transform: translateY(0);
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px;
    }
    
    .upload-zone {
        padding: 30px 15px;
    }
    
    .upload-zone i {
        font-size: 36px;
    }
    
    .preview-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .instructions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .template-download-btn {
        align-self: flex-start;
    }
}

/* Management Grid Layout */
.management-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.management-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 300px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--dark-color);
}

.management-section h2 {
    color: #2c3e50;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.management-section h2 i {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    -webkit-text-fill-color: #3498db;
}

/* Enhanced action buttons styling */
.employee-actions, .project-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.employee-actions button, .project-actions button {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.employee-actions button:hover, .project-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Success button styling */
.success-button {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.success-button:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
}

/* Regular button styling */
.main-button:not(.success-button):not(.danger-button) {
    background: white;
    color: #333;
    border: 1px solid #d1d5db;
    box-shadow: none;
    font-weight: normal;
}

.main-button:not(.success-button):not(.danger-button):hover {
    background: #f8f9fa;
    border-color: #9ca3af;
}

/* Enhanced table styling */
.table-container {
    background: transparent;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: visible;
    max-height: 70vh;
    width: 100%;
    margin: 0 auto;
}

/* Salary page specific table container */
.salary-page .table-container {
    overflow-y: visible;
    max-height: none;
    margin-top: 20px;
    min-height: 200px;
}

/* Custom scrollbar styling for table container */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.table-container::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

.table-container table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px; /* Ensure minimum width for all columns */
}

/* Salary table specific styling */
.salary-page .table-container table {
    min-width: 900px;
}

/* Salary table column widths */
.salary-page .table-container th:nth-child(1),
.salary-page .table-container td:nth-child(1) {
    width: 25%; /* Employee name */
    min-width: 150px;
}

.salary-page .table-container th:nth-child(2),
.salary-page .table-container td:nth-child(2) {
    width: 15%; /* Total Hours */
    min-width: 100px;
}

.salary-page .table-container th:nth-child(3),
.salary-page .table-container td:nth-child(3) {
    width: 15%; /* Rounded Hours */
    min-width: 100px;
}

.salary-page .table-container th:nth-child(4),
.salary-page .table-container td:nth-child(4) {
    width: 15%; /* Hourly Rate */
    min-width: 100px;
}

.salary-page .table-container th:nth-child(5),
.salary-page .table-container td:nth-child(5) {
    width: 15%; /* Total Salary */
    min-width: 100px;
}

.salary-page .table-container th:nth-child(6),
.salary-page .table-container td:nth-child(6) {
    width: 15%; /* Days Worked */
    min-width: 100px;
}

.table-container thead {
    background: transparent;
}

.table-container th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-container td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f3f4;
    color: #495057;
}

.table-container tbody tr:hover {
    background-color: rgba(248, 249, 250, 0.7);
    transition: background-color 0.2s ease;
}

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

/* Enhanced empty state styling */
.table-container tbody tr td[colspan] {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

.table-container tbody tr td[colspan] i {
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

/* Action buttons in table */
.edit-btn, .delete-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.edit-btn {
    color: #3498db;
    background-color: #e3f2fd;
}

.edit-btn:hover {
    background-color: #bbdefb;
    transform: scale(1.05);
}

.delete-btn {
    color: #e74c3c;
    background-color: #ffebee;
}

.delete-btn:hover {
    background-color: #ffcdd2;
    transform: scale(1.05);
}

/* Vertical stack layout for larger screens */
@media (min-width: 1200px) {
    .management-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 1200px;
    }

}

/* Medium screens - stack vertically but with more spacing */
@media (min-width: 768px) and (max-width: 1199px) {
    .management-grid {
        gap: 30px;
        margin-top: 25px;
        max-width: 1400px;
    }
    
    .management-section {
        padding: 25px;
    }
    
    .management-section h2 {
        font-size: 1.4rem;
    }
}

/* Enhanced page title styling */
.container h1 {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Small screens - compact layout */
@media (max-width: 767px) {
    .management-grid {
        gap: 20px;
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .management-section {
        padding: 20px;
        border-radius: 8px;
    }
    
    .management-section h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .employee-actions, .project-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .employee-actions button, .project-actions button {
        width: 100%;
        min-width: unset;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .table-container {
        overflow-x: auto;
        max-height: 60vh;
    }
    
    .table-container th,
    .table-container td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .container h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .container {
        padding: 20px 15px;
    }
}

/* Enhanced success notifications */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #27ae60;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-notification i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced modal styling */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    border-bottom: none;
}

.modal-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
    flex: 1;
    text-align: left;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.modal-body {
    padding: 30px 25px;
    background: #fff;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-footer {
    background: #f8f9fa;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Enhanced form styling for select dropdowns */
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select:hover {
    border-color: #3498db;
}

select option {
    padding: 10px;
    background-color: #fff;
    color: #495057;
}

/* Multi-select dropdown styling */
.multi-select-container {
    position: relative;
    width: 100%;
}

.multi-select-dropdown {
    position: relative;
    width: 100%;
}

.multi-select-display {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.multi-select-display:hover {
    border-color: #3498db;
}

.multi-select-display i {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.multi-select-display.open i {
    transform: rotate(180deg);
}

.multi-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
    min-width: 100%;
    width: max-content;
}

.multi-select-option {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    min-height: 44px;
    overflow: visible;
}

.multi-select-option:last-child {
    border-bottom: none;
}

.multi-select-option:hover {
    background-color: #f8f9fa;
}

.multi-select-option:hover label {
    color: #1976d2;
}

.multi-select-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
}

.multi-select-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.multi-select-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    user-select: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    min-width: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

.multi-select-display.has-selection {
    border-color: #3498db;
    background-color: #f8f9fa;
}

/* Modal-specific improvements for multi-select */
.modal .multi-select-options {
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Debug: Ensure labels are visible */
.multi-select-option label {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    color: #374151 !important;
    background: transparent !important;
}

.modal .multi-select-option {
    padding: 14px 16px;
    min-height: 48px;
}

.modal .multi-select-option:hover {
    background-color: #f0f9ff;
}

/* Responsive improvements for multi-select */
@media (max-width: 768px) {
    .multi-select-options {
        max-height: 150px;
        font-size: 14px;
    }
    
    .multi-select-option {
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .multi-select-option label {
        font-size: 14px;
    }
    
    .modal .multi-select-option {
        padding: 12px 14px;
        min-height: 44px;
    }
}

/* Language Switcher Styling */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-select {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Sansation', 'Noto Sans SC', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-select:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Language switcher for pages with outer-container */
.outer-container .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Language switcher responsive adjustments */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-select {
        padding: 6px 12px;
        font-size: 13px;
        padding-right: 30px;
    }
}

