/* ================= CORE DESIGN SYSTEM ================= */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Variables - Dark Mode (Default) */
    --bg-app: #090d16;
    --bg-surface: #111827;
    --bg-surface-glass: rgba(17, 24, 39, 0.75);
    --bg-sidebar: #0f172a;
    --bg-header: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-accent-light: rgba(99, 102, 241, 0.15);
    
    --color-success: #10b981;
    --color-success-light: rgba(16, 185, 129, 0.15);
    --color-warning: #f59e0b;
    --color-warning-light: rgba(245, 158, 11, 0.15);
    --color-danger: #ef4444;
    --color-danger-light: rgba(239, 68, 68, 0.15);
    --color-info: #06b6d4;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Variables - Light Mode Override */
body.light-theme {
    --bg-app: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.8);
    --bg-sidebar: #ffffff;
    --bg-header: rgba(248, 250, 252, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --color-accent: #4f46e5;
    --color-accent-hover: #3730a3;
    --color-accent-light: rgba(79, 70, 229, 0.1);
    
    --color-success: #059669;
    --color-success-light: rgba(5, 150, 105, 0.1);
    --color-warning: #d97706;
    --color-warning-light: rgba(217, 119, 6, 0.1);
    --color-danger: #dc2626;
    --color-danger-light: rgba(220, 38, 38, 0.1);
    
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
}

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

html, body, .app-container {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--color-accent-hover);
}

.hidden {
    display: none !important;
}

/* ================= BUTTONS & INPUTS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: var(--color-warning);
    color: #ffffff;
}
.btn-warning:hover {
    background-color: var(--color-warning-light);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    transition: var(--transition-fast);
}
body.light-theme .form-group input, 
body.light-theme .form-group select, 
body.light-theme .form-group textarea {
    background-color: #ffffff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================= UTILITY CARDS & BADGES ================= */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.badge-success { background-color: var(--color-success-light); color: var(--color-success); }
.badge-warning { background-color: var(--color-warning-light); color: var(--color-warning); }
.badge-danger { background-color: var(--color-danger-light); color: var(--color-danger); }
.badge-info { background-color: rgba(6, 182, 212, 0.15); color: var(--color-info); }

/* ================= AUTH VIEW ================= */
.auth-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
                var(--bg-app);
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background-color: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(16px);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-logo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.logo-icon {
    color: var(--color-accent);
    filter: drop-shadow(0 4px 6px rgba(99, 102, 241, 0.3));
}

.error-banner {
    background-color: var(--color-danger-light);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.auth-footer p {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.auth-footer ul {
    list-style: none;
    color: var(--text-muted);
}

.auth-footer li {
    margin-bottom: 4px;
}

.auth-footer code {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 4px;
    color: var(--text-primary);
}

body.light-theme .auth-footer code {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ================= MAIN DASHBOARD STRUCTURE ================= */
.dashboard-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Header */
.app-header {
    height: 64px;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    backdrop-filter: blur(8px);
    z-index: 50;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}
body.light-theme .user-badge {
    background-color: rgba(0, 0, 0, 0.02);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

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

.user-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.user-role-badge {
    font-size: 9px;
    color: var(--text-muted);
}

/* Body layout */
.dashboard-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    height: calc(100% - 64px);
    max-height: calc(100% - 64px);
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 24px;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.nav-item:hover {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.nav-item.active {
    background-color: var(--color-accent);
    color: #ffffff;
}

.sidebar-stats h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}
.stat-row:last-child {
    border: none;
}

.sidebar-footer {
    margin-top: auto;
}

/* Content Area */
.dashboard-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: var(--bg-app);
    height: 100%;
    min-height: 0;
}

/* Tab Panels */
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

/* Mobile elements */
.mobile-bottom-nav, 
.mobile-day-selector, 
.mobile-date-header {
    display: none;
}

/* ================= PANEL HEADER ================= */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 24px;
    font-weight: 700;
}

.panel-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= SCHEDULE / CALENDAR ================= */
.date-navigator {
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.date-navigator .btn {
    border: none;
    background-color: transparent;
}
.date-navigator .btn:hover {
    background-color: var(--color-accent-light);
}

.week-label {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.calendar-wrapper {
    padding: 0;
    overflow: hidden;
}

.calendar-desktop-view {
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    table-layout: fixed;
}

.calendar-table th, 
.calendar-table td {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    vertical-align: top;
}

.calendar-table th:last-child, 
.calendar-table td:last-child {
    border-right: none;
}

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

.col-employee {
    width: 180px;
    text-align: left;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.05);
}
body.light-theme .col-employee {
    background-color: rgba(0, 0, 0, 0.02);
}

.col-day {
    font-weight: 600;
    text-align: center;
    font-family: var(--font-heading);
}

.day-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Employee cell in grid */
.employee-cell-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-cell-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.employee-cell-info {
    display: flex;
    flex-direction: column;
}

.employee-cell-name {
    font-size: 13px;
    font-weight: 600;
}

.employee-cell-role {
    font-size: 10px;
    color: var(--text-muted);
}

/* Grid time slot shifts */
.grid-time-slot {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shift-card {
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #ffffff;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-left: 4px solid rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shift-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.shift-card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 4px;
}

.shift-time {
    letter-spacing: -0.2px;
}

.shift-role {
    font-weight: 600;
    opacity: 0.9;
    font-size: 11px;
}

.shift-notes {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 4px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= EMPLOYEES DIRECTORY ================= */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.employee-profile-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.emp-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.emp-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.emp-card-title h3 {
    font-size: 16px;
    font-weight: 600;
}

.emp-card-title p {
    font-size: 12px;
    color: var(--text-muted);
}

.emp-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.emp-detail-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.emp-detail-row strong {
    color: var(--text-primary);
}

.emp-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* ================= PERSONAL SHIFTS TAB ================= */
.my-shifts-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.my-shifts-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.summary-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.my-shifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.personal-shift-card {
    border-left: 5px solid var(--color-accent);
    padding: 16px;
}

.personal-shift-date {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.personal-shift-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.personal-shift-details {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

/* ================= ANALYTICS TAB ================= */
.analytics-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analytics-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.chart-card {
    display: flex;
    flex-direction: column;
}

.chart-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Bar chart styles */
.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-color);
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 50px;
}

.chart-bar-container {
    height: 140px;
    width: 24px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: flex-end;
    position: relative;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(to top, var(--color-accent), var(--color-info));
    border-radius: var(--radius-full);
    transition: height 0.5s ease-in-out;
}

.chart-val {
    position: absolute;
    top: -24px;
    font-size: 11px;
    font-weight: 600;
}

.chart-label {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Role list */
.role-dist-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-dist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.role-bar-container {
    flex: 1;
    margin: 0 16px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.role-bar {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

.role-dist-name {
    width: 120px;
    font-weight: 500;
}

.role-dist-val {
    width: 60px;
    text-align: right;
    font-weight: 600;
}

/* Hours lists */
.hours-bar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hours-row {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.hours-name {
    width: 150px;
    font-weight: 500;
}

.hours-bar-outer {
    flex: 1;
    height: 16px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.hours-bar-inner {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.hours-text {
    width: 100px;
    text-align: right;
    font-weight: 600;
    margin-left: 16px;
}

/* ================= MODALS & OVERLAYS ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: modal-scale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modal-scale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

#shift-form, 
#employee-form, 
#password-form {
    padding: 24px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.modal-card h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

#delete-shift-btn, 
#delete-employee-btn {
    margin-right: auto; /* Push delete button to left */
}

/* Preset Colors Selection */
.color-picker-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-picker-wrapper input[type="color"] {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
}

.color-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-color-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.preset-color-btn:hover {
    transform: scale(1.15);
}

.preset-color-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

/* Warnings layout in dialog */
.warning-card {
    max-width: 440px;
    border-color: var(--color-warning);
}

.text-warning {
    color: var(--color-warning) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-icon {
    stroke: var(--color-warning);
}

.modal-body {
    padding: 20px 24px 10px 24px;
}

.warning-list {
    margin: 12px 0 20px 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.warning-list li {
    margin-bottom: 6px;
}

.warning-question {
    font-weight: 600;
    font-size: 14px;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}

.toast-container:empty {
    display: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    animation: toast-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--color-accent);
}

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

.toast-success { border-left-color: var(--color-success); }
.toast-warning { border-left-color: var(--color-warning); }
.toast-error { border-left-color: var(--color-danger); }

/* ================= RESPONSIVE STYLING (MOBILE) ================= */
@media (max-width: 768px) {
    .dashboard-sidebar {
        display: none !important; /* Hide sidebar completely */
    }

    .app-header {
        padding: 0 16px;
    }
    
    .header-actions #logout-btn span {
        display: none; /* Hide 'Sign Out' text, just show icon */
    }
    
    .dashboard-content {
        padding: 16px;
        padding-bottom: 80px; /* Space for bottom nav */
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .panel-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-navigator {
        justify-content: space-between;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 64px;
        background-color: var(--bg-sidebar);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: transparent;
        border: none;
        color: var(--text-secondary);
        font-family: var(--font-body);
        font-size: 10px;
        cursor: pointer;
    }

    .mobile-nav-item.active {
        color: var(--color-accent);
    }
    
    /* Toggle desktop/mobile calendar grids */
    .calendar-desktop-view {
        display: none !important;
    }
    
    .calendar-mobile-view {
        display: block !important;
        padding: 16px;
    }
    
    .mobile-day-selector {
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }
    
    .mobile-day-btn {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-full);
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-fast);
    }
    body.light-theme .mobile-day-btn {
        background-color: rgba(0, 0, 0, 0.03);
    }
    
    .mobile-day-btn.active {
        background-color: var(--color-accent);
        color: #ffffff;
        border-color: var(--color-accent);
    }
    
    .mobile-date-header {
        display: block;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 14px;
        color: var(--text-secondary);
    }
    
    .mobile-shift-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-shift-card {
        padding: 14px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border-left: 6px solid var(--color-accent);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-shift-info h4 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 2px;
    }
    
    .mobile-shift-info p {
        font-size: 12px;
        color: var(--text-secondary);
    }
    
    .mobile-shift-meta {
        text-align: right;
    }
    
    .mobile-shift-role {
        font-weight: 600;
        font-size: 11px;
    }
    
    .mobile-shift-notes {
        font-size: 10px;
        color: var(--text-muted);
        margin-top: 4px;
        font-style: italic;
    }

    /* Form grids collapse */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Analytics layout collapse */
    .analytics-row {
        grid-template-columns: 1fr;
    }
}

/* View Toggles */
.view-selector {
    display: flex;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 4px;
    margin-right: 8px;
}
.view-selector .btn {
    border: none;
    background-color: transparent;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}
.view-selector .btn.active {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* Logged-In User Row Highlighting */
.calendar-table tr.user-row {
    background-color: rgba(99, 102, 241, 0.08);
}
body.light-theme .calendar-table tr.user-row {
    background-color: rgba(79, 70, 229, 0.05);
}
.calendar-table tr.user-row .col-employee {
    border-left: 4px solid var(--color-accent);
}
.user-highlight-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Drag & Drop Visual Indication */
.col-grid-day.drag-over-cell {
    background-color: rgba(99, 102, 241, 0.12) !important;
    outline: 2px dashed var(--color-accent) !important;
    outline-offset: -2px;
}
.shift-card[draggable="true"] {
    cursor: grab;
}
.shift-card[draggable="true"]:active {
    cursor: grabbing;
}
.shift-card.dragging-card {
    opacity: 0.4;
    transform: scale(0.98);
}

/* Sidebar Budget Alerts */
.sidebar-alerts {
    margin-top: 6px;
}
.alerts-section {
    margin-bottom: 12px;
}
.alerts-section:last-child {
    margin-bottom: 0;
}
.alerts-section h4 {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.alert-emp-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}
body.light-theme .alert-emp-tag {
    background-color: rgba(0, 0, 0, 0.02);
}
.alert-emp-tag .emp-name {
    font-weight: 600;
}
.alert-emp-tag .emp-stat {
    font-weight: 700;
}
.alert-emp-tag.alert-danger-tag {
    border-left: 3px solid var(--color-danger);
}
.alert-emp-tag.alert-warning-tag {
    border-left: 3px solid var(--color-warning);
}
.alert-emp-tag.alert-zero-tag {
    border-left: 3px solid var(--text-muted);
}

/* Hourly Coverage Timeline view */
.calendar-coverage-view {
    padding: 24px;
    overflow-x: auto;
}

/* Outlook-style vertical hourly calendar */
.outlook-calendar {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 900px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.outlook-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

body.light-theme .outlook-header {
    background-color: rgba(0, 0, 0, 0.02);
}

.outlook-time-col-header {
    height: 45px;
    border-right: 1px solid var(--border-color);
}

.outlook-day-col-header {
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    padding: 12px 0;
    border-right: 1px solid var(--border-color);
}

.outlook-day-col-header:last-child {
    border-right: none;
}

.outlook-body {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    height: 750px;
    overflow-y: auto;
    position: relative;
}

.outlook-time-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .outlook-time-col {
    background-color: rgba(0, 0, 0, 0.01);
}

.outlook-time-label {
    height: 50px; /* Represents 1 hour */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px dashed var(--border-color);
    box-sizing: border-box;
}

.outlook-day-column {
    position: relative;
    height: 750px; /* Matches 15 hours * 50px = 750px */
    border-right: 1px solid var(--border-color);
    box-sizing: border-box;
}

.outlook-day-column:last-child {
    border-right: none;
}

.outlook-hour-cell {
    height: 50px; /* Matches 1 hour */
    border-bottom: 1px dashed var(--border-color);
    box-sizing: border-box;
}

/* Schedulable cells & hover helpers for managers */
.grid-time-slot.schedulable,
.outlook-hour-cell.schedulable {
    cursor: cell;
    position: relative;
    transition: background-color var(--transition-fast);
}

.grid-time-slot.schedulable:hover,
.outlook-hour-cell.schedulable:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
}

.grid-time-slot.schedulable:empty:hover::after,
.outlook-hour-cell.schedulable:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-accent);
    opacity: 0.6;
    pointer-events: none;
}

/* Outlook absolute positioned shift cards */
.outlook-shift-card {
    position: absolute;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    color: #ffffff;
    padding: 6px 8px;
    font-size: 11px;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-left: 3px solid rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.outlook-shift-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    z-index: 20;
}

.outlook-shift-title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.outlook-shift-time {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 1px;
}

.outlook-shift-role {
    font-size: 9px;
    opacity: 0.85;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.outlook-shift-notes {
    font-size: 9px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2px;
}

/* Resize handle */
.outlook-resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    cursor: ns-resize;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.outlook-shift-card:hover .outlook-resize-handle {
    opacity: 1;
}

.dragging-card {
    opacity: 0.5;
}

.drag-over-cell {
    background-color: rgba(99, 102, 241, 0.15) !important;
}
.coverage-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.legend-box.role-cashier { background-color: var(--color-warning); }
.legend-box.role-stocker { background-color: var(--color-accent); }
.legend-box.role-sales { background-color: #e84393; }
.legend-box.role-manager { background-color: var(--color-danger); }
.legend-box.gap-warning { 
    background-color: rgba(239, 68, 68, 0.08); 
    border: 1px solid var(--color-danger); 
}

/* Coverage Day Selector Bar */
.coverage-day-selector-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background-color: var(--bg-surface);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cov-day-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cov-day-btn:hover {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.cov-day-btn.active {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* Outlook Day View column override styling */
.outlook-calendar.view-day .outlook-header,
.outlook-calendar.view-day .outlook-body {
    grid-template-columns: 80px 1fr !important;
}

.outlook-calendar.view-day .outlook-day-col-header:not(.active-day-col) {
    display: none !important;
}

.outlook-calendar.view-day .outlook-day-column:not(.active-day-col) {
    display: none !important;
}

/* dragover self-drag and overlap prevention */
body.dragging-in-progress .outlook-shift-card,
body.dragging-in-progress .shift-card {
    pointer-events: none !important;
}

/* Outlook top resize handle */
.outlook-resize-handle-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    cursor: ns-resize;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 15;
}

.outlook-shift-card:hover .outlook-resize-handle-top {
    opacity: 1;
}

/* ================= SECURITY & AUDIT LOGS ================= */
.security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .security-grid {
        grid-template-columns: 360px 1fr;
    }
}

.security-grid.single-col {
    grid-template-columns: 1fr !important;
}

.security-card {
    position: static;
}

@media (min-width: 1024px) {
    .security-card {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

.security-form {
    margin-top: 16px;
}

.security-form .form-group {
    margin-bottom: 16px;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.logs-table-wrapper {
    width: 100%;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.logs-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 14px;
}

.logs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.logs-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.ua-detail {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    cursor: help;
}

body.light-theme .logs-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ================= RESTRICTED IPS VIEW ================= */
.text-right {
    text-align: right;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-info {
    font-weight: 500;
    user-select: none;
}

.permissions-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.perm-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.perm-checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.perm-label-container {
    display: flex;
    flex-direction: column;
}

.perm-label-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.perm-label-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

/* ================= TIME CLOCK PUNCH SYSTEM ================= */

/* Switch toggle styling */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition-normal);
    border-radius: 24px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-normal);
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--color-success);
}

input:checked + .slider-round:before {
    transform: translateX(24px);
}

/* Kiosk Fullscreen Interface */
#kiosk-view {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    padding: 24px;
}

.kiosk-container {
    width: 100%;
    max-width: 500px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 32px;
    text-align: center;
}

.kiosk-clock-section {
    margin-bottom: 24px;
}

.kiosk-time {
    font-size: 56px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.kiosk-date {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
}

.kiosk-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.kiosk-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kiosk-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #f8fafc;
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.kiosk-select:focus {
    border-color: #3b82f6;
}

.kiosk-select option {
    background: #0f172a;
    color: #f8fafc;
}

.pin-display-wrapper {
    position: relative;
    width: 100%;
}

.kiosk-pin-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #f8fafc;
    font-size: 24px;
    letter-spacing: 12px;
    text-align: center;
    outline: none;
    transition: border-color var(--transition-fast);
}

.kiosk-pin-input:focus {
    border-color: #3b82f6;
}

/* PIN Keypad styling */
.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.pin-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: #f8fafc;
    font-size: 20px;
    font-weight: 600;
    padding: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    outline: none;
    user-select: none;
}

.pin-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pin-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.18);
}

.pin-btn.action-btn {
    font-size: 14px;
    font-weight: 500;
    background: rgba(148, 163, 184, 0.1);
    text-transform: uppercase;
}

.pin-btn.action-btn:hover {
    background: rgba(148, 163, 184, 0.2);
}

.kiosk-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.kiosk-btn {
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    cursor: pointer;
    transition: filter var(--transition-fast), transform var(--transition-fast);
    border: none;
    outline: none;
    color: #ffffff;
}

.kiosk-btn:active {
    transform: scale(0.98);
}

.kiosk-btn-in {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.kiosk-btn-out {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}

.kiosk-btn:hover {
    filter: brightness(1.1);
}

.kiosk-footer {
    margin-top: 24px;
    font-size: 13px;
    color: #64748b;
}

.kiosk-signout-btn {
    color: #38bdf8;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    outline: none;
    padding: 0;
}

.kiosk-signout-btn:hover {
    color: #60a5fa;
}

/* Pulsing Status Dot for Active Staff */
.status-dot-active {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-dot-inactive {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    margin-right: 8px;
}

/* Active staff rows are clickable to open timecard */
#timeclock-status-container .employee-row-item {
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

#timeclock-status-container .employee-row-item:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Red badges for late punches */
.badge-late {
    background-color: var(--color-danger);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 6px;
    display: inline-block;
}

/* ================= PRINTING OVERLAYS ================= */
@media print {
    html, body {
        background-color: #ffffff !important;
        color: #000000 !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    .app-header, 
    .dashboard-sidebar, 
    .panel-actions, 
    .mobile-bottom-nav,
    .modal-overlay,
    .toast-container {
        display: none !important; /* Hide layout controls */
    }
    
    .dashboard-content {
        padding: 0 !important;
        margin: 0 !important;
        background-color: #ffffff !important;
    }
    
    .calendar-wrapper {
        border: none !important;
        box-shadow: none !important;
    }
    
    .calendar-desktop-view {
        display: block !important;
    }
    
    .calendar-table {
        min-width: 100% !important;
        table-layout: auto !important;
        border: 2px solid #000000 !important;
    }
    
    .calendar-table th, 
    .calendar-table td {
        border: 1px solid #000000 !important;
        padding: 8px !important;
        color: #000000 !important;
    }
    
    .col-employee {
        background-color: #f1f5f9 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .day-num {
        color: #334155 !important;
    }
    
    /* Modify shift cards to be readable in B&W print */
    .shift-card {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #94a3b8 !important;
        border-left: 5px solid #000000 !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    
    .shift-role {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .shift-notes {
        color: #334155 !important;
    }
}
