/* ================================================== */
/* CSS CUSTOM PROPERTIES (Design Tokens)              */
/* ================================================== */
:root {
    --accent:           #667eea;
    --accent-alt:       #764ba2;
    --accent-hover:     #5568d3;
    --bg-base:          #1a1a1a;
    --bg-card:          #2a2a2a;
    --bg-surface:       #333;
    --bg-input:         #1e1e1e;
    --text-primary:     #e0e0e0;
    --text-muted:       #aaa;
    --text-faint:       #888;
    --success:          #4caf50;
    --success-hover:    #45a049;
    --warning:          #ffc107;
    --danger:           #f44336;
    --danger-hover:     #d32f2f;
    --info:             #2196f3;
    --border:           #444;
    --border-light:     #555;
    --radius:           12px;
    --radius-sm:        8px;
    --shadow:           0 4px 12px rgba(0,0,0,.3);
    --shadow-lg:        0 8px 32px rgba(0,0,0,.4);
    --transition:       all 0.3s ease;
    --font:             -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Container */
.container {
    max-width: 1600px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #2a2a2a;
    min-height: 100vh;
    border-radius: 25px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header */
/* .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    box-sizing: border-box;
    width: 100%;
}

.header h1 {
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
} */

/* Logo styles */
.logo {
    height: 70px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.4));
}

