/*
Script: Time Tracker Styles v1.1.10.23
FileName: time_tracker_styles.css
Author: Philippe Addelia
Company: CAND, LLC
Created: August 25, 2025 PST
Modified: September 03, 2025 PST
Preferred location: Modules\Time Tracker\css\time_tracker_styles.css
Purpose: Styling for Employee Time Tracker - Complete styles with enhanced responsive design
*/

/* ============================================================================
   GLOBAL STYLES AND RESET
   ============================================================================ */

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

body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px 30px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto; /* Don't grow or shrink */
    min-width: 0;
}

.header-center {
    flex: 1; /* Take remaining space */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.header-center .page-title {
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
    display: none; /* Hidden by default, shown when logoUrl is set */
}

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

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.header-right {
    flex: 0 0 auto; /* Don't grow or shrink */
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

/* Update company name to be more compact */
.header-left .company-name {
    font-size: 1.6rem; /* Slightly smaller */
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

.header-text .page-title {
    display: none;
}

/* Responsive adjustments for balanced header */
@media (max-width: 1024px) {
    .header-center .page-title {
        font-size: 1.2rem;
    }
    
    .header-left .company-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .header-top-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        justify-content: center;
    }
    
    .header-center .page-title {
        font-size: 1.1rem;
    }
    
    .header-button-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-button-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header-button {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.mode-indicator {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.mode-indicator.admin {
    background: #1e7e34;
    color: white;
}

.mode-indicator.developer {
    background: #6f42c1;
    color: white;
}

.mode-indicator.employee {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Header Buttons - Solid Colored Style */
.header-button {
    background: #007bff;
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

/* Help Button - Blue */
#helpButton {
    background: #007bff;
}

#helpButton:hover {
    background: #0056b3;
}

/* Community Button - Purple */
#communityButton {
    background: #6f42c1;
}

#communityButton:hover {
    background: #5a32a3;
}

/* Support Button - Green */
#supportButton {
    background: #28a745;
}

#supportButton:hover {
    background: #218838;
}

/* Exit Admin Button - Red */
#exitAdminButton {
    background: #dc3545 !important;
}

#exitAdminButton:hover {
    background: #c82333 !important;
}

/* Config Update Button - Teal/Cyan in form grid */
.config-update-button {
    background: #17a2b8;
}

.config-update-button:hover {
    background: #138496;
}



.header-button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-button-container {
    margin-left: auto;
}

/* Holiday Selection Button - Orange/Yellow */
#selectHolidaysButton {
    background: #fd7e14;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#selectHolidaysButton:hover {
    background: #e8690b;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* WebAuthn Enrollment Section Styles */
.webauthn-section {
    background: #e7f3ff;
    border: 1px solid #0070ba;
    border-radius: 8px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.webauthn-section h3 {
    color: #004085;
    margin-bottom: 15px;
}

.enrollment-content {
    max-width: 100%;
}

.troubleshooting-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.troubleshooting-section h4 {
    margin-bottom: 10px;
    color: #495057;
}

.troubleshooting-section ul {
    margin: 0;
    padding-left: 20px;
}

.enrollment-status {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.enrollment-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.enrollment-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.enrollment-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================================================
   LICENSE WATERMARK - v1.1.10.8 Update
   ============================================================================ */

.license-watermark {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.license-watermark.licensed {
    display: none !important;
}

.license-watermark:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.05);
}

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

/* ============================================================================
   MAIN CONTENT LAYOUT
   ============================================================================ */

.main-content {
    padding: 20px 30px; /* Reduced top/bottom padding from 30px to 20px */
    display: block !important;
    visibility: visible !important;
}

/* Section Management */
.section {
    display: none;
}

#employeeSection {
    display: block;
}

#adminSection.active {
    display: block;
}

#developerSection.active {
    display: block;
}

/* ============================================================================
   EMPLOYEE DASHBOARD
   ============================================================================ */

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Reduced gap from 20px to 15px */
    margin-bottom: 15px; /* Reduced margin from 20px to 15px */
}

/* Timer Section */
.timer-section {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    padding: 20px;
    border-radius: 16px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timer-display {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.timer-controls {
    margin-bottom: 20px;
}

.timer-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    min-width: 150px;
}

.timer-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.timer-button.stop-state {
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.timer-button.stop-state:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

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

/* Timer and Button Container - Button on left, timer on right */
.timer-and-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Updated timer display for horizontal layout */
.timer-and-button-container .timer-display {
    margin-bottom: 0; /* Remove bottom margin since it's now horizontal */
    flex-shrink: 0; /* Prevent timer from shrinking */
}

/* Updated timer controls for horizontal layout */
.timer-and-button-container .timer-controls {
    margin-bottom: 0; /* Remove bottom margin since it's now horizontal */
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .timer-and-button-container {
        gap: 20px;
    }
}

/* Consistent vertical spacing for dashboard sections */
.timer-section,
.stats-section {
    margin-bottom: 0; /* Remove any individual section margins */
}

/* Period details section spacing adjustment */
.period-details-section-below {
    background: #f8f9fa;
    padding: 15px 20px; /* Reduced top/bottom padding from 20px to 15px */
    margin-bottom: 15px; /* Reduced margin from 20px to 15px */
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Ensure Time Entries section has consistent spacing */
.time-entries-section {
    margin-top: 0; /* Remove any extra top margin */
}

@media (max-width: 480px) {
    .timer-and-button-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .timer-and-button-container .timer-display,
    .timer-and-button-container .timer-controls {
        margin-bottom: 0;
    }
}

/* Daily Counter */
.daily-counter {
    margin-bottom: 20px;
}

.daily-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.daily-progress {
    font-size: 1.4rem;
    font-weight: 600;
}

.progress-bar-small {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill-small {
    height: 100%;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 2px;
}

/* Daily header row - label on left, progress on right */
.daily-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

/* Updated daily label for horizontal layout */
.daily-header-row .daily-label {
    margin-bottom: 0; /* Remove bottom margin since it's now horizontal */
    flex-shrink: 0; /* Prevent label from shrinking */
}

/* Updated daily progress for horizontal layout */
.daily-header-row .daily-progress {
    flex-shrink: 0; /* Prevent progress from shrinking */
    text-align: right; /* Align progress text to the right */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .daily-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .daily-header-row .daily-progress {
        text-align: left; /* Reset text alignment on mobile */
    }
}

/* Category Selector in Timer */
.category-selector {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.category-selector select,
.category-selector input {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
}

.category-selector input {
    width: 280px; /* Enhanced project field size */
    flex-shrink: 0;
}

.category-selector select {
    min-width: 120px;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: transform 0.2s ease;
    min-width: 0; /* Allow items to shrink */
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact stat values for 4-column layout */
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Responsive adjustments for Period Summary */
@media (max-width: 1024px) {
    .stats-grid {
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px 6px;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* ============================================================================
   FORM STYLES
   ============================================================================ */

.form-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Enhanced Project Input */
.form-group input#project {
    width: 100%;
    min-width: 280px;
}

/* Project Suggestions */
.project-suggestions {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #e8f4f8;
}

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

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4facfe;
    color: #4facfe;
}

.btn-outline:hover {
    background: #4facfe;
    color: white;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* ============================================================================
   ENTRIES AND TABLES
   ============================================================================ */

.entries-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.entries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.export-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.export-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.export-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* View Controls */
.view-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.view-button {
    padding: 10px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #495057;
}

.view-button.active {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    color: white;
}

.view-button:hover:not(.active) {
    background: #dee2e6;
}

/* Entries List */
.entries-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
}

.no-entries {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    padding: 40px 20px;
    line-height: 1.6;
}

.entry-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #4facfe;
}

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

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

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

.entry-date {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.entry-duration {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.entry-project {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.entry-details {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.entry-category {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.entry-times {
    color: #6c757d;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.entry-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 8px;
    font-style: italic;
}

.entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* ============================================================================
   SORTABLE TABLE STYLES
   ============================================================================ */

.sortable-header {
    cursor: pointer;
    user-select: none;
    background-color: #f8f9fa;
    transition: background-color 0.2s;
    position: relative;
    padding: 10px 8px;
}

.sortable-header:hover {
    background-color: #e9ecef;
}

.sortable-header:active {
    background-color: #dee2e6;
}

/* Sort icons */
.sortable-header::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6c757d;
}

/* Sort button styling */
.sort-button {
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
    display: inline-block;
    font-size: 12px;
    user-select: none;
}

.sort-button:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0066cc;
}

.sort-button:active {
    background-color: rgba(0, 123, 255, 0.2);
}

/* Ensure table headers don't have pointer cursor */
.responsive-table th {
    cursor: default; /* Override any existing cursor: pointer */
}

/* Ensure entries-header has relative positioning for the absolute button */
.entries-header {
    position: relative;
}

/* Fullscreen Toggle Button - Inline with other export buttons */
.fullscreen-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
}

/* Fullscreen mode styles */
.entries-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    overflow-y: auto;
}

.entries-section.fullscreen .entries-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.entries-section.fullscreen .fullscreen-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.entries-section.fullscreen .fullscreen-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
}

/* Hide other sections when in fullscreen mode */
body.fullscreen-mode .dashboard,
body.fullscreen-mode .period-details-section-below,
body.fullscreen-mode .header {
    display: none !important;
}

body.fullscreen-mode .main-content {
    padding: 0 !important;
}

body.fullscreen-mode .container {
    max-width: none !important;
    border-radius: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* Remove previous absolute positioning styles */
.entries-header {
    position: relative; /* Keep this for any other absolute elements */
}

/* ============================================================================
   ADMIN STYLES
   ============================================================================ */

.control-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.import-section,
.analysis-section {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.primary-button,
.secondary-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.primary-button {
    background: white;
    color: #667eea;
}

.secondary-button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.view-toggle label {
    padding: 10px 20px;
    background: #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #495057;
}

.view-toggle input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    color: white;
}

/* Data Section */
.data-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.data-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.data-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.2rem;
}

/*
Script: Admin Fullscreen Styles
FileName: time_tracker_styles.css
Created: October 06, 2025 PST
Purpose: Fullscreen mode styles for admin data grid
Version: v1.1.10.1
*/

/* Admin Fullscreen mode styles */
.admin-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    border-radius: 0 !important;
    padding: 20px !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    margin: 0 !important;
    border: none !important;
}

.admin-fullscreen > div:first-child {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    background: #f8f9fa !important;
    padding: 15px 20px !important;
    margin: 0 0 20px 0 !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #e9ecef !important;
}

.admin-fullscreen .fullscreen-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.admin-fullscreen .fullscreen-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
}

/* Hide other sections when in admin fullscreen mode */
body.admin-fullscreen-mode .header {
    display: none !important;
}

/* Hide all admin content EXCEPT the fullscreen element */
body.admin-fullscreen-mode #adminSection > div > * {
    display: none !important;
}

/* Show only the parent container of the fullscreen element */
body.admin-fullscreen-mode #adminSection > div > div:has(.admin-fullscreen) {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the fullscreen element itself is visible */
body.admin-fullscreen-mode .admin-fullscreen {
    display: block !important;
    margin: 0 !important;
}

body.admin-fullscreen-mode .main-content {
    padding: 0 !important;
}

body.admin-fullscreen-mode .container {
    max-width: none !important;
    border-radius: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* Ensure data table uses full height in fullscreen */
.admin-fullscreen #teamEntriesContent {
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
}

/* ============================================================================
   MODAL STYLES
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close {
    color: rgba(255,255,255,0.8);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
}

.modal-buttons {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================================================
   HOLIDAY SELECTION MODAL STYLES
   ============================================================================ */

.holiday-selection-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.holiday-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.holiday-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.holiday-item input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.2);
    cursor: pointer;
}

.holiday-item label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

.holiday-item label strong {
    color: #495057;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.holiday-item label small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* ============================================================================
   LOGO PREVIEW STYLES
   ============================================================================ */

.logo-preview-status {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    background: rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.logo-preview-status.success {
    color: #155724;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.logo-preview-status.error {
    color: #721c24;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.logo-preview-status.loading {
    color: #004085;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    position: relative;
}

/* ============================================================================
   NOTIFICATION STYLES
   ============================================================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1001;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.notification-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

.notification button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================================
   SUPPORT MODAL STYLES
   ============================================================================ */

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

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

.support-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-modal-body {
    padding: 30px;
}

.support-info-box {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.support-form-group {
    margin-bottom: 20px;
}

.support-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.support-form-group input,
.support-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.support-form-group input:focus,
.support-form-group textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.support-form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Config Button in Form Grid */
.config-button-form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.config-button-form-group .config-update-button {
    margin-top: auto;
    align-self: flex-start;
}

/* Period Details Section Below Blue Area */
.period-details-section-below {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.period-details-section-below .period-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
}

.period-details-section-below .period-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.period-details-section-below .period-info-item strong {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.period-details-section-below .period-info-item span {
    color: #495057;
    font-size: 0.95rem;
}

.period-details-section-below .holidays-section {
    align-items: flex-start;
}

/* Hide employee period info bar in admin mode */
body.admin-mode .period-details-section-below,
body.admin-mode #periodDetailsSection,
body.admin-mode .period-info-grid:not(#payPeriodInfo .period-info-grid) {
    display: none !important;
}

/* Hide admin period bar in employee mode */
body.employee-mode #payPeriodInfo {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

 /* Responsive Stats Cards in Admin */
@media (max-width: 1400px) {
    /* Stack stats vertically on smaller screens */
    #adminSection .admin-content > div:first-child > div {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Make stats full width when stacked */
    #adminSection .admin-content > div:first-child > div > div:last-child {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Make stat cards stack in a single column on mobile */
    #adminSection div[style*="display: flex"][style*="gap: 10px"] {
        flex-direction: column !important;
    }
    
    /* Ensure config and export sections stack vertically */
    #adminSection div[style*="display: flex; gap: 20px; flex: 0 0 auto"] {
        flex-direction: column !important;
    }
}  

@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 12px; /* Reduced for mobile */
        margin-bottom: 12px; /* Consistent spacing */
    }
    
    .main-content {
        padding: 15px 20px; /* Further reduced for mobile */
    }
    
    .control-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 12px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header-top-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-button-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .period-details-section-below .period-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .header-button {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .timer-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-selector input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .entry-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-header,
    .modal-body,
    .modal-buttons {
        padding: 20px;
    }
    
    .button-group {
        justify-content: center;
    }
    
    .form-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-button-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header-button {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .config-button-form-group .config-update-button {
        width: 100%;
        justify-content: center;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .notification {
        max-width: 300px;
        font-size: 14px;
    }
    
    .view-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .view-toggle label {
        width: 200px;
        text-align: center;
    }
}

/* ============================================================================
   HYBRID CONFIGURATION SECTION STYLES
   ============================================================================ */

/* Hybrid Configuration Section Styling */
.hybrid-config-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: 2px solid rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.hybrid-config-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

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

.hybrid-config-section h3 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hybrid-config-section .section-subtitle {
    color: rgba(255,255,255,0.95) !important;
    position: relative;
    z-index: 1;
}

.hybrid-config-section .primary-button {
    background: white !important;
    color: #28a745 !important;
    border: 2px solid white;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.hybrid-config-section .primary-button:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hybrid-config-section .primary-button i {
    margin-right: 8px;
}

/* Community Button Styling (if you want specific styling) */
#communityButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#communityButton:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Status indicator styling */
#hybridConfigStatus {
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for header buttons */
@media (max-width: 768px) {

    
    .header-button {
        font-size: 0.85rem;
        padding: 8px 12px;
        min-width: auto;
    }
    
    .header-button i {
        margin-right: 4px;
    }
}

/* Enhanced button group styling */


.header-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
}

/* ============================================================================
   RESPONSIVE TABLE STYLES
   ============================================================================ */

/* Desktop: Normal Table Display */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 10px;
}

.responsive-table thead {
    background: #f8f9fa;
}

.responsive-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.responsive-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

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

.responsive-table .action-buttons {
    display: flex;
    gap: 5px;
}

.responsive-table .action-button {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.responsive-table .btn-edit {
    background: #28a745;
}

.responsive-table .btn-delete {
    background: #dc3545;
}

.responsive-table .action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tablet & Mobile: Card/Stack Display */
@media (max-width: 768px) {
    /* Hide table headers on mobile */
    .responsive-table thead {
        display: none;
    }
    
    /* Make each row a card */
    .responsive-table tbody tr {
        display: block;
        background: white;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Stack table cells */
    .responsive-table td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        padding-left: 35%;
    }
    
    /* Remove border from last cell */
    .responsive-table td:last-child {
        border-bottom: none;
    }
    
    /* Add labels using data-label attribute */
    .responsive-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        padding-right: 10px;
        font-weight: 600;
        color: #495057;
        text-align: left;
    }
    
    /* Special styling for action buttons on mobile */
    .responsive-table td[data-label="Actions"] {
        padding-left: 0;
        padding-top: 12px;
    }
    
    .responsive-table td[data-label="Actions"]:before {
        display: none;
    }
    
    .responsive-table .action-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    .responsive-table .action-button {
        flex: 1;
        max-width: 120px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .responsive-table tbody tr {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .responsive-table td {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .responsive-table td:before {
        position: static;
        display: block;
        width: 100%;
        padding-bottom: 5px;
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    .responsive-table .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .responsive-table .action-button {
        width: 100%;
        max-width: none;
        padding: 10px;
    }
}

/* ============================================================================
   DAILY SUMMARY TABLE STYLES
   ============================================================================ */

.daily-summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 10px;
}

.daily-summary-table thead {
    background: #f8f9fa;
}

.daily-summary-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.daily-summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

/* Column width controls for Daily Summary table */
.daily-summary-table th:nth-child(1),
.daily-summary-table td:nth-child(1) {
    min-width: 110px;
    width: 110px;
    white-space: nowrap;
}

.daily-summary-table th:nth-child(2),
.daily-summary-table td:nth-child(2) {
    min-width: 60px;
    width: 60px;
    white-space: nowrap;
}

.daily-summary-table th:nth-child(3),
.daily-summary-table td:nth-child(3) {
    min-width: 90px;
    width: 90px;
    text-align: center;
}

.daily-summary-table tbody tr:hover {
    background: #f8f9fa;
}

/* Holiday rows */
.daily-summary-table .holiday-row {
    background: #fff3cd;
}

.daily-summary-table .holiday-row:hover {
    background: #ffe69c;
}

/* Hours cell styling */
.hours-cell {
    font-weight: 600;
    color: #28a745;
}

/* Category badges */
.category-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 4px;
}

.category-badge:last-child {
    margin-right: 0;
}

/* No project indicator */
.no-project {
    color: #6c757d;
    font-style: italic;
}

/* Entry count */
.entry-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Summary footer */
.daily-summary-table tfoot {
    background: #f8f9fa;
    font-weight: 600;
}

.summary-total-row td {
    padding: 12px;
    border-top: 2px solid #dee2e6;
    border-bottom: none;
}

/* Responsive: Transform to cards on mobile */
@media (max-width: 768px) {
    /* Hide table headers */
    .daily-summary-table thead {
        display: none;
    }
    
    /* Make each row a card */
    .daily-summary-table tbody tr {
        display: block;
        background: white;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Stack table cells */
    .daily-summary-table td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        padding-left: 35%;
    }
    
    /* Remove border from last cell */
    .daily-summary-table td:last-child {
        border-bottom: none;
    }
    
    /* Add labels using data-label attribute */
    .daily-summary-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        padding-right: 10px;
        font-weight: 600;
        color: #495057;
        text-align: left;
    }
    
    /* Footer styling on mobile */
    .daily-summary-table tfoot tr {
        display: block;
        background: #f8f9fa;
        padding: 15px;
        margin-top: 15px;
        border-radius: 8px;
        border: 2px solid #dee2e6;
    }
    
    .summary-total-row td {
        display: block;
        padding: 5px 0;
        border: none;
    }
    
    .summary-total-row td:before {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .daily-summary-table tbody tr {
        padding: 12px;
    }
    
    .daily-summary-table td {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .daily-summary-table td:before {
        position: static;
        display: block;
        width: 100%;
        padding-bottom: 5px;
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    .category-badge {
        margin-bottom: 4px;
    }
}


/* Community Button Enhanced Styles - v1.1.10.1 */

/* Button variants for different Slack access options */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    text-decoration: none;
}

/* Enhanced modal content styling */
.community-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.access-method-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 4px solid #007bff;
}

.access-method-card h5 {
    margin-top: 0;
    color: #007bff;
    font-size: 16px;
}

.access-method-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.troubleshooting-card {
    background: #fff3cd;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #ffeaa7;
}

.troubleshooting-card h6 {
    margin-top: 0;
    color: #856404;
    font-size: 14px;
}

.troubleshooting-card ul {
    margin: 5px 0;
    padding-left: 20px;
}

.troubleshooting-card li {
    font-size: 14px;
    color: #856404;
    margin-bottom: 5px;
}

/* Mobile-responsive button layout */
@media (max-width: 768px) {
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    
    .access-method-card {
        margin: 15px 0;
        padding: 15px;
    }
}

/* Button grouping for better visual hierarchy */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

@media (max-width: 576px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .button-group .btn {
        width: 100%;
        margin: 5px 0;
    }
}


/* Utility class for toggling logo visibility */
.logo-hidden { display: none !important; }

/* Logo sizing & padding fix */
.company-logo {
    width: 50px;
    height: 50px;
    padding: 0;              /* remove inner white margin */
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;        /* no bleed */
}

/* Responsive rectangular logo support */
.logo-section { display: flex; align-items: center; gap: 15px; }
.company-logo.dynamic {           /* JS can add this class for dynamic width */
    width: auto;                  /* let width be set via JS */
    max-width: 220px;             /* safety cap */
    flex: 0 0 auto;               /* don't shrink */
}

.company-info { min-width: 0; }

.company-logo img,
.company-logo .logo-img,
#companyLogo {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* fully visible inside the square */
    display: block;          /* remove inline gap */
}

/* optional anti-aliasing */
.company-logo img { image-rendering: -webkit-optimize-contrast; }

/* Ensure logo visible by default */
.company-logo { display: block; visibility: visible; }
.logo-hidden { display: none !important; }

/*
 * Admin Page Style Fixes
 * Version: 1.1.10.21
 * Created: September 13, 2025 PST
 * Purpose: Improve button contrast and visibility in admin sections
 */

/* ============================================================================
   ADMIN BUTTON CONTRAST FIXES
   ============================================================================ */

/* Primary Buttons - High Contrast Blue/White */
#adminSection .primary-button,
.import-section .primary-button {
    background: #0056b3 !important;  /* Dark blue background */
    color: white !important;          /* White text */
    border: 2px solid #0056b3 !important;
    font-weight: 600;
}

#adminSection .primary-button:hover,
.import-section .primary-button:hover {
    background: #004494 !important;  /* Darker blue on hover */
    border-color: #004494 !important;
}

/* Secondary Buttons - High Contrast Gray/White */
#adminSection .secondary-button,
.import-section .secondary-button {
    background: #495057 !important;  /* Dark gray background */
    color: white !important;          /* White text */
    border: 2px solid #495057 !important;
    font-weight: 600;
}

#adminSection .secondary-button:hover,
.import-section .secondary-button:hover {
    background: #343a40 !important;  /* Darker gray on hover */
    border-color: #343a40 !important;
}

/* Configuration Management Buttons - High Contrast Colors */
.btn.btn-outline-primary[onclick*="showConfigureApp"] {
    background: #17a2b8 !important;  /* Teal background */
    color: white !important;          /* White text */
    border: 2px solid #17a2b8 !important;
}

.btn.btn-outline-primary[onclick*="showConfigureApp"]:hover {
    background: #138496 !important;
    border-color: #138496 !important;
}

.btn.btn-info[onclick*="showSummary"] {
    background: #6f42c1 !important;  /* Purple background */
    color: white !important;          /* White text */
    border: 2px solid #6f42c1 !important;
}

.btn.btn-info[onclick*="showSummary"]:hover {
    background: #5a32a3 !important;
    border-color: #5a32a3 !important;
}

.btn.btn-success[onclick*="showPublishConfigModal"] {
    background: #28a745 !important;  /* Green background */
    color: white !important;          /* White text */
    border: 2px solid #28a745 !important;
}

.btn.btn-success[onclick*="showPublishConfigModal"]:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

.btn.btn-warning[onclick*="clearAllData"] {
    background: #fd7e14 !important;  /* Orange background */
    color: white !important;          /* White text */
    border: 2px solid #fd7e14 !important;
}

.btn.btn-warning[onclick*="clearAllData"]:hover {
    background: #e8690b !important;
    border-color: #e8690b !important;
}

.btn.btn-danger[onclick*="exitAdminMode"] {
    background: #dc3545 !important;  /* Red background */
    color: white !important;          /* White text */
    border: 2px solid #dc3545 !important;
}

.btn.btn-danger[onclick*="exitAdminMode"]:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
}

/* Remove gradient backgrounds from admin sections for better contrast */
#adminSection .import-section,
#adminSection .analysis-section,
#adminSection .control-section > div {
    background: #f8f9fa !important;  /* Light gray background */
    color: #212529 !important;       /* Dark text */
}

#adminSection .section-title,
#adminSection h3 {
    color: #212529 !important;       /* Dark text for headers */
}

