/* Professional Work Hours Tracker Styles */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fafafa;
    font-size: 14px;
    font-weight: 400;
}

/* === LOGIN PAGE === */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #e5e7eb;
}

.login-header h1 {
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
    text-align: center;
}

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

.login-btn {
    width: 100%;
    padding: 12px 16px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    background: #374151;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* === APP LAYOUT === */
.app-body {
    background: #fafafa;
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 12px 0;
}

.menu-item {
    margin: 0 12px 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.menu-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.menu-item.active .menu-link {
    background: #111827;
    color: white;
}

.menu-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ef4444;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background: #fef2f2;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    background: #fafafa;
    min-height: 100vh;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 4px;
    font-weight: 600;
}

.content-header p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.user-info {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* === BUNDY CLOCK === */
.bundy-clock-container {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.current-time {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.time-display {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.date-display {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.clock-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.clock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 100px;
    background: white;
    color: #374151;
}

.clock-btn:hover:not(:disabled) {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.clock-btn .btn-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.clock-in:not(:disabled) {
    border-color: #10b981;
    color: #059669;
}

.clock-in:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #059669;
}

.clock-out:not(:disabled) {
    border-color: #ef4444;
    color: #dc2626;
}

.clock-out:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #dc2626;
}

.break:not(:disabled) {
    border-color: #f59e0b;
    color: #d97706;
}

.break:hover:not(:disabled) {
    background: #fffbeb;
    border-color: #d97706;
}

.back:not(:disabled) {
    border-color: #3b82f6;
    color: #2563eb;
}

.back:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #2563eb;
}

.status-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

.status-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* === TRACK HOURS === */
.track-hours-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.track-hours-form-column,
.track-hours-list-column {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.employee-display {
    margin-bottom: 24px;
}

.employee-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employee-avatar .avatar-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.employee-details h3 {
    font-size: 16px;
    color: #111827;
    margin-bottom: 2px;
    font-weight: 600;
}

.employee-details p {
    color: #6b7280;
    margin-bottom: 2px;
    font-size: 13px;
}

.time-input-container,
.activity-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-input,
.activity-input {
    flex: 1;
    text-align: center;
}

.time-separator {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 12px 16px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover:not(:disabled) {
    background: #374151;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* === HOURS LIST === */
.hours-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.header-left h3 {
    color: #111827;
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 600;
}

.record-counter {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.list-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    user-select: none;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.2s;
}

.filter-checkbox:checked {
    background: #111827;
    border-color: #111827;
}

.filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    min-width: 120px;
    height: 36px;
}

.filter-select:focus {
    outline: none;
    border-color: #6366f1;
}

.hours-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border: 1px solid #e5e7eb;
}

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

.summary-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    display: block;
    font-size: 16px;
    color: #111827;
    font-weight: 600;
}

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

.hours-list::-webkit-scrollbar {
    width: 6px;
}

.hours-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.hours-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.hour-entry {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.hour-entry:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.employee-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.date-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.time-ago {
    font-size: 11px;
    color: #9ca3af;
}

.hour-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hour-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.activity-badge {
    background: #111827;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* === PROFILE === */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-card,
.settings-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-text {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.profile-details h3 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 4px;
    font-weight: 600;
}

.profile-details p {
    color: #6b7280;
    margin-bottom: 2px;
    font-size: 14px;
}

.settings-card h3 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 600;
}

/* === BUNDY ACTIVITY === */
.bundy-activity-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-top: 24px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.activity-header h3 {
    color: #111827;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.activity-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-btn {
    padding: 8px 12px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
}

.refresh-btn:hover {
    background: #374151;
}

.activity-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.activity-table thead {
    background: #f9fafb;
}

.activity-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

.activity-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
}

.activity-table tbody tr:hover {
    background: #f9fafb;
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.action-clock-in {
    background: #10b981;
}

.action-clock-out {
    background: #ef4444;
}

.action-break {
    background: #f59e0b;
}

.action-back {
    background: #3b82f6;
}

.time-text {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    color: #111827;
}

/* === GM TASK === */
.gm-task-content {
    padding: 20px 32px;
}

.gm-task-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.iframe-controls {
    background: #f9fafb;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #374151;
    height: 36px;
}

.control-btn:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auto-refresh-status {
    font-size: 13px;
    font-weight: 500;
    color: #059669;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.iframe-container {
    position: relative;
    height: calc(100% - 68px);
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.floating-countdown {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 100px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.countdown-display {
    text-align: center;
    margin-bottom: 12px;
}

.countdown-time {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.countdown-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 2px;
}

.countdown-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.countdown-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    background: white;
    color: #374151;
}

.countdown-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.countdown-btn.hidden {
    display: none;
}

/* === LOADING & ANIMATIONS === */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

/* === MESSAGES === */
.success-message,
.error-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* === SYNC STATUS === */
.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
    border: 1px solid;
    transition: all 0.2s;
}

.sync-status.sync-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.sync-status.sync-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.sync-icon {
    font-size: 14px;
}

.sync-text {
    flex: 1;
    font-weight: 500;
}

.refresh-sync-btn {
    padding: 2px 8px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    color: inherit;
    transition: all 0.2s;
}

.refresh-sync-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .track-hours-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .clock-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-display {
        grid-template-columns: 1fr;
    }
    
    .time-display {
        font-size: 36px;
    }
    
    .content-header h1 {
        font-size: 24px;
    }
    
    .hours-list-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .list-filters {
        justify-content: center;
    }
    
    .summary-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .activity-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .activity-filters {
        justify-content: center;
    }
    
    .gm-task-container {
        height: calc(100vh - 160px);
        min-height: 500px;
    }
    
    .floating-countdown {
        bottom: 16px;
        right: 16px;
        padding: 12px;
        min-width: 80px;
    }
    
    .countdown-time {
        font-size: 20px;
    }
    
    .countdown-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .bundy-clock-container,
    .track-hours-form-column,
    .track-hours-list-column,
    .profile-card,
    .settings-card,
    .bundy-activity-section {
        padding: 20px;
    }
    
    .clock-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .clock-btn {
        min-height: 80px;
        padding: 16px;
    }
    
    .time-input-container,
    .activity-input-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .time-separator {
        display: none;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .employee-card {
        flex-direction: column;
        text-align: center;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .action-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .gm-task-content {
        padding: 16px;
    }
    
    .iframe-controls {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .control-buttons {
        justify-content: center;
    }
    
    .gm-task-container {
        height: calc(100vh - 140px);
        min-height: 400px;
    }
    
    .floating-countdown {
        bottom: 12px;
        right: 12px;
        padding: 10px;
        min-width: 70px;
    }
    
    .countdown-time {
        font-size: 18px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    .countdown-btn {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
}

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

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* === DARK MODE SUPPORT (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Uncomment and customize for dark mode support
    body {
        background: #0f0f0f;
        color: #e5e5e5;
    }
    
    .sidebar {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .bundy-clock-container,
    .track-hours-form-column,
    .track-hours-list-column,
    .profile-card,
    .settings-card,
    .bundy-activity-section {
        background: #1a1a1a;
        border-color: #333;
    }
    */
}

/* === PRINT STYLES === */
@media print {
    .sidebar,
    .clock-actions,
    .iframe-controls,
    .floating-countdown,
    .control-buttons {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .bundy-clock-container,
    .track-hours-form-column,
    .track-hours-list-column,
    .bundy-activity-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .activity-table {
        font-size: 12px;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 8px 6px;
    }
}

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

/* Focus indicators for keyboard navigation */
.clock-btn:focus,
.submit-btn:focus,
.login-btn:focus,
.control-btn:focus,
.countdown-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .clock-btn,
    .submit-btn,
    .login-btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border-width: 2px;
    }
    
    .action-badge {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* === ENHANCED INTERACTIVE STATES === */
.menu-link:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.hour-entry:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Loading state improvements */
.submit-btn .loading,
.login-btn .loading {
    gap: 8px;
}

.submit-btn:disabled .btn-text,
.login-btn:disabled .btn-text {
    display: none;
}

.submit-btn:disabled .loading,
.login-btn:disabled .loading {
    display: flex;
}

/* Enhanced hover states for better feedback */
.hour-entry:hover .hour-value {
    color: #6366f1;
}

.employee-card:hover {
    border-color: #d1d5db;
}

.summary-item:hover .summary-value {
    color: #6366f1;
}

/* Improved spacing for better readability */
.content-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Enhanced visual hierarchy */
.hours-list-header .header-left h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.activity-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Better form validation states */
.form-control:invalid {
    border-color: #ef4444;
}

.form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control:valid {
    border-color: #10b981;
}

/* Enhanced table readability */
.activity-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.activity-table tbody tr:hover {
    background: #f0f9ff;
    transition: background-color 0.2s ease;
}

/* Improved badge design */
.action-badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Better status indicators */
.status-value {
    font-variant-numeric: tabular-nums;
}

.time-text {
    font-variant-numeric: tabular-nums;
}

/* Enhanced loading states */
.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Final refinements */
.sidebar-menu .menu-item:first-child {
    margin-top: 4px;
}

.sidebar-footer .menu-item:last-child {
    margin-bottom: 4px;
}

.clock-btn .btn-text {
    margin-top: 2px;
}

.employee-details {
    flex: 1;
}

.hour-details {
    align-items: flex-end;
}

.hour-time {
    display: flex;
    column-gap: 0.5rem;
}

.employee-info {
    display: flex;
    column-gap: 0.5rem;
}

/* End of Professional Styles */