.logo-login {
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.703));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-name {
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-role {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role.admin {
    background: #f44336;
    color: #fff;
}

.user-role.accountant {
    background: #2196F3;
    color: #fff;
}

.user-role.employee {
    background: #4CAF50;
    color: #fff;
}

.user-role.contractor {
    background: #9C27B0;
    color: #fff;
}

.user-role.mahatma {
    background: #FF5722;
    color: #fff;
}

.user-role.novawork {
    background: #00BCD4;
    color: #fff;
}

.user-role.ceo {
    background: #FF9800;
    color: #fff;
}

.user-role.roguewire {
    background: #000000;
    color: #ffffff;
}

/* Role badges (for tables) */
.role-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.role-badge.admin {
    background: #f44336;
    color: #fff;
}

.role-badge.accountant {
    background: #2196F3;
    color: #fff;
}

.role-badge.employee {
    background: #4CAF50;
    color: #fff;
}

.role-badge.contractor {
    background:#9C27B0;
;
    color: #fff;
}

.role-badge.mahatma {
    background: #FF5722;
    color: #fff;
}

.role-badge.novawork {
    background: #00BCD4;
    color: #fff;
}

.role-badge.ceo {
    background: #FF9800;
    color: #fff;
}

.role-badge.roguewire {
    background: #000000;
    color: #ffffff;
}

.logout-btn,
.manage-users-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover,
.manage-users-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Messages */
.success-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-message {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #e0e0e0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: #333;
    border: 2px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Custom File Input */
.custom-file-input {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.custom-file-input:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.custom-file-input i {
    font-size: 24px;
}

.custom-file-input span {
    font-weight: 500;
}

/* Date Display (Read-only) */
.date-display-readonly {
    padding: 12px 16px;
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-display-readonly i {
    color: #667eea;
    font-size: 18px;
}

.date-display-readonly span {
    flex: 1;
    font-weight: 500;
}

/* Calendar day clickable enhancement */
.calendar-day.clickable {
    cursor: pointer;
}

.calendar-day.clickable:hover {
    transform: scale(1.05);
    z-index: 10;
}

.calendar-day.selected:not(.has-upload):not(.confirmed) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
    border: 2px solid #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.calendar-day.selected.has-upload {
    border: 2px solid #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.calendar-day.selected.confirmed {
    border: 2px solid #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.login-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

.login-footer p {
    color: #aaa;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-footer small {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    display: block;
}

/* Employee Section */
.employee-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.status-section {
    background: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-section h2 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-alerts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-alert {
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-left: 4px solid;
}

.status-alert.success {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
}

.status-alert.success i {
    color: #4CAF50;
    font-size: 24px;
}

.status-alert.warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: #FFC107;
}

.status-alert.warning i {
    color: #FFC107;
    font-size: 24px;
}

.status-alert.error {
    background: rgba(244, 67, 54, 0.15);
    border-color: #f44336;
}

.status-alert.error i {
    color: #f44336;
    font-size: 24px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    color: #fff;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.alert-content p {
    color: #aaa;
    margin: 0;
    font-size: 14px;
}

.date-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-item {
    color: #ddd;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.date-item i {
    font-size: 12px;
    opacity: 0.7;
}

.date-item.more {
    color: #aaa;
    font-style: italic;
    justify-content: center;
}

.upload-section,
.calendar-section {
    background: #333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.employee-section .calendar-day {
    min-height: 60px;
}

.employee-section .day-number {
    font-size: 14px;
}

.upload-section h2,
.calendar-section h2 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Calendar */
.calendar {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.calendar-header h3 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.calendar-nav {
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-size: 16px;
    cursor: pointer;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.calendar-nav i {
    pointer-events: none;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #333;
    padding: 12px 0;
}

.calendar-weekdays div {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: transparent;
    padding: 15px;
    max-width: 100%;
}

.calendar-day {
    min-height: 100px;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
    transition-property: background, border-color, box-shadow, transform;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
    box-shadow: none;
}

.calendar-day:not(.empty):hover {
    background: #2a2a2a;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.calendar-day.today {
    border: 2px solid #667eea !important;
    box-shadow: 0 0 0 2px #667eea !important;
}

.calendar-day.day-incomplete {
    background: #d32f2f !important;
    border-color: #b71c1c !important;
}

.calendar-day.day-incomplete.today {
    border: 2px solid #667eea !important;
    box-shadow: 0 0 0 2px #667eea !important;
}

.calendar-day.day-pending {
    background: #ff9800 !important;
    border-color: #ff9123 !important;
}

.calendar-day.day-pending.today {
    border: 2px solid #667eea !important;
    box-shadow: 0 0 0 2px #667eea !important;
}

.calendar-day.day-complete {
    background: #388e3c !important;
    border-color: #2e7d32 !important;
}

.calendar-day.day-complete.today {
    border: 2px solid #667eea !important;
    box-shadow: 0 0 0 2px #667eea !important;
}

.calendar-day.has-upload {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.calendar-day.confirmed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
    border-color: rgba(76, 175, 80, 0.5);
}

.calendar-day.missing {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

.calendar-day.today.has-upload {
    background: rgba(255, 193, 7, 0.2);
}

.calendar-day.today.confirmed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
}

.day-number {
    font-size: 15px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 4px;
    width: 100%;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.day-stats {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.status-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.calendar-day.has-upload .status-icon {
    color: #FFC107;
}

.calendar-day.confirmed .status-icon {
    color: #4CAF50;
}

.calendar-day.missing .status-icon {
    color: #f44336;
}

/* Calendar entries (iPhone style) */
.calendar-entry {
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
}

.calendar-entry.pending {
    background: #FFC107;
    color: #000;
}

.calendar-entry.confirmed {
    background: #4CAF50;
    color: #fff;
}

.admin-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.calendar-section,
.filter-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #333;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.has-upload {
    background: rgba(255, 193, 7, 0.3);
    border: 2px solid #FFC107;
}

.legend-color.confirmed {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
}

.legend-color.missing {
    background: rgba(244, 67, 54, 0.3);
    border: 2px solid #f44336;
}

/* Filter Section */
.filter-section {
    background: #333;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-section h2 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-secondary {
    padding: 12px 20px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #666;
    transform: translateY(-2px);
}

/* Uploads Section */
.uploads-section {
    background: #333;
    padding: 25px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.uploads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.uploads-section h2 {
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uploads-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.uploads-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uploads-filter select {
    padding: 10px 15px;
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.uploads-filter select:hover {
    border-color: #667eea;
}

.uploads-filter select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 5px;
    background: #2a2a2a;
    padding: 4px;
    border-radius: 8px;
    border: 2px solid #555;
}

.view-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.view-btn.active {
    background: #667eea;
    color: #fff;
}

/* Week Section */
.week-section {
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.week-section.collapsed .uploads-table-container,
.week-section.collapsed .uploads-grid-container {
    display: none;
}

.week-section.collapsed .week-header {
    border-radius: 12px;
    margin-bottom: 0;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.week-header:hover {
    background: linear-gradient(135deg, #7688f0 0%, #8555b8 100%);
}

.week-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.week-toggle-icon {
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.week-info h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.week-dates {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
}

.week-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== VIEW TOGGLE BUTTONS ===== */
.view-toggle {
    display: flex;
    gap: 4px;
    background: #1f1f1f;
    border-radius: 8px;
    padding: 4px;
    margin-right: 15px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #888;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #333;
    color: #fff;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* ===== UPLOADS TABLE - COMPACT VIEW ===== */
.uploads-table-container {
    padding: 0;
    background: #2a2a2a;
    border-radius: 0 0 12px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.uploads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.uploads-table thead {
    background: #1f1f1f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.uploads-table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #aaa;
    border-bottom: 2px solid #444;
    white-space: nowrap;
}

.uploads-table thead th i {
    margin-right: 5px;
    color: #667eea;
}

.uploads-table tbody tr.upload-row {
    border-bottom: 1px solid #333;
    transition: all 0.2s ease;
}

.uploads-table tbody tr.upload-row:hover {
    background: #333;
}

.uploads-table tbody tr.upload-row.confirmed {
    background: rgba(76, 175, 80, 0.05);
}

.uploads-table tbody tr.upload-row.confirmed:hover {
    background: rgba(76, 175, 80, 0.1);
}

.uploads-table tbody td {
    padding: 10px;
    vertical-align: middle;
}

/* Column Specific Styles */
.col-preview {
    width: 50px;
    text-align: center;
}

.col-user {
    min-width: 120px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-date {
    width: 100px;
    white-space: nowrap;
}

.col-file {
    max-width: 250px;
    min-width: 150px;
}

.col-status {
    width: 120px;
    text-align: center;
}

.col-actions {
    width: 200px;
    text-align: right;
}

/* File Icon */
.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.file-icon.img {
    background: #1a1a1a;
    padding: 2px;
}

.file-icon.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.file-icon.pdf {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    font-size: 20px;
}

.file-icon.doc {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    font-size: 20px;
}

.file-icon.xls {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    font-size: 20px;
}

.file-icon.other {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
    font-size: 20px;
}

/* Filename */
.filename {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e0e0e0;
}

/* Status Badge in Table */
.uploads-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.uploads-table .status-badge.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.uploads-table .status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #3a3a3a;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-icon.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-icon.btn-view:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-icon.btn-download {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.btn-icon.btn-download:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-icon.btn-confirm {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-icon.btn-confirm:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-icon.btn-unconfirm {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.btn-icon.btn-unconfirm:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-icon.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.btn-icon.btn-delete:hover {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .col-file {
        max-width: 200px;
    }
    
    .col-actions {
        width: 180px;
    }
}

@media screen and (max-width: 992px) {
    .uploads-table {
        font-size: 13px;
    }
    
    .uploads-table thead th,
    .uploads-table tbody td {
        padding: 8px 6px;
    }
    
    .col-user {
        max-width: 120px;
    }
    
    .col-file {
        max-width: 150px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .uploads-table .status-badge .status-text {
        display: none;
    }
    
    .uploads-table .status-badge {
        padding: 5px 8px;
    }
}

@media screen and (max-width: 768px) {
    .uploads-table-container {
        border-radius: 0;
    }
    
    .uploads-table {
        font-size: 12px;
    }
    
    .uploads-table thead th {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .uploads-table thead th span {
        display: none;
    }
    
    .uploads-table thead th i {
        margin-right: 0;
    }
    
    .uploads-table tbody td {
        padding: 6px 4px;
    }
    
    .col-preview {
        width: 40px;
    }
    
    .file-icon {
        width: 32px;
        height: 32px;
    }
    
    .file-icon i {
        font-size: 16px;
    }
    
    .col-user {
        min-width: 80px;
        max-width: 100px;
        font-size: 11px;
    }
    
    .col-date {
        width: 80px;
        font-size: 11px;
    }
    
    .date-text {
        font-size: 10px;
    }
    
    .col-file {
        min-width: 100px;
        max-width: 120px;
    }
    
    .filename {
        font-size: 11px;
    }
    
    .col-status {
        width: 40px;
    }
    
    .col-actions {
        width: 120px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .action-buttons {
        gap: 3px;
    }
}

@media screen and (max-width: 480px) {
    .uploads-table {
        font-size: 11px;
    }
    
    .col-user {
        display: none;
    }
    
    .col-date {
        width: 60px;
    }
    
    .col-file {
        max-width: 100px;
    }
    
    .col-actions {
        width: 90px;
    }
    
    .btn-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* ===== UPLOADS GRID VIEW ===== */
.uploads-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 0 0 12px 12px;
}

@media screen and (max-width: 1200px) {
    .uploads-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
        padding: 12px;
    }
}

@media screen and (max-width: 768px) {
    .uploads-grid-container {
        padding: 10px;
        grid-template-columns: 1fr;
    }
}

.upload-card {
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.upload-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.upload-card.confirmed {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.05);
}

/* Mobile: Full width image in grid view */
@media screen and (max-width: 768px) {
    .uploads-grid-container .upload-card {
        display: flex;
        flex-direction: column;
    }
    
    .uploads-grid-container .card-preview {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
    
    .uploads-grid-container .card-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .uploads-grid-container .card-header {
        order: 2;
    }
    
    .uploads-grid-container .card-preview {
        order: 1;
    }
    
    .uploads-grid-container .card-body {
        order: 3;
    }
    
    .uploads-grid-container .card-actions {
        order: 4;
    }
}

.card-header {
    background: #2a2a2a;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
}

.card-user i {
    color: #667eea;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    font-size: 12px;
}

.card-date i {
    color: #667eea;
}

.card-preview {
    position: relative;
    width: 100%;
    height: 80px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-preview .file-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.card-preview .file-icon i {
    font-size: 20px;
}

.card-preview .file-icon span {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-body {
    padding: 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-filename {
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-status {
    display: flex;
    align-items: center;
}

.card-actions {
    padding: 6px 10px;
    background: #2a2a2a;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    border-top: 1px solid #333;
}

.card-actions .btn-icon {
    flex: 1;
    min-width: 40px;
}

/* ===== MOBILE LIST VIEW ===== */
.uploads-mobile-list {
    padding: 8px;
    background: #2a2a2a;
    border-radius: 0 0 12px 12px;
    display: none;
}

.mobile-list-item {
    background: #1f1f1f;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.mobile-list-item:hover {
    border-color: #667eea;
}

.mobile-list-item.confirmed {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.05);
}

.mobile-item-header {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.mobile-item-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #2a2a2a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
}

.mobile-item-info {
    flex: 1;
    min-width: 0;
}

.mobile-item-name {
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.mobile-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mobile-item-user,
.mobile-item-date {
    color: #aaa;
    font-size: 11px;
}

.mobile-item-user i,
.mobile-item-date i {
    color: #667eea;
    margin-right: 3px;
}

.mobile-item-status {
    display: inline-flex;
}

.mobile-item-status .status-badge {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 8px;
}

.mobile-item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-mobile {
    flex: 1;
    min-width: 60px;
    height: 36px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-mobile.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-mobile.btn-download {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.btn-mobile.btn-confirm {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-mobile.btn-unconfirm {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.btn-mobile.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* Grid View (Default) */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 0 0 12px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.uploads-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* List View */
.uploads-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uploads-grid.list-view .upload-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 20px;
}

.uploads-grid.list-view .file-preview {
    display: none;
}

.uploads-grid.list-view .upload-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uploads-grid.list-view .upload-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin: 0;
}

.uploads-grid.list-view .upload-user,
.uploads-grid.list-view .upload-date {
    font-size: 13px;
}

.uploads-grid.list-view .upload-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.uploads-grid.list-view .upload-filename {
    margin: 0;
    font-size: 14px;
}

.uploads-grid.list-view .upload-status {
    margin: 0;
}

.uploads-grid.list-view .status-badge {
    font-size: 12px;
    padding: 5px 10px;
}

.uploads-grid.list-view .upload-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    margin: 0;
    flex-shrink: 0;
}

.uploads-grid.list-view .btn-view,
.uploads-grid.list-view .btn-download,
.uploads-grid.list-view .btn-confirm,
.uploads-grid.list-view .btn-unconfirm,
.uploads-grid.list-view .btn-delete {
    padding: 8px 14px;
    font-size: 14px;
    gap: 6px;
    height: auto;
    min-width: 0;
    white-space: nowrap;
}

.uploads-grid.list-view .btn-view span,
.uploads-grid.list-view .btn-download span,
.uploads-grid.list-view .btn-confirm span,
.uploads-grid.list-view .btn-unconfirm span,
.uploads-grid.list-view .btn-delete span {
    display: inline;
}

.uploads-grid.list-view .upload-card:hover {
    transform: translateY(0);
    transform: translateX(4px);
}

.upload-card {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.upload-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.upload-card.confirmed {
    border-color: #4CAF50;
}

/* File Preview */
.file-preview {
    width: 100%;
    max-width: 100%;
    height: 120px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.file-preview img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.file-preview img.lazy-load {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    opacity: 0.5;
}

.file-preview img.lazy-loaded {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.file-preview.pdf,
.file-preview.doc,
.file-preview.xls,
.file-preview.other {
    flex-direction: column;
    gap: 6px;
}

.file-preview i {
    font-size: 36px;
}

.file-preview.pdf {
    color: #f44336;
}

.file-preview.doc {
    color: #2196F3;
}

.file-preview.xls {
    color: #4CAF50;
}

.file-preview.other {
    color: #9E9E9E;
}

.file-preview span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-user {
    color: #aaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-date {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-filename {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.upload-status {
    margin-bottom: auto;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.upload-status small {
    color: #888;
    font-size: 12px;
}

.upload-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}



.inline-form {
    display: inline-block;
    margin: 0;
}

.inline-form button {
    width: 100%;
}

.btn-view,
.btn-download,
.btn-confirm,
.btn-unconfirm,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 32px;
    line-height: 1;
    box-sizing: border-box;
}

.btn-view {
    background: #2196F3;
    color: #fff;
}

.btn-view:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.btn-download {
    background: #9C27B0;
    color: #fff;
}

.btn-download:hover {
    background: #7B1FA2;
    transform: translateY(-2px);
}

.btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.btn-confirm:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-unconfirm {
    background: #FF9800;
    color: #fff;
}

.btn-unconfirm:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

.btn-delete {
    background: #f44336;
    color: #fff;
}

.btn-delete:hover {
    background: #e53935;
    transform: translateY(-2px);
}

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    min-height: 300px;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.no-data p {
    font-size: 16px;
    color: #aaa;
}

/* Pending Count Box */
.pending-count-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 6px;
    margin-top: 15px;
    border-left: 3px solid #ff9800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pending-count-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 152, 0, 0.15);
    border-radius: 6px;
    flex-shrink: 0;
}

.pending-count-icon i {
    font-size: 18px;
    color: #ff9800;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.pending-count-content {
    flex: 1;
}

.pending-count-label {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 2px;
    font-weight: 500;
}

.pending-count-number {
    font-size: 20px;
    font-weight: 700;
    color: #ff9800;
    line-height: 1;
}

/* Recent Uploads List */
.recent-uploads {
    margin-top: 25px;
}

.recent-uploads h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #e0e0e0;
    padding-left: 5px;
}

.recent-list {
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 10px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recent-item.confirmed {
    border-left-color: #4CAF50;
}

.recent-item.pending {
    border-left-color: #FFC107;
}

.recent-item:hover {
    background: #333;
    transform: translateX(2px);
}

.recent-name {
    font-weight: 500;
    color: #e0e0e0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.recent-date {
    font-size: 13px;
    color: #888;
    margin-right: 10px;
    white-space: nowrap;
}

.recent-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.no-uploads {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .employee-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-section {
        grid-template-columns: 1fr;
    }
    
    .uploads-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    .container {
        margin: 10px auto;
        padding: 10px;
        border-radius: 15px;
        width: calc(100% - 20px);
        max-width: 100%;
    }
    
    .calendar-section,
    .status-section {
        padding: 15px;
    }
    
    .date-item {
        flex-wrap: wrap;
    }
    
    .date-item span {
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .header {
        padding: 15px;
        margin-bottom: 15px;
        gap: 12px;
    }
    
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header h1 {
        font-size: 18px;
        width: 100%;
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .header h1 i {
        font-size: 20px;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
    }
    
    .user-info > div:first-child {
        display: none;
    }
    
    .user-name {
        font-size: 13px;
        order: 1;
        flex: 0 0 auto;
    }
    
    .user-role {
        font-size: 11px;
        padding: 4px 10px;
        order: 2;
        flex: 0 0 auto;
    }
    
    .user-info > span[style*="background: #667eea"] {
        order: 3;
        margin-left: 0 !important;
    }
    
    .manage-users-btn,
    .change-password-btn,
    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
        order: 4;
        width: auto;
        justify-content: center;
        margin: 8px 4px 0 0 !important;
        min-width: 40px;
    }
    
    .manage-users-btn span,
    .change-password-btn span,
    .logout-btn span {
        display: none;
    }
    
    .manage-users-btn {
        display: inline-flex !important;
    }
    
    .manage-users-btn i,
    .logout-btn i,
    .change-password-btn i {
        font-size: 18px;
        margin: 0;
    }
    
    .upload-section,
    .calendar-section,
    .filter-section,
    .uploads-section,
    .status-section {
        padding: 15px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .uploads-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        padding: 6px;
        font-size: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 55px;
    }
    
    .day-number {
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 2px;
    }
    
    .day-stats {
        font-size: 9px;
        padding: 2px;
        margin-top: 2px;
        white-space: nowrap;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    .calendar-days {
        gap: 3px;
        padding: 5px;
    }
    
    .status-section {
        max-height: none;
        height: auto;
        overflow-y: visible;
    }
    
    .calendar-entry {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .calendar-weekdays {
        font-size: 11px;
        padding: 8px 0;
    }
    
    .calendar-header {
        padding: 10px;
        font-size: 14px;
    }
    
    .calendar-nav {
        padding: 6px 8px;
        min-width: 32px;
        font-size: 14px;
    }
    
    .status-icon {
        font-size: 10px;
        bottom: 4px;
        right: 4px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .employee-section {
        gap: 15px;
        width: 100%;
    }
    
    .container {
        margin: 10px;
        padding: 10px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    /* Center-align upload status alerts on mobile */
    .status-alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .alert-content {
        width: 100%;
    }
    
    .date-list {
        width: 100%;
    }
    
    .date-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 10px;
    }
    
    .date-item span {
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .uploads-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .uploads-grid.grid-view .upload-card {
        padding: 10px;
    }
    
    .uploads-grid.grid-view .file-preview {
        height: 80px;
        margin-bottom: 8px;
    }
    
    .uploads-grid.grid-view .file-preview i {
        font-size: 24px;
    }
    
    .uploads-grid.grid-view .upload-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .uploads-grid.grid-view .upload-user,
    .uploads-grid.grid-view .upload-date {
        font-size: 11px;
    }
    
    .uploads-grid.grid-view .upload-filename {
        font-size: 12px;
        margin-bottom: 8px;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
        line-height: 1.4;
    }
    
    .uploads-grid.grid-view .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .uploads-grid.grid-view .upload-actions {
        gap: 4px;
        flex-wrap: nowrap;
        display: flex !important;
    }
    
    .uploads-grid.grid-view .upload-actions .inline-form {
        display: flex !important;
        flex: 1 !important;
    }
    
    .uploads-grid.grid-view .upload-actions .inline-form:has(.btn-delete) {
        flex: 0.65 !important;
    }
    
    .uploads-grid.grid-view .btn-view,
    .uploads-grid.grid-view .btn-download {
        flex: 1 !important;
    }
    
    .uploads-grid.grid-view .btn-view,
    .uploads-grid.grid-view .btn-download,
    .uploads-grid.grid-view .btn-confirm,
    .uploads-grid.grid-view .btn-unconfirm,
    .uploads-grid.grid-view .btn-delete {
        padding: 6px;
        font-size: 16px;
        gap: 0;
        height: 36px;
        width: 100% !important;
        min-width: 0;
        justify-content: center;
    }
    
    .uploads-grid.grid-view .btn-view span,
    .uploads-grid.grid-view .btn-download span,
    .uploads-grid.grid-view .btn-confirm span,
    .uploads-grid.grid-view .btn-unconfirm span,
    .uploads-grid.grid-view .btn-delete span {
        display: none;
    }
    
    .calendar-weekdays div {
        font-size: 11px;
    }
    
    .view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .uploads-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .uploads-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .uploads-filter {
        width: 100%;
    }
    
    .uploads-filter select {
        width: 100%;
        min-width: auto;
    }
    
    /* Mobile List View */
    .uploads-grid.list-view .upload-card {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }
    
    .uploads-grid.list-view .upload-info {
        width: 100%;
    }
    
    .uploads-grid.list-view .upload-header {
        justify-content: space-between;
        gap: 10px;
    }
    
    .uploads-grid.list-view .upload-user,
    .uploads-grid.list-view .upload-date {
        font-size: 11px;
    }
    
    .uploads-grid.list-view .upload-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .uploads-grid.list-view .upload-filename {
        font-size: 12px;
        display: -webkit-box;
        line-clamp:2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-all;
        line-height: 1.4;
    }
    
    .uploads-grid.list-view .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .uploads-grid.list-view .upload-actions {
        width: 100%;
        gap: 4px;
    }
    
    .uploads-grid.list-view .upload-actions > * {
        flex: 1 !important;
    }
    
    .uploads-grid.list-view .upload-actions .inline-form:has(.btn-delete) {
        flex: 0.65 !important;
    }
    
    .uploads-grid.list-view .btn-view,
    .uploads-grid.list-view .btn-download,
    .uploads-grid.list-view .btn-confirm,
    .uploads-grid.list-view .btn-unconfirm {
        padding: 6px;
        font-size: 14px;
        gap: 0;
        height: 32px;
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    
    .uploads-grid.list-view .btn-delete {
        padding: 6px;
        font-size: 14px;
        gap: 0;
        height: 32px;
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    
    .uploads-grid.list-view .btn-view span,
    .uploads-grid.list-view .btn-download span,
    .uploads-grid.list-view .btn-confirm span,
    .uploads-grid.list-view .btn-unconfirm span,
    .uploads-grid.list-view .btn-delete span {
        display: none;
    }
}

/* User Management */
.user-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.password-input-group {
    display: flex;
    gap: 8px;
}

.password-input-group input {
    flex: 1;
}

.btn-generate {
    padding: 8px 16px;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-generate:hover {
    background: #7B1FA2;
    transform: translateY(-2px);
}

.user-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 14px;
}

.stat-item i {
    color: #667eea;
    font-size: 18px;
}

.stat-item strong {
    color: #fff;
    font-size: 16px;
}

.users-list-card {
    margin-top: 40px;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    height: 50px;
    vertical-align: middle;
}

.users-table th {
    height: 50px;
}

.users-table th {
    background: #333;
    color: #e0e0e0;
    font-weight: 600;
}

.users-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.users-table th.sortable:hover {
    color: #667eea;
}

.users-table th.sortable span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-table .sort-icon {
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.users-table tr:hover {
    background: #2a2a2a;
}

/* User Tabs */
.user-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
}

.user-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
}

.user-tab:hover {
    color: #667eea;
}

.user-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: block;
}

.tab-content.active {
    display: block;
}

.users-table td.actions {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 50px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.btn-small.btn-view {
    background: #2196F3;
    color: #fff;
}

.btn-small.btn-delete {
    background: #f44336;
    color: #fff;
}

.btn-small:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background: #2a2a2a;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.modal-content h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.modal-content p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .users-table td.actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    font-size: 14px;
    opacity: 0.9;
    flex: 1;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.footer-logo img {
    height: 20px;
    width: auto;
    vertical-align: middle;
}

.footer-logo:hover {
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

.lang-btn i {
    font-size: 14px;
}

/* Image Viewer Modal */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-viewer-content {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.viewer-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10002;
}

.viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-zoom-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.viewer-image-container {
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.viewer-image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.viewer-info {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.viewer-filename {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.viewer-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.viewer-actions .btn-view {
    display: none;
}

@media (max-width: 768px) {
    .viewer-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .viewer-zoom-controls {
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    
    .zoom-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .viewer-image-container {
        max-height: 85vh;
        max-width: 95vw;
    }
    
    .viewer-image-container img {
        max-height: 85vh;
        width: 100%;
        height: auto;
    }
    
    .viewer-filename {
        font-size: 16px;
    }
    
    .image-viewer-content {
        max-height: 95vh;
        width: 100%;
    }
    
    .viewer-info {
        padding: 15px;
    }
}

/* Custom Modal */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.custom-modal-content {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.custom-modal-icon.success {
    color: #4CAF50;
}

.custom-modal-icon.error {
    color: #f44336;
}

.custom-modal-icon.warning {
    color: #FFC107;
}

.custom-modal-icon.info {
    color: #667eea;
}

.custom-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.custom-modal-message {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.custom-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-btn-secondary {
    background: #555;
    color: #fff;
}

.modal-btn-secondary:hover {
    background: #666;
    transform: translateY(-2px);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: #fff;
}

.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

@media (max-width: 480px) {
    .custom-modal-content {
        padding: 30px 20px;
    }
    
    .custom-modal-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .custom-modal-title {
        font-size: 20px;
    }
    
    .custom-modal-message {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .modal-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .custom-modal-buttons {
        flex-direction: column;
    }
    
    .week-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 20px;
    }
    
    .week-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .week-info h3 {
        font-size: 18px;
    }
    
    .week-dates {
        font-size: 13px;
    }
    
    .week-count {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .week-toggle-icon {
        font-size: 16px;
    }
    
    .uploads-grid {
        padding: 15px;
    }
}

/* Excluded Dates Page Styles */
.page-title-section {
    margin: 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 2px solid #3a3a3a;
}

.page-title {
    color: #667eea;
    font-size: 28px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.page-subtitle {
    color: #999;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.excluded-form-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.form-title i {
    color: #667eea;
}

.form-help-text {
    color: #aaa;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 14px;
    padding: 14px 18px;
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
    border-radius: 6px;
}

.excluded-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-col-wide {
    grid-column: span 1;
}

.form-label {
    color: #ddd;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #667eea;
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: #222;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-hint {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}

/* User Search and Selection */
.user-search-container {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #ddd;
    font-size: 14px;
}

.user-option:hover {
    background: #2a2a2a;
    color: #fff;
}

.user-option i {
    color: #667eea;
    font-size: 14px;
}

.user-type-badge {
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(102, 126, 234, 0.2);
    color: #8b9aee;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.selected-users-list {
    margin-top: 16px;
}

.no-users-selected {
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px dashed rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ffc107;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-users-title {
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-users-title i {
    color: #66bb6a;
}

.selected-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.selected-user-item.user-everyone {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.selected-user-item.user-specific {
    background: rgba(102, 126, 234, 0.15);
    color: #8b9aee;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.selected-user-item i {
    font-size: 14px;
}

.user-type-tag {
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.remove-user-btn {
    padding: 4px 8px;
    background: rgba(211, 47, 47, 0.2);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 4px;
    color: #ef5350;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-user-btn:hover {
    background: rgba(211, 47, 47, 0.3);
    transform: scale(1.1);
}

.remove-user-btn i {
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.btn-submit {
    padding: 13px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Table Styles */
.excluded-list-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 24px;
}

.list-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.list-title i {
    color: #667eea;
}

.badge-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    margin-top: 16px;
}

.excluded-table {
    width: 100%;
    border-collapse: collapse;
    background: #1f1f1f;
}

.excluded-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.excluded-table thead th {
    padding: 14px 16px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.excluded-table thead th i {
    margin-right: 6px;
    opacity: 0.9;
}

.excluded-table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.15s ease;
}

.excluded-table tbody tr:hover {
    background: #262626;
}

.excluded-table tbody tr:last-child {
    border-bottom: none;
}

.excluded-table tbody td {
    padding: 14px 16px;
    color: #ddd;
    font-size: 14px;
}

.date-cell {
    font-family: 'Courier New', monospace;
    color: #fff;
    font-weight: 500;
}

.reason-cell {
    color: #aaa;
    font-style: italic;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 8px;
    margin-bottom: 6px;
}

.user-everyone {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.user-specific {
    background: rgba(102, 126, 234, 0.15);
    color: #8b9aee;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.user-exception {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.exception-users-list {
    margin-top: 15px;
}

.exception-users-list .selected-user-item {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.exception-info {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid rgba(244, 67, 54, 0.5);
    border-radius: 4px;
    font-size: 12px;
    color: #ef5350;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exception-info i {
    font-size: 11px;
}

.factory-mini-badge {
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.date-range-badge {
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.btn-delete-small {
    padding: 8px 12px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-delete-small:hover {
    background: #c62828;
    transform: scale(1.05);
}

.btn-edit-small {
    padding: 8px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-edit-small:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.btn-save-small {
    padding: 8px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-save-small:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-cancel-small {
    padding: 8px 12px;
    background: #777;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-cancel-small:hover {
    background: #666;
    transform: scale(1.05);
}

.action-buttons {
    white-space: nowrap;
}

.button-group {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.form-input-small {
    padding: 6px 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 13px;
}

.form-input-small:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

tr.editing {
    background: rgba(102, 126, 234, 0.1);
}

.inline-form {
    display: inline;
}

.empty-state {
    text-align: center;
    color: #777;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
    color: #4a4a4a;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
    color: #888;
}

/* Alert improvements */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border-color: rgba(76, 175, 80, 0.3);
}

.alert-error {
    background: rgba(211, 47, 47, 0.15);
    color: #ef5350;
    border-color: rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-col-wide {
        grid-column: span 1;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .excluded-table {
        font-size: 12px;
    }
    
    .excluded-table thead th,
    .excluded-table tbody td {
        padding: 10px 8px;
    }
    
    .list-title {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    .user-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-title-section {
        margin: 20px 0;
    }
    
    /* Mobile: single column for day detail view */
    .detail-users-grid {
        grid-template-columns: 1fr !important;
    }
    
    .day-detail-view {
        padding: 15px;
    }
    
    .day-detail-date {
        font-size: 16px;
    }
    
    .compact-user-box {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Day Detail View Styles */
.day-detail-view {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    border: 3px solid #000;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3a3a;
}

.day-detail-date {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.btn-close {
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-close:hover {
    background: #333;
    color: #ff5555;
}

.detail-users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    grid-auto-flow: row;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compact-user-box {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid;
}

.compact-user-box i {
    font-size: 18px;
    min-width: 20px;
}

.compact-user-box .user-name {
    color: #000;
    flex: 1;
}

.compact-user-box .btn-remove-user {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
}

.compact-user-box .btn-remove-user:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.compact-user-box .btn-remove-user i {
    font-size: 14px;
    min-width: auto;
}

.compact-user-box.missing-box {
    background: #ef5350;
    border-color: #c62828;
}

.compact-user-box.pending-box {
    background: #ff9800;
    border-color: #e65100;
}

.compact-user-box.confirmed-box {
    background: #4caf50;
    border-color: #2e7d32;
}

.compact-user-box.excluded-box {
    background: #757575;
    border-color: #424242;
    opacity: 0.85;
}

.compact-user-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Accountant Download Page Styles */
.download-section {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 30px auto;
}

.download-form h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-type-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #e5e7eb;
}

.radio-option:hover {
    background: #333;
    border-color: #667eea;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.btn-large {
    width: 100%;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
}

.info-box {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #667eea;
}

.info-box h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    color: #d1d5db;
    padding: 8px 0;
    border-bottom: 1px solid #3a3a3a;
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box ul li strong {
    color: #667eea;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert i {
    font-size: 20px;
}


/* Horizontal date filters for accountant page */
.download-section {
    margin-bottom: 40px !important;
}

.date-section {
    margin-bottom: 30px !important;
}

.section-label {
    margin-bottom: 15px !important;
    font-size: 16px !important;
}

.date-filters-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    justify-content: flex-start;
    max-width: 600px;
}

.date-filter-item {
    flex: 0 1 180px;
    min-width: 150px;
}

.date-filter-item label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

@media (max-width: 768px) {
    .date-filters-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-filter-item {
        width: 100%;
        flex: 1 1 auto;
    }
}

/* Advanced Filters Modal */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #2a2a2a;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item-full {
    grid-column: 1 / -1;
}

.filter-item label {
    color: #e0e0e0;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Select Styles */
.custom-select {
    width: 100%;
    padding: 12px 16px;
    background: #3a3a3a;
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e0e0e0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.custom-select:hover {
    border-color: #667eea;
    background-color: #404040;
}

.custom-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-select option {
    background: #3a3a3a;
    color: #e0e0e0;
    padding: 10px;
}

/* Custom Date Input Styles */
.custom-date-input {
    width: 100%;
    padding: 12px 16px;
    background: #3a3a3a;
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.custom-date-input:hover {
    border-color: #667eea;
    background-color: #404040;
}

.custom-date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-inputs input {
    flex: 1;
}

.date-range-inputs span {
    color: #888;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 30px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .date-range-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-range-inputs span {
        display: none;
    }
}
/* Empty Day View Styles */
.day-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.empty-message {
    font-size: 20px;
    color: #e5e7eb;
    margin: 0 0 25px 0;
    font-weight: 500;
}

/* Day Detail Add Casual Worker Button */
.day-detail-add-casual {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-add-casual {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-casual:hover {
    background: #5568d3;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-add-casual-faint {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    padding: 8px 12px;
    font-size: 16px;
}

.btn-add-casual-faint:hover {
    background: rgba(102, 126, 234, 0.25);
}

/* Casual Worker Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    padding: 20px;
    box-sizing: border-box;
}

.modal-dialog {
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 500px;
    width: 100%;
    margin: 10vh auto 20px auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #374151;
    position: relative;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 15px 0;
    overflow-y: auto;
    flex: 1;
}

.casual-worker-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid #374151;
}

.casual-worker-search i {
    color: #9ca3af;
}

.casual-worker-search-input {
    width: 100%;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    padding: 10px 12px;
    font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
    outline: none;
}

.casual-worker-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.casual-worker-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.casual-worker-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.casual-worker-item {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.casual-worker-item:hover {
    background-color: #374151;
}

.worker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.worker-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.worker-type {
    color: #9ca3af;
    font-size: 12px;
}

.casual-worker-item i {
    color: #9ca3af;
    margin-left: 10px;
}

.casual-worker-item:hover i {
    color: #667eea;
}

/* Custom Confirm Dialog */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-confirm-dialog {
    background: #1f2937;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.custom-confirm-header {
    padding: 20px 24px;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-confirm-header i {
    color: #f59e0b;
    font-size: 24px;
}

.custom-confirm-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.custom-confirm-body {
    padding: 24px;
}

.custom-confirm-body p {
    color: #e5e7eb;
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
}

.custom-confirm-footer {
    padding: 16px 24px;
    border-top: 1px solid #374151;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-confirm-footer .btn-cancel,
.custom-confirm-footer .btn-confirm {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.custom-confirm-footer .btn-cancel {
    background: #374151;
    color: #e5e7eb;
}

.custom-confirm-footer .btn-cancel:hover {
    background: #4b5563;
}

.custom-confirm-footer .btn-confirm {
    background: #ef4444;
    color: white;
}

.custom-confirm-footer .btn-confirm:hover {
    background: #dc2626;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        max-height: 80vh;
    }
    
    .day-detail-empty {
        padding: 30px 15px;
    }
    
    .empty-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .empty-message {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .btn-add-casual {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ================================================== */
/* NEW UNIFIED HEADER DESIGN                          */
/* ================================================== */

.header-new {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo .logo {
    height: 50px;
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.4));
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Navigation buttons - icon only on desktop */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.nav-btn i {
    font-size: 18px;
}

/* Hide text on desktop */
.nav-btn .nav-text {
    display: none;
}

/* Tooltip for desktop */
.nav-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* Logout button special styling */
.nav-btn.logout-nav {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

.nav-btn.logout-nav:hover {
    background: rgba(244, 67, 54, 0.5);
    border-color: rgba(244, 67, 54, 0.7);
}

/* User info in header */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-user-name {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-user-name i {
    font-size: 16px;
    opacity: 0.9;
    flex-shrink: 0;
}

.header-user-name .name-text {
    white-space: nowrap;
}

.header-user-role {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-user-role.admin { background: #f44336; color: #fff; }
.header-user-role.ceo { background: #FF9800; color: #fff; }
.header-user-role.accountant { background: #2196F3; color: #fff; }
.header-user-role.employee { background: #4CAF50; color: #fff; }
.header-user-role.contractor { background: #9C27B0; color: #fff; }
.header-user-role.mahatma { background: #FF5722; color: #fff; }
.header-user-role.novawork { background: #00BCD4; color: #fff; }
.header-user-role.roguewire { background: #000000; color: #fff; }

/* Factory badge */
.header-factory-badge {
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Factory filter dropdown */
.header-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-filter select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-filter select:hover,
.header-filter select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.header-filter select option {
    background: #2a2a2a;
    color: #e0e0e0;
}

/* Separator line */
.header-separator {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 4px;
}

/* Hamburger menu for mobile */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: auto;
    right: 2.5%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    width: 95%;
    max-width: 95%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 12px;
}

.mobile-menu .nav-btn .nav-text {
    display: inline;
    font-size: 14px;
}

.mobile-menu .nav-btn::after {
    display: none;
}

.mobile-menu .header-separator {
    width: 100%;
    height: 1px;
    margin: 4px 0;
}

.mobile-menu .header-filter {
    width: 100%;
    padding: 8px 0;
}

.mobile-menu .header-filter select {
    width: 100%;
    padding: 10px 12px;
}

/* Mobile menu wrapper for positioning */
.mobile-menu-wrapper {
    position: relative;
    display: none;
}

/* Mobile nav buttons for basic users */
.mobile-basic-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mobile-basic-nav .nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
}

.mobile-basic-nav .nav-btn .nav-text {
    display: none;
}

.mobile-basic-nav .nav-btn::after {
    display: none;
}

/* Desktop layout adjustments */
@media screen and (min-width: 993px) {
    .header-new {
        grid-template-columns: auto 1fr auto;
    }
    
    .header-nav {
        justify-content: flex-start;
        margin-left: 20px;
    }
    
    .header-user {
        justify-content: flex-end;
    }
}

/* Tablet responsive */
@media screen and (max-width: 992px) {
    .header-new {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        padding: 15px;
    }
    
    .header-logo {
        justify-content: flex-start;
    }
    
    .header-nav {
        justify-content: center;
        gap: 6px;
    }
    
    .header-user {
        justify-content: flex-end;
        gap: 10px;
    }
    
    .header-separator {
        display: none;
    }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .header-new {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px;
        gap: 12px;
    }
    
    .header-logo {
        order: 1;
        width: 100%;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .header-logo .logo {
        height: 65px;
    }
    
    /* Hide desktop nav on mobile */
    .header-nav {
        display: none;
    }
    
    /* Hide desktop filter on mobile */
    .header-user > .header-filter {
        display: none;
    }
    
    .header-user {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        position: relative;
    }
    
    /* Reserve space for hamburger button when present */
    .header-user:has(.mobile-menu-wrapper) {
        padding-right: 60px;
    }
    
    /* Show hamburger for admin/ceo/accountant */
    .mobile-menu-wrapper {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .hamburger-btn .fa-bars {
        display: block;
    }
    
    .hamburger-btn .fa-times {
        display: none;
    }
    
    .hamburger-btn.active .fa-bars {
        display: none;
    }
    
    .hamburger-btn.active .fa-times {
        display: block;
    }
    
    /* Show basic nav for non-admin/ceo/accountant users - new row centered */
    .mobile-basic-nav {
        display: flex;
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 4px;
    }
    
    .header-user-info {
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .header-user-name {
        font-size: 13px;
        max-width: none;
    }
    
    .header-user-name .name-text {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    
    .header-user-name i {
        display: inline-flex;
        font-size: 14px;
    }
    
    .header-user-role {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .header-factory-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media screen and (max-width: 480px) {
    .header-new {
        padding: 10px;
        gap: 10px;
    }
    
    .header-logo .logo {
        height: 65px;
    }
    
    .header-user {
        width: 100%;
    }
    
    .hamburger-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .mobile-basic-nav .nav-btn {
        width: 38px;
        height: 38px;
    }
    
    .header-user-info {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .header-user-name {
        font-size: 12px;
    }
    
    .header-user-name .name-text {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
    
    .header-user-role,
    .header-factory-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ================================================== */
/* TOAST NOTIFICATION SYSTEM (8.1)                    */
/* ================================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 40px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(.21,1.02,.73,1) forwards;
    cursor: pointer;
    max-width: 100%;
    word-break: break-word;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(110%); }
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
}

.toast-message {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.toast-close:hover { color: #fff; }

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-success .toast-icon { color: var(--success); }

.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-error .toast-icon { color: var(--danger); }

.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-warning .toast-icon { color: var(--warning); }

.toast.toast-info { border-left: 4px solid var(--info); }
.toast.toast-info .toast-icon { color: var(--info); }

@media (max-width: 480px) {
    #toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}

/* ================================================== */
/* CALENDAR — TODAY INDICATOR IMPROVEMENT (4.1)       */
/* ================================================== */
.calendar-day.today {
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(102,126,234,.35) !important;
}

/* "TODAY" label inside the day cell */
.today-label {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 3px;
    padding: 1px 4px;
    margin-top: 2px;
    line-height: 1.4;
}

/* ================================================== */
/* CALENDAR — DARKER EMPTY/WEEKEND DAYS (4.2)         */
/* ================================================== */
.calendar-day.weekend-day {
    background: #0e0e0e !important;
    border-color: #252525 !important;
    opacity: 0.55;
    cursor: default;
}

.calendar-day.weekend-day:hover {
    background: #0e0e0e !important;
    border-color: #252525 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ================================================== */
/* CALENDAR — DAY DETAIL PANEL ANIMATION (4.4)        */
/* ================================================== */
#day-detail-container {
    animation: slideDown 0.3s cubic-bezier(.21,1.02,.73,1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================== */
/* FACTORY MINI-BADGE in uploads table (6.6)          */
/* ================================================== */
.factory-mini-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
}

.factory-mini-badge.factory-ds    { background: rgba(33,150,243,.2);  color: #64b5f6; border: 1px solid rgba(33,150,243,.3); }
.factory-mini-badge.factory-kk    { background: rgba(156,39,176,.2);  color: #ce93d8; border: 1px solid rgba(156,39,176,.3); }
.factory-mini-badge.factory-feag  { background: rgba(255,152,0,.2);   color: #ffb74d; border: 1px solid rgba(255,152,0,.3); }
.factory-mini-badge.factory-other { background: rgba(158,158,158,.15); color: #bdbdbd; border: 1px solid rgba(158,158,158,.25); }

/* ================================================== */
/* SKELETON LOADING (2.3 comment + general)           */
/* ================================================== */
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: var(--radius-sm);
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-line.short  { width: 45%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full   { width: 100%; }

.skeleton-card {
    background: #2a2a2a;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid #333;
}

.skeleton-card .skeleton-thumb {
    height: 80px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ================================================== */
/* PASSWORD TOGGLE BUTTON (2.2)                       */
/* ================================================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 1;
}

.password-toggle:hover { color: var(--accent); }

/* ================================================== */
/* LOADING / SPINNER BUTTON STATE (2.3 + 5.3)         */
/* ================================================== */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================================================== */
/* FILE PREVIEW CARD — after selection (5.2)          */
/* ================================================== */
#file-preview-card {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(102,126,234,.1);
    border: 1px solid rgba(102,126,234,.3);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

#file-preview-card.visible {
    display: flex;
}

#file-preview-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
}

#file-preview-icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: rgba(0,0,0,.3);
}

#file-preview-info {
    flex: 1;
    min-width: 0;
}

#file-preview-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

#file-preview-size {
    color: var(--text-muted);
    font-size: 12px;
}

#file-preview-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

#file-preview-remove:hover { opacity: 0.7; }

/* ================================================== */
/* LOAD MORE WEEKS BUTTON (6.1)                       */
/* ================================================== */
#load-more-weeks-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: rgba(102,126,234,.1);
    border: 2px dashed rgba(102,126,234,.35);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

#load-more-weeks-btn:hover {
    background: rgba(102,126,234,.18);
    border-color: var(--accent);
    transform: translateY(-2px);
}

#load-more-weeks-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ================================================== */
/* ADMIN DASHBOARD — SHARED STYLES (7.1)              */
/* ================================================== */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: var(--success);
    font-size: 14px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.filters-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.filter-group input,
.filter-group select {
    padding: 8px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Audit Log Table */
.logs-table {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.logs-table table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th {
    background: var(--bg-surface);
    padding: 12px;
    text-align: left;
    color: var(--success);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.logs-table td {
    padding: 12px;
    border-bottom: 1px solid #2d2d2d;
    font-size: 13px;
}

/* ZEBRA STRIPING (7.4) */
.logs-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.025);
}

.logs-table tbody tr:hover {
    background: var(--bg-surface) !important;
}

/* Action badges */
.action-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.action-login         { background: #4CAF50; color: #fff; }
.action-logout        { background: #757575; color: #fff; }
.action-login_failed  { background: #f44336; color: #fff; }
.action-upload        { background: #2196F3; color: #fff; }
.action-delete        { background: #FF5722; color: #fff; }
.action-confirm       { background: #8BC34A; color: #fff; }
.action-unconfirm     { background: #FFC107; color: #000; }
.action-user_add      { background: #9C27B0; color: #fff; }
.action-user_edit     { background: #FF9800; color: #fff; }
.action-user_delete   { background: #D32F2F; color: #fff; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.pagination a:hover { background: var(--bg-surface); }
.pagination .current { background: var(--success); border-color: var(--success); }

/* Top users list */
.top-users-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.top-users-list li {
    padding: 8px 0;
    border-bottom: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.top-users-list li:last-child { border-bottom: none; }

/* Action stats */
.action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.action-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Back button */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    transition: background 0.2s;
}

.back-button:hover { background: #555; }

/* 7.3 — Missing uploads actionable link */
.missing-user-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.missing-user-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .logs-table {
        overflow-x: auto;
    }

    .logs-table table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================== */
/* EMPLOYEE CALENDAR MOBILE STACKING (9.1)            */
/* ================================================== */
@media (max-width: 640px) {
    .employee-section {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}