#adminSection .section-subtitle,
#adminSection p {
    color: #495057 !important;       /* Medium gray for subtitles */
}

/* Hide unwanted elements in admin page */
#adminSection .section-subtitle,
#adminSection p.section-subtitle {
    display: none !important;  /* Hide descriptive text */
}

/* Hide Select Holiday button if it exists in admin section */
#adminSection #selectHolidaysButton,
#adminSection button[onclick*="selectHolidays"] {
    display: none !important;
}

/* Ensure all admin buttons are properly styled */
#adminSection button {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Additional admin mode specific hiding */
body.admin-mode #holidayButton,
body.admin-mode #selectHolidaysButton,
body.admin-mode .holiday-button,
body.admin-mode button[onclick*="selectHoliday"],
body.admin-mode button[onclick*="showHoliday"] {
    display: none !important;
}

/* Ensure admin controls use full width in header */
body.admin-mode .header-controls#adminControls {
    width: 100%;
    margin: 0;
}

/* Hide days off button in admin mode */
body.admin-mode #daysOffButton,
body.admin-mode button[onclick*="generateDaysOff"] {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS - MERGED
   ============================================================================ */

/* ------- EXISTING: Header Admin Controls (when filters are in header) ------- */
@media (max-width: 1200px) {
    #adminControls {
        flex-wrap: wrap !important;
    }
    
    #adminControls .form-group {
        flex: 0 1 auto;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    body.admin-mode #adminControls {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    #adminControls .header-button {
        grid-column: span 2;
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Ensure header maintains proper height with compact filters */
.header {
    min-height: auto;
    padding: 15px 20px;
}

/* Prevent header from growing too tall */
.header-controls {
    max-width: 100%;
}

/* ------- NEW: Admin Section Content Layout (v1.1.10.36) ------- */
@media (max-width: 1200px) {
    /* Stats cards to 3 columns on tablets */
    #adminSection div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Stats cards to 2 columns on mobile */
    #adminSection div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Stack control sections vertically */
    #adminSection div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce padding on mobile */
    #adminSection > div > div {
        padding: 0 10px !important;
    }
    
    /* Make filters stack better on mobile */
    #adminSection div[style*="flex-wrap: wrap"] > div[style*="flex: 1"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 576px) {
    /* Single column stats on very small screens */
    #adminSection div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Stack all buttons vertically on very small screens */
    #adminSection button {
        width: 100% !important;
    }
}


/* ============================================================================
   COMPACT ADMIN LAYOUT STYLES
   ============================================================================ */

/* Reduce overall padding in admin section */
#adminSection {
    padding: 15px !important;
}

#adminSection .admin-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Compact headers */
#adminSection h2 {
    font-size: 1.5rem !important;
    margin: 0 0 15px 0 !important;
}

#adminSection h3, 
#adminSection h4 {
    font-size: 1.1rem !important;
    margin: 0 0 10px 0 !important;
    font-weight: 600;
}

/* Compact control sections */
#adminSection .control-section {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
}

/* Compact buttons throughout admin interface */
#adminSection button,
#adminSection .btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Small buttons for export */
#adminSection .btn-sm {
    padding: 5px 12px !important;
    font-size: 12px !important;
}

/* Exit Admin Mode button - inline and less prominent */
.btn-danger[onclick*="exitAdminMode"] {
    padding: 8px 20px !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* Compact stat cards */
#adminSection .stat-card {
    padding: 12px !important;
    border-radius: 6px !important;
}

#adminSection .stat-value {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
    margin-bottom: 5px !important;
}

#adminSection .stat-label {
    font-size: 0.85rem !important;
    color: #666 !important;
    font-weight: normal !important;
}

/* Compact form groups and filters */
#adminSection .form-group {
    margin-bottom: 10px !important;
}

