/* assets/style.css */

/* ===== CSS Reset and Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #2c3e50;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ===== Layout Containers ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Navigation Styles ===== */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: nowrap;
}

.nav-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex-shrink: 0;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-links span {
    color: #ecf0f1;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* .current-time styles removed - time display no longer in header */

/* ===== Button Styles ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.2;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

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

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

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Alert Styles ===== */
.alert {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 6px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #27ae60;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #e74c3c;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #f39c12;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

input[type="text"], 
input[type="email"], 
input[type="password"],
select, 
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus,
select:focus, 
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    background-color: white;
}

/* ===== Radio Button Styles ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background: #fafafa;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    margin: 0;
    position: relative;
}

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

.radio-item input[type="radio"] {
    margin: 0 0.75rem 0 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #3498db;
}

.radio-item:has(input[type="radio"]:checked),
.radio-item.selected {
    background-color: #e3f2fd;
    border-color: #3498db;
    box-shadow: 0 0 0 1px #3498db;
}

.radio-item-text {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.division-count {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* ===== Checkbox Styles ===== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background: #fafafa;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: #3498db;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span,
.checkbox-item:has(input[type="checkbox"]:checked) {
    background-color: #e3f2fd;
    border-color: #3498db;
}

/* ===== Job Form Styles ===== */
.job-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Enhanced filter container styling */
.filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.report-filters-inline {
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Better visual hierarchy for select options */
.filter-form select option {
    padding: 0.5rem;
    color: #2c3e50;
}

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

/* Add subtle animation to filters */
.filters {
    animation: slideInFilter 0.3s ease;
}

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

/* ===== Job Grid Styles ===== */
.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Hide old compact styles */
.job-details-compact,
.job-row,
.job-field {
    display: none !important;
}

.job-field strong {
    color: #2c3e50;
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Hide the old job-details if it exists */
.job-details {
    display: none;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Title Row with 3 Columns */
.job-title-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.job-title-col h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.job-designer-col {
    font-size: 0.9rem;
    color: #5a6c7d;
}

.job-status-col {
    text-align: right;
}

/* Details Grid with 3 Columns */
.job-details-grid {
    margin-bottom: 1rem;
}

.job-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

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

.job-col-1,
.job-col-2,
.job-col-3 {
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Inline data layout - keep labels and data on same line */
.job-col-1 strong,
.job-col-2 strong,
.job-col-3 strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline; /* Change from block to inline */
    margin-right: 0.5rem; /* Add spacing between label and data */
    margin-bottom: 0;
}

/* Special handling for department with division */
.job-col-1 .division-info {
    display: block;
    margin-top: 0.3rem;
    margin-left: 0;
}

.job-col-1 .division-info small {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.8rem;
}

/* Job Status Colors */
.job-card.status-submitted {
    border-left-color: #95a5a6;
}

.job-card.status-in_progress {
    border-left-color: #3498db;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.job-card.status-paused {
    border-left-color: #f39c12;
}

.job-card.status-review {
    border-left-color: #9b59b6;
}

.job-card.status-complete {
    border-left-color: #27ae60;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.job-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
    padding-right: 1rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

/* Status badge colors */
.status-badge {
    background: #ecf0f1;
    color: #2c3e50;
}

.status-submitted .status-badge {
    background: #95a5a6;
    color: white;
}

.status-in_progress .status-badge {
    background: #3498db;
    color: white;
}

.status-paused .status-badge {
    background: #f39c12;
    color: white;
}

.status-review .status-badge {
    background: #9b59b6;
    color: white;
}

.status-badge {
    background: #27ae60;
    color: white;
}

.status-complete {
    background: #27ae60;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.job-details {
    margin-bottom: 1rem;
}

.job-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.job-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.job-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    font-style: italic;
    color: #5a6c7d;
    margin: 1rem 0;
    border-left: 3px solid #3498db;
}

/* Job actions */
.job-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

/* ===== Timer Styles ===== */
.timer, .live-timer {
    margin-left: 2rem;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Enhanced timer styling for compact layout */
.live-timer {
    font-family: 'Courier New', monospace;
    background: #e3f2fd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    color: #1976d2;
    display: inline-block;
}

.live-timer.active {
    animation: pulse 2s infinite;
    background: #c8e6c9;
    color: #388e3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

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

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.large-modal {
    max-width: 800px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.modal-form {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

/* ===== Enhanced Authentication Pages ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-card {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
}

.auth-header {
    text-align: center;
    padding: 3rem 3rem 2rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.auth-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.auth-header h1 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.auth-form {
    padding: 0 3rem 2rem 3rem;
}

.auth-form .form-group {
    margin-bottom: 2rem;
}

.auth-form label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.auth-form label svg {
    margin-right: 0.75rem;
    opacity: 0.7;
    width: 18px;
    height: 18px;
}

.auth-form input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

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

.auth-form input::placeholder {
    color: #95a5a6;
    font-size: 1rem;
}

.auth-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.auth-btn svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.auth-btn:hover svg {
    transform: translateX(2px);
}

/* Enhanced Alert Styles for Auth */
.auth-card .alert {
    margin: 0 3rem 2rem 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
}

.auth-card .alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Auth Footer */
.auth-footer {
    padding: 2rem 3rem 2.5rem 3rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    margin: 0;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* ===== Data Tables ===== */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table .actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===== Admin Panel Styles ===== */
.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f5f5f5;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid #34495e;
    transition: background-color 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: #3498db;
    color: white;
}

.admin-nav-link .icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e9ecef;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    flex: 1;
}

.section-header .btn {
    margin-left: 2rem;
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.section-header .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 0; /* Remove margin */
    padding: 2rem; /* Keep padding for content */
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.recent-activity h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.activity-details strong {
    color: #2c3e50;
}

.activity-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.activity-time {
    color: #95a5a6;
    font-size: 0.85rem;
    text-align: right;
}

.data-table {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 0;
}

.settings-grid,
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.setting-card,
.export-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.setting-card h3,
.export-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.setting-info .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.info-label {
    font-weight: 500;
}

.info-value {
    color: #7f8c8d;
}

.setting-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.export-card .form-group {
    margin-bottom: 1.5rem;
}

.export-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.export-card .form-group input {
    margin-right: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===== Status Badges ===== */
.status-active {
    background: #27ae60;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-inactive {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ===== Loading States ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Loading state for auth button */
.auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Success animation */
@keyframes successPulse {
    0% { background-color: #27ae60; }
    50% { background-color: #2ecc71; }
    100% { background-color: #27ae60; }
}

.auth-btn.success {
    animation: successPulse 0.6s ease;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
    
    .nav-links span {
        font-size: 0.8rem;
    }
    
    /* .current-time styles removed - time display no longer in header */
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-group {
        gap: 0.25rem;
    }
    
    .radio-item {
        padding: 0.5rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-item input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
    }
    
    .job-form {
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-form {
        padding: 1rem;
    }
    
    /* Auth responsive */
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        max-width: 100%;
        margin: 0;
    }
    
    .auth-header {
        padding: 2.5rem 2rem 1.5rem 2rem;
    }
    
    .auth-form {
        padding: 0 2rem 1.5rem 2rem;
    }
    
    .auth-footer {
        padding: 1.5rem 2rem 2rem 2rem;
    }
    
    .auth-card .alert {
        margin: 0 2rem 1.5rem 2rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 0.95rem;
    }
    
    /* Admin responsive */
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .admin-nav-link {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #34495e;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header .btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .settings-grid,
    .export-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-small {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-badge {
        align-self: flex-end;
    }
    
    .container {
        padding: 0 0.25rem;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .auth-form {
        padding: 0 1.5rem 1rem 1.5rem;
    }
    
    .auth-footer {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .auth-card .alert {
        margin: 0 1.5rem 1rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-form input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .auth-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .filters,
    .job-actions,
    .btn,
    .modal {
        display: none !important;
    }
    
    .job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced button styling with proper spacing */
.btn {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Button sizes */
.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Action button containers */
.job-actions,
.table-actions,
.modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.job-actions .btn,
.table-actions .btn {
    margin: 0; /* Remove margin since we use gap */
}

.modal-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    justify-content: flex-end;
}

/* Status-specific button spacing */
.job-status-actions {
    display: inline-flex;
    gap: 0.375rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive button layout */
@media (max-width: 576px) {
    .job-actions,
    .table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .job-actions .btn,
    .table-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .nav-container h1 {
        font-size: 1.3rem;
    }
    
    .nav-links .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* .current-time styles removed - time display no longer in header */
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-links {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.job-card h3, .job-title {
    display: inline-block;
    margin-right: 2rem;
}

/* Modern Login Styles */
.modern-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.modern-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="25" r="0.3" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="0.4" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-header {
    text-align: center;
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
}


@keyframes shine {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-icon {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.login-header h1 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
}

.login-form {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3rem;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.5);
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
}

.form-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group:focus-within .input-icon {
    color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

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

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.error-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    animation: slideIn 0.3s ease;
}

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

.error-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Loading state */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}



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

/* Responsive */
@media (max-width: 480px) {
    .modern-login {
        padding: 0.5rem;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .login-header {
        padding: 2.5rem 2rem 1rem 2rem;
    }
    
    .login-form {
        padding: 1.5rem 2rem 2rem 2rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .form-input {
        padding: 1rem 1.25rem 1rem 2.75rem;
        font-size: 1rem;
    }
    
    .input-icon {
        left: 1rem;
    }
    
    .login-btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* Additional styles for change password functionality */
.success-alert {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
    animation: slideIn 0.3s ease;
}

.success-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.link-secondary {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-secondary:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Enhanced form validation styles */
.form-input:invalid {
    border-color: #e74c3c;
}

.form-input:valid {
    border-color: #27ae60;
}

/* Loading state for change password button */
.login-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}


/* Responsive adjustments for change password form */
@media (max-width: 480px) {
    .login-card {
        margin: 1rem;
    }
    
    .login-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .login-form {
        padding: 0 1.5rem 1rem 1.5rem;
    }
}

.change-password-card {
    max-width: 550px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.compact-form {
    padding: 1.5rem 2rem 2rem 2rem !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.compact-form .form-group {
    margin-bottom: 1rem;
}

.compact-form .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-form .form-input {
    padding: 0.9rem 1rem 0.9rem 2.75rem; /* Adjusted for compact form */
}

.compact-form .input-icon {
    left: 1rem;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.form-actions .login-btn {
    width: 100%;
    margin: 0;
}

.form-actions .link-secondary {
    font-size: 0.9rem;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .change-password-card {
        max-width: 100% !important;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .compact-form {
        padding: 1rem 1.5rem 1.5rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .login-form .form-input {
        padding: 1rem 1.25rem 1rem 2.75rem;
        font-size: 1rem;
    }
    
    .login-form .input-icon {
        left: 1rem;
    }
    
    .compact-form .form-input {
        padding: 0.8rem 0.9rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .compact-form .input-icon {
        left: 0.9rem;
        font-size: 0.9rem;
    }
}

/* Enhanced scrollbar for change password form */
.change-password-card::-webkit-scrollbar {
    width: 6px;
}

.change-password-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.change-password-card::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.change-password-card::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Loading state for change password button */
.login-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Enhanced form validation styles */
.form-input:invalid {
    border-color: #e74c3c;
}

.form-input:valid {
    border-color: #27ae60;
}

/* Responsive adjustments for job fields */
@media (max-width: 768px) {
    .job-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .job-field {
        white-space: normal;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .jobs-grid {
        gap: 1rem;
    }
    
    .job-row {
        gap: 0.3rem;
    }
    
    .job-field {
        font-size: 0.85rem;
    }
}

/* Fix for input field icon spacing and label positioning */
.login-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.login-form .form-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.25rem; /* Increased left padding for icon */
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.5);
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
}

.login-form .input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .job-title-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .job-status-col {
        text-align: left;
    }
    
    .job-details-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Keep inline layout on mobile */
    .job-col-1 strong,
    .job-col-2 strong,
    .job-col-3 strong {
        display: inline;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
    
    .job-col-1 .division-info {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 1rem;
    }
    
    .job-title-row {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .job-title-col h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .job-details-row {
        margin-bottom: 0.75rem;
    }
    
    .job-col-1,
    .job-col-2,
    .job-col-3 {
        font-size: 0.85rem;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .job-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Consolidated Filter Styles - Single Line Layout */
.filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

/* Clear All button styling */
.clear-all-btn {
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    background: #95a5a6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.filter-form select {
    min-width: 140px;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.filter-form select:hover {
    border-color: #95a5a6;
}

/* Hide the hidden inputs visually */
.filter-form input[type="hidden"] {
    display: none;
}

/* Reports Filter Inline Styles */


.report-filters-inline, .report-filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

/* Main filter form layout */
.reports-filter-form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Date filters - vertical stack (correct layout) */
.date-filters-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 150px;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-field label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.date-field input[type="date"] {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.date-field input[type="date"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}


.date-field label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.date-field input[type="date"] {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.date-field input[type="date"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.dropdown-filters-expanded {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    flex: 1;
}

/* Date filters horizontal layout for reports */
.date-filters-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 150px;
}

.date-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-row label {
    font-weight: 500;
    color: #2c3e50;
    min-width: 50px;
    font-size: 0.9rem;
}

.date-row input[type="date"] {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    flex: 1;
}

.date-row input[type="date"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* 4-column grid for all dropdowns including divisions */
.dropdown-filters-expanded-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    flex: 1;
}

/* Clear button styling - same size as date picker */
.date-filters-horizontal .clear-all-btn-reports {
    padding: 0.75rem 0.5rem; /* Same padding as date inputs */
    font-size: 0.9rem; /* Same font size as date inputs */
    border-radius: 8px;
    background: #95a5a6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%; /* Full width to match date inputs */
    text-align: center;
    height: auto; /* Let it match the natural height of date inputs */
    box-sizing: border-box; /* Ensure consistent sizing */
}

.date-filters-horizontal .clear-all-btn-reports:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Clear button styling for reports */
.reports-filter-form .btn {
    align-self: flex-end;
    margin-left: 1rem;
    white-space: nowrap;
}

.clear-all-btn-reports {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    background: #95a5a6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: start;
    height: fit-content;
}

.clear-all-btn-reports:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Division filter - separate row */
.division-filter-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.division-filter-row {
    max-width: 300px;
}

.division-filter-row .multi-select {
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
    cursor: pointer;
}

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

/* Improved dropdown filters layout */
.dropdown-filters {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.dropdown-filters .multi-select {
    flex: 1;
    min-width: 140px;
}

.dropdown-filters select {
    min-width: 140px;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
}

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

.dropdown-filters select:hover {
    border-color: #95a5a6;
}

.date-row label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.dropdown-filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.filter-info strong {
    color: #2980b9;
}

/* My Job Indicator */
.my-job-indicator {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    display: inline-block;
}

.job-card.my-job {
    border-left-width: 6px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

/* Completed Jobs Grid */
.completed-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin: 0; /* Remove margin */
    padding: 2rem; /* Keep padding for content */
}

.completed-job {
    opacity: 0.9;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.completed-job .job-title-col h3 {
    color: #27ae60;
}

/* Completed Jobs Horizontal Layout */
.completed-jobs-section {
    margin-top: 2rem;
}

.completed-jobs-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.completed-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.completed-job-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #27ae60;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.completed-job-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.completed-job-item h4 {
    margin: 0;
    color: #27ae60;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Override status colors for completed-job-item text readability */
.completed-job-item.status-complete,
.completed-job-item.status-complete *:not(.status-badge) {
    color: #7f8c8d !important; /* Light grey for readability */
    text-transform: none !important; /* Ensure text is not uppercase */
}

.completed-job-item.status-complete h4 {
    color: #27ae60 !important; /* Keep title green */
}

.completed-job-item.status-complete strong {
    color: #5a6c7d !important; /* Slightly darker grey for labels */
}


/* Member Performance Table Styling */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0; /* Remove margin */
    background: white;
    border-radius: 0; /* Remove border radius since it's inside a rounded container */
    box-shadow: none; /* Remove shadow since parent has shadow */
}

.report-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.report-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
}

.report-table tr:hover {
    background: #f8f9fa;
}

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


/* Add space between navbar and first report section */
.reports-grid {
    margin-top: 2rem; /* This creates space between navbar and first section */
}

/* Remove extra padding from report sections */
.report-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.report-section h2 {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    margin: 0; /* Remove bottom margin */
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.report-content {
    padding: 2rem;
}
.report-section .stats-grid,
.report-section .report-table,
.report-section .completed-jobs-section {
    padding: 2rem;
}

/* Department table goes directly under header */
.report-section .report-table {
    margin: 0;
}




/* Responsive adjustments */
@media (max-width: 1024px) {
    .filter-form {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-form select {
        min-width: 130px;
        font-size: 0.85rem;
    }

    .clear-all-btn-reports {
        align-self: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-form select {
        width: 100%;
        min-width: unset;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .filters {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .filter-form select {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .completed-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .report-table {
        font-size: 0.8rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.5rem;
    }
}

/* Responsive Design for Reports */
@media (max-width: 1024px) {
    .date-filters-horizontal {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
        min-width: auto;
    }

    .date-filters-horizontal .clear-all-btn-reports {
        margin-top: 1.5rem; /* Space it below the date fields */
        width: fit-content; /* Don't stretch on larger screens */
        padding: 0.75rem 1rem; /* Slightly wider padding for readability */
    }

    .reports-filter-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dropdown-filters-expanded-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .date-filters-vertical {
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
    }

    .dropdown-filters-expanded {
        grid-template-columns: repeat(2, 1fr);
    }

    .date-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        flex: 1;
    }
    
    .date-row label {
        min-width: auto;
    }    
    
    .date-filters {
        justify-content: flex-start;
    }
    
    .dropdown-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .reports-filter-form .btn {
        align-self: center;
        margin-left: 0;
    }

    .report-table {
        font-size: 0.9rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .date-filters-horizontal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reports-filter-form {
        gap: 1rem;
    }
    
    .date-filters {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .dropdown-filters {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dropdown-filters select {
        min-width: unset;
        width: 100%;
    }
    

    .dropdown-filters-expanded {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .date-filters-vertical {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-filters-row {
        flex-direction: column;
    }
    
    .date-row {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }

    .date-field {
        flex: 1;
        gap: 0.25rem;
    }
        
    .multi-select {
        min-width: unset;
        width: 100%;
    }

    .multi-select option {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }    

    .report-section h2 {
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .report-content {
        padding: 1rem 1.5rem;
    }
    
    .stats-grid,
    .completed-jobs-grid,
    .report-table {
        margin-top: 1.5rem;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .report-table {
        font-size: 0.8rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.5rem 0.4rem;
    }

    .reports-grid {
        margin-top: 1.5rem;
    }
    
    .stats-grid,
    .completed-jobs-grid {
        padding: 1.5rem;
    }
    
    /* Stack job details vertically on mobile */
    .job-title-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .job-status-col {
        text-align: left;
    }
    
    .job-details-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .job-col-1 strong,
    .job-col-2 strong,
    .job-col-3 strong {
        display: inline;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}


@media (max-width: 480px) {
    .report-filters-inline {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .date-filters input[type="date"],
    .dropdown-filters select {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .report-section h2 {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .stats-grid,
    .completed-jobs-grid,
    .report-table {
        margin-top: 1rem;
        padding: 0 1rem 1rem 1rem;
    }

    .report-content {
        padding: 1rem;
    }
    
    .reports-filter-form {
        gap: 1rem;
    }
    
    .multi-select {
        min-height: 35px;
        max-height: 100px;
        padding: 0.4rem;
    }
    
    .multi-select option {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    .completed-job-item {
        padding: 1rem;
    }
    
    .report-table {
        font-size: 0.75rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 0.4rem 0.3rem;
    }

    .reports-grid {
        margin-top: 1rem;
    }
    
    .stats-grid,
    .completed-jobs-grid {
        padding: 1rem;
    }
    
    .date-filters-vertical {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Enhanced Multi-select styling with better contrast */
.multi-select {
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.multi-select option {
    padding: 0.6rem 0.8rem;
    margin: 0.1rem 0;
    border-radius: 4px;
    cursor: pointer;
    color: #2c3e50;
    background: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.multi-select option:hover {
    background-color: #e8f4fd !important;
    color: #2c3e50 !important;
    font-weight: 600;
}

.multi-select option[value=""] {
    font-style: italic;
    color: #7f8c8d;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.3rem;
}

/* Multi-select option fixes */
.multi-select option[value=""]:not(:checked) {
    font-style: italic;
    color: #7f8c8d;
    background-color: #f8f9fa !important;
}

/* Ensure "All Members" etc. don't get selected */
.multi-select option[value=""]:checked {
    background: #f8f9fa !important;
    color: #7f8c8d !important;
    font-style: italic;
}

/* Better selected option styling */
.multi-select option:checked {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    font-weight: 600;
}

/* Selected option hover - darker blue */
.multi-select option:checked:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%) !important;
    color: white !important;
}


/* Clear button styling */
.filter-form .btn {
    align-self: flex-end;
    margin-left: 1rem;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .multi-select option:checked {
        background-color: #3498db !important;
        color: white !important;
    }
    
    .multi-select option:checked:hover {
        background-color: #2980b9 !important;
        color: white !important;
    }
}

/* Status timestamp styling */
.status-timestamp-info {
    margin: 0.75rem 0 0.5rem 0;
    padding: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
}

.timestamp-label {
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.timestamp-label strong {
    color: #34495e;
    font-weight: 600;
}

/* Different colors for different statuses */
.job-card.status-paused .status-timestamp-info {
    background: rgba(241, 196, 15, 0.1);
    border-left-color: #f1c40f;
}

.job-card.status-review .status-timestamp-info {
    background: rgba(155, 89, 182, 0.1);
    border-left-color: #9b59b6;
}

.completed-job-item .status-timestamp-info {
    background: rgba(39, 174, 96, 0.1);
    border-left-color: #27ae60;
}

@media (max-width: 768px) {
    .status-timestamp-info {
        margin: 0.5rem 0;
        padding: 0.4rem;
    }
    
    .timestamp-label {
        font-size: 0.8rem;
    }
}



.filters .date-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters .date-row label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 45px;
    font-size: 0.9rem;
}

.filters .date-row input[type="date"] {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.filters .date-row input[type="date"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}



.filters .dropdown-filters-expanded .multi-select {
    min-width: 0;
}

.dropdown-filters-expanded .multi-select {
    min-width: 0;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
    cursor: pointer;
}

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

.filters .clear-all-btn-reports:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Responsive adjustments for index filters */

@media (max-width: 768px) {

    .filters .date-row {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .filters .date-row input[type="date"] {
        flex: 1;
    }
   
    .dropdown-filters-expanded-four {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .date-filters-horizontal .clear-all-btn-reports {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 0.5rem; /* Keep same size as date inputs on mobile */
    }
}

@media (max-width: 480px) {
    .filters {
        padding: 1rem;
    }
    
    .date-row input[type="date"],
    .multi-select {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }

    .date-filters-horizontal .clear-all-btn-reports {
        padding: 0.6rem 0.4rem; /* Match the smaller mobile date input size */
        font-size: 0.85rem;
    }

}

/* Enhanced CSS to force 24-hour format in datetime picker popup */
.native-datetime {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Hide AM/PM field completely in WebKit browsers */
.native-datetime::-webkit-datetime-edit-ampm-field {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Force 24-hour format in the popup picker */
.native-datetime::-webkit-datetime-edit-hour-field {
    /* Ensure hour field uses 24-hour format */
}

/* Style the calendar icon */
.native-datetime::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-left: 2px;
    opacity: 0.6;
}

.native-datetime::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .native-datetime {
        -moz-appearance: none !important;
    }
}

/* Additional browser-specific overrides */
input[type="datetime-local"].native-datetime {
    /* Force browsers to respect 24-hour format */
    --time-format: '24h';
}

/* Role Badge Styles */
.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.role-badge.role-admin {
    background: #e74c3c;
    color: white;
}

.role-badge.role-manager {
    background: #f39c12;
    color: white;
}

.role-badge.role-designer {
    background: #3498db;
    color: white;
}

/* Completed Job Section Styles */
.completed-job-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.completed-job-section h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.section-description {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.form-help {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}
.time-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.time-input {
    width: 60px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
}

.time-format-hint {
    color: #666;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .time-picker,
    .datetime-picker {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Time picker and datetime picker styling */
.time-picker,
.datetime-picker {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    background-color: white;
    cursor: pointer;
}

.time-picker:focus,
.datetime-picker:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* TEMPORARY: Hide time tracking displays */
.time-display,
.job-time,
.worked-time,
.completion-time,
.timer,
.live-timer {
    display: none !important;
}