#adminSection .form-group label {
    margin-bottom: 3px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#adminSection .form-control {
    padding: 6px 10px !important;
    font-size: 13px !important;
    height: auto !important;
}

/* Admin filter section */
.admin-filter-section {
    background: #f8f9fa !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

/* Data section */
#adminSection .data-section {
    background: #fff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
}

/* Reduce spacing between major sections */
#adminSection > div > div {
    margin-bottom: 15px !important;
}

#adminSection > div > div:last-child {
    margin-bottom: 0 !important;
}

/* Compact grid layouts */
#adminSection .control-section > div {
    gap: 8px !important;
}

/* Status messages */
#adminSection .status-message {
    font-size: 13px !important;
    padding: 4px 8px !important;
    display: inline-block;
}

/* Team entries content */
#teamEntriesContent {
    min-height: 100px !important;
    padding: 20px !important;
}

/* Button groups */
#adminSection .btn-group {
    gap: 8px !important;
}

/* Remove excessive margins */
#adminSection p {
    margin-bottom: 8px !important;
}

/* Hide descriptive subtitles to save space */
#adminSection .section-subtitle {
    display: none !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #adminSection .control-section {
        padding: 12px !important;
    }
    
    #adminSection button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    #adminSection .stat-card {
        padding: 8px !important;
    }
    
    #adminSection .stat-value {
        font-size: 1.4rem !important;
    }
    
    #adminSection .stat-label {
        font-size: 0.75rem !important;
    }
    
    /* Stack grid on mobile */
    #adminSection > div > div:first-child {
        grid-template-columns: 1fr !important;
    }
}



/* High contrast button styles remain the same but more compact */
#adminSection .btn-primary {
    background: #0056b3 !important;
    color: white !important;
    border: 1px solid #0056b3 !important;
}

#adminSection .btn-secondary {
    background: #6c757d !important;
    color: white !important;
    border: 1px solid #6c757d !important;
}

#adminSection .btn-success {
    background: #28a745 !important;
    color: white !important;
    border: 1px solid #28a745 !important;
}

#adminSection .btn-info {
    background: #17a2b8 !important;
    color: white !important;
    border: 1px solid #17a2b8 !important;
}

#adminSection .btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
    border: 1px solid #ffc107 !important;
}

#adminSection .btn-danger {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
}

/* Hover states */
#adminSection button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}