/* Design System & Themes */
:root {
    /* Color Palette - Premium Slate & Blue Theme */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.1);
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --info: #06b6d4;

    /* Light Theme (Default) */
    --bg-app: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Tajawal', sans-serif;
    --radius: 12px;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-app: #090d16;
    --bg-card: #151c2c;
    --bg-sidebar: #0d121f;
    --sidebar-text: #64748b;
    --sidebar-text-active: #3b82f6;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --card-shadow-hover: 0 10px 20px -3px rgb(0 0 0 / 0.5), 0 6px 8px -4px rgb(0 0 0 / 0.5);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    transition: var(--transition);
    overflow-x: hidden;
    line-height: 1.6;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Layout (RTL - Right Side) */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
    border-left: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.version {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 2px 8px;
    border-radius: 20px;
    align-self: flex-start;
    margin-right: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-grow: 1;
}

.sidebar-mobile-selectors {
    display: none !important;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    color: var(--sidebar-text);
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
    transition: var(--transition);
    width: 100%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .nav-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    border-right: 3px solid var(--primary);
    box-shadow: none;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.employee-quick-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem;
    border-radius: var(--radius);
}

.employee-quick-info i {
    font-size: 1.5rem;
    color: var(--primary);
}

.emp-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.emp-role {
    font-size: 0.75rem;
    color: var(--sidebar-text);
}

/* Main Content Layout */
.main-content {
    flex-grow: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 100vh;
    overflow-y: auto;
}

/* Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.employee-selector-wrapper, .month-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.employee-selector-wrapper label, .month-selector-wrapper label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.employee-selector-wrapper select, .month-selector-wrapper input[type="month"] {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
}

.employee-selector-wrapper select:focus, .month-selector-wrapper input[type="month"]:focus {
    border-color: var(--primary);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: rotate(15deg);
}

/* Page Section Management */
.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page-section.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

/* Dashboard Page Styles */
.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.basic-salary-card::before { background-color: var(--info); }
.overtime-card::before { background-color: var(--success); }
.deduction-card::before { background-color: var(--danger); }
.net-salary-card::before { background-color: var(--primary); }

.card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.basic-salary-card .card-icon { background: rgba(6, 182, 212, 0.1); color: var(--info); }
.overtime-card .card-icon { background: var(--success-light); color: var(--success); }
.deduction-card .card-icon { background: var(--danger-light); color: var(--danger); }
.net-salary-card .card-icon { background: var(--primary-light); color: var(--primary); }

.card-details h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card-value {
    font-size: 1.6rem;
    font-weight: 800;
    display: inline-block;
    margin-top: 0.25rem;
}

.card-unit {
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.25rem;
    color: var(--text-muted);
}

.card-sub-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-primary { color: var(--primary) !important; }
.bold { font-weight: 700; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media(max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-chart-card, .dashboard-info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.dashboard-chart-card h3, .dashboard-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.stats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.stat-label i {
    width: 20px;
    color: var(--primary);
}

.stat-val {
    font-weight: 700;
}

/* Attendance, Employees & Reports Section Headers */
.table-actions-header, .report-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    transition: var(--transition);
}

.table-actions-header:hover, .report-controls:hover {
    box-shadow: var(--card-shadow-hover);
}

.table-actions-header h3, .report-controls h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.search-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    max-width: 600px;
}

.input-group {
    position: relative;
    flex-grow: 1;
}

.input-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-filter-wrapper select {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

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

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-muted);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-danger-outline:hover {
    background-color: var(--danger-light);
}

.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.95rem;
}

.attendance-table th, .attendance-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.attendance-table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 700;
    color: var(--text-muted);
}

[data-theme="dark"] .attendance-table th {
    background-color: rgba(255, 255, 255, 0.02);
}

.attendance-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.02);
}

/* Row Special Highlighting */
.attendance-table tr.weekend-row {
    background-color: rgba(245, 158, 11, 0.08) !important;
}

.attendance-table tr.weekend-row td {
    color: #b45309;
}

.attendance-table tr.holiday-row {
    background-color: rgba(6, 182, 212, 0.08) !important;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.25rem;
}

.badge-present { background-color: var(--success-light); color: var(--success); }
.badge-weekend { background-color: var(--warning-light); color: var(--warning); }
.badge-leave { background-color: rgba(6, 182, 212, 0.1); color: var(--info); }
.badge-absent { background-color: var(--danger-light); color: var(--danger); }

/* Delay Red Dot Indicator */
.delay-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--danger);
    margin-right: 4px;
    animation: pulse 2s infinite;
}

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

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn-icon-danger:hover {
    color: var(--danger);
    background-color: var(--danger-light);
}

/* Employees Dashboard Grid */
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.employee-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--border-color);
}

.employee-card.active-emp {
    border-top-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.employee-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.emp-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.employee-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.employee-card-details div {
    display: flex;
    justify-content: space-between;
}

.employee-card-details span.val {
    font-weight: 700;
    color: var(--text-main);
}

.employee-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* Reports & Print Styles */
.report-btn-group {
    display: flex;
    gap: 1rem;
}

.salary-slip-container {
    background-color: #ffffff;
    color: #1e293b;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

.slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo i {
    font-size: 2.5rem;
    color: #0f172a;
}

.company-logo h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.company-logo p {
    font-size: 0.8rem;
    color: #64748b;
}

.slip-title {
    text-align: left;
}

.slip-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.slip-title p {
    font-size: 0.9rem;
    color: #64748b;
}

.slip-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    background-color: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-weight: 700;
}

.slip-calculation-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.slip-calculation-table th, .slip-calculation-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.slip-calculation-table th {
    background-color: #f1f5f9;
    font-weight: 700;
}

.slip-calculation-table td.text-success { color: #059669 !important; }
.slip-calculation-table td.text-danger { color: #dc2626 !important; }

.slip-calculation-table tfoot td {
    border-bottom: none;
    padding-top: 1.5rem;
}

.slip-calculation-table .net-row {
    background-color: #f1f5f9;
}

.slip-calculation-table .net-row td {
    font-size: 1.2rem;
    padding: 1.25rem;
    border-top: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
}

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }

.slip-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.signature-block {
    width: 200px;
    text-align: center;
}

.signature-block p {
    font-weight: 600;
    font-size: 0.95rem;
}

.signature-line {
    margin-top: 2.5rem;
    border-bottom: 1px dashed #64748b;
}

/* Settings Page Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

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

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* Modal Overlay Styles */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeInModal 0.2s ease-out;
}

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

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

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

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.01);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-footer {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-right: 4px solid var(--primary);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 250px;
}

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

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

/* ============================================
   AUTOMATIC FEATURES - NEW ADDITIONS v2.1
   ============================================ */

/* Live Digital Clock Widget in Sidebar */
.live-clock-widget {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    margin-top: 1.5rem;
}

.clock-time {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: clockPulse 2s ease-in-out infinite;
}

@keyframes clockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.clock-date {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Quick Stamp Widget in Sidebar Footer */
.quick-stamp-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.quick-stamp-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quick-stamp-status {
    font-size: 0.7rem;
    color: var(--sidebar-text);
    margin-bottom: 0.6rem;
    padding: 4px 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
}

.quick-stamp-btns {
    display: flex;
    gap: 0.4rem;
}

.btn-stamp {
    flex: 1;
    padding: 0.5rem 0.4rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.btn-stamp.checkin {
    background: var(--success);
    color: #fff;
}

.btn-stamp.checkin:hover {
    background: #059669;
    transform: scale(1.04);
}

.btn-stamp.checkout {
    background: var(--danger);
    color: #fff;
}

.btn-stamp.checkout:hover {
    background: #dc2626;
    transform: scale(1.04);
}

/* Attendance Action Bar Extra Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
    border: none;
}

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

.btn-danger-solid {
    background-color: var(--danger);
    color: #ffffff;
    border: none;
}

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

/* Today's Row Highlight in Attendance Table */
.attendance-table tr.today-row {
    background: linear-gradient(90deg, rgba(59,130,246,0.06) 0%, rgba(59,130,246,0.02) 100%) !important;
    border-right: 3px solid var(--primary);
}

.attendance-table tr.today-row td:first-child {
    font-weight: 800;
    color: var(--primary) !important;
}

.today-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 6px;
}

/* Smart Today Banner */
.today-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: -0.5rem;
    border: 1px solid;
    animation: fadeIn 0.4s ease-out;
}

.today-banner.banner-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

.today-banner.banner-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.today-banner.banner-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.today-banner.banner-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 1.25rem;
}

.banner-info .banner-icon { color: var(--primary); }
.banner-success .banner-icon { color: var(--success); }
.banner-warning .banner-icon { color: var(--warning); }
.banner-danger .banner-icon { color: var(--danger); }

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.banner-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.banner-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: var(--transition);
}

.banner-close:hover {
    color: var(--danger);
}

/* ============================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION v2.1
   ============================================ */

/* ============================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION
   Optimized for Oppo Reno 15 Pro & similar
   ============================================ */

/* Menu toggle buttons (Hidden by default on Desktop) */
.menu-toggle-btn, .close-sidebar-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* ── Show Mobile Controls ── */
    .menu-toggle-btn {
        display: inline-flex;
    }
    .close-sidebar-btn {
        display: inline-flex;
    }

    /* ── Root Body Safe Area ── */
    body {
        overscroll-behavior-y: contain;
    }

    /* ── Sliding Mobile Drawer Sidebar ── */
    .sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        bottom: 0;
        width: 280px;
        height: 100%;
        height: 100dvh;
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.35);
        border-left: none;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 1rem);
    }

    .sidebar.active {
        right: 0;
    }

    .app-container {
        position: relative;
    }

    /* ── Main Content ── */
    .main-content {
        padding: 0.875rem;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
        max-height: none;
        overflow-y: visible;
        width: 100%;
        gap: 1rem;
        min-height: 100dvh;
    }

    /* ── App Header ── */
    .app-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-bottom: 0.875rem;
        flex-wrap: nowrap;
    }

    .header-title-wrapper {
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }

    .header-title h1 {
        font-size: 1.1rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .subtitle {
        display: none; /* Hide subtitle on mobile to save space */
    }

    /* Collapse header actions to just icons */
    .header-actions {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .employee-selector-wrapper,
    .month-selector-wrapper {
        display: none; /* Hidden in header – access from sidebar */
    }

    .theme-toggle-btn {
        align-self: auto;
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .install-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    /* ── Employee + Month Selectors inside sidebar ── */
    .sidebar-mobile-selectors {
        display: flex !important;
    }

    /* ── Summary Cards: 2 columns ── */
    .summary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .card {
        padding: 0.85rem 0.75rem;
        gap: 0.6rem;
        border-radius: 10px;
    }

    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .card-value {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .card-details h3 {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .card-unit {
        font-size: 0.65rem;
    }

    .card-sub-info {
        font-size: 0.65rem;
    }

    /* ── Dashboard Grid: single column ── */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-container {
        height: 220px;
    }

    /* ── Today Banner ── */
    .today-banner {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .banner-text strong {
        font-size: 0.85rem;
    }

    .banner-text span {
        font-size: 0.75rem;
    }

    /* ── Table Section ── */
    .table-actions-header,
    .report-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.875rem;
        border-radius: 10px;
    }

    .table-actions-header h3,
    .report-controls h3 {
        font-size: 1rem;
    }

    .search-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        gap: 0.5rem;
    }

    .search-filter-wrapper select {
        width: 100%;
        min-width: unset;
    }

    .action-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
        width: 100%;
    }

    .action-buttons .btn {
        width: 100%;
        padding: 0.55rem 0.5rem;
        font-size: 0.78rem;
        justify-content: center;
    }

    .report-btn-group {
        flex-direction: column;
        gap: 0.45rem;
        width: 100%;
    }

    .report-btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Attendance Table: horizontal scroll ── */
    .table-container {
        width: 100%;
        overflow-x: auto;
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
        /* scroll indicator gradient on right edge */
        background-image: linear-gradient(to right, var(--bg-card), var(--bg-card)),
                          linear-gradient(to right, transparent, rgba(0,0,0,0.12));
        background-position: left center, right center;
        background-repeat: no-repeat;
        background-size: 20px 100%, 20px 100%;
        background-attachment: local, scroll;
    }

    .attendance-table {
        min-width: 760px;
        font-size: 0.82rem;
    }

    .attendance-table th,
    .attendance-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }

    /* ── Employees Grid ── */
    .employees-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .employee-card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    /* ── Settings ── */
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    /* ── Salary Slip ── */
    .salary-slip-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .slip-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .slip-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .slip-calculation-table th,
    .slip-calculation-table td {
        padding: 0.65rem 0.5rem;
        font-size: 0.85rem;
    }

    .slip-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        text-align: center;
    }

    .signature-block {
        width: 100%;
    }

    /* ── Modals ── */
    .modal-content {
        width: 95%;
        max-width: none;
        max-height: 92dvh;
        margin: 0;
        border-radius: 16px;
    }

    .modal-body {
        padding: 1rem;
        gap: 0.875rem;
        max-height: 70dvh;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .modal-footer .btn {
        flex: 1;
        justify-content: center;
    }

    /* ── Toast Notifications ── */
    .toast-container {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        left: 10px;
        right: 10px;
    }

    .toast {
        min-width: unset;
        width: 100%;
        font-size: 0.88rem;
        padding: 0.875rem 1rem;
    }

    /* ── Fingerprint Scanner Modal ── */
    .fingerprint-scanner-circle {
        width: 180px;
        height: 180px;
        margin: 1rem auto;
    }

    .fingerprint-main-icon {
        font-size: 5.5rem;
    }

    .progress-ring {
        width: 186px;
        height: 186px;
        top: -3px;
        left: -3px;
    }

    /* ── Stats List ── */
    .stats-list li {
        font-size: 0.9rem;
    }

    /* ── Quick Stamp Sidebar ── */
    .btn-stamp {
        padding: 0.65rem 0.4rem;
        font-size: 0.72rem;
        min-height: 44px; /* Touch-friendly */
    }
}

/* Small phones < 380px (e.g. iPhone SE) */
@media (max-width: 380px) {
    .main-content {
        padding: 0.65rem;
    }

    .card-value {
        font-size: 1rem;
    }

    .summary-cards-grid {
        gap: 0.5rem;
    }

    .card {
        padding: 0.7rem 0.6rem;
    }

    .header-title h1 {
        font-size: 1rem;
    }
}

.close-sidebar-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
}

.close-sidebar-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Media Query for Mobile (Oppo Reno 15 Pro / Screens <= 768px) */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: inline-flex;
    }
    
    .close-sidebar-btn {
        display: inline-flex;
    }
    
    /* Sliding Mobile Drawer Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        right: -290px; /* Slide out right side for RTL */
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
        border-left: none;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.active {
        right: 0; /* Slide into view */
    }
    
    .app-container {
        position: relative;
    }
    
    .main-content {
        padding: 1rem;
        max-height: none;
        overflow-y: visible;
        width: 100%;
        gap: 1.25rem;
    }
    
    /* Header layout wraps on mobile */
    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }
    
    .employee-selector-wrapper, .month-selector-wrapper {
        justify-content: space-between;
        width: 100%;
    }
    
    .employee-selector-wrapper select, .month-selector-wrapper input[type="month"] {
        flex-grow: 1;
        text-align: right;
    }
    
    .theme-toggle-btn {
        align-self: flex-end;
    }
    
    /* Summary Cards Grid: 2 columns on mobile to fit nicely */
    .summary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .card {
        padding: 0.85rem;
        gap: 0.65rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .card-value {
        font-size: 1.15rem;
    }
    
    .card-details h3 {
        font-size: 0.75rem;
    }
    
    .card-unit {
        font-size: 0.7rem;
    }
    
    /* Attendance list actions responsive design */
    .table-actions-header, .report-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .report-btn-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .report-btn-group .btn {
        width: 100%;
    }
    
    .search-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        gap: 0.5rem;
    }
    
    .search-filter-wrapper select {
        width: 100%;
    }
    
    .action-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Table scroll styling is vital */
    .table-container {
        width: 100%;
        overflow-x: auto;
        border-radius: var(--radius);
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border-color);
    }
    
    .attendance-table {
        min-width: 800px; /* Forces table not to squeeze columns, scrolling instead */
    }
    
    .attendance-table th, .attendance-table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
    }
    
    /* Forms in Settings & Modals */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Salary Slip Report section responsive */
    .salary-slip-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .slip-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .slip-header-logo {
        flex-direction: column;
    }
    
    .slip-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .slip-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        text-align: center;
    }
    
    .signature-block {
        width: 100%;
    }
    
    /* Modals overlays responsive */
    .modal-content {
        width: 92%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-footer {
        padding: 0.85rem 1rem;
    }
}

/* ============================================
   SUPABASE CLOUD & BIOMETRICS STYLING v2.1
   ============================================ */

/* Biometric Fingerprint Nav Button */
.nav-btn.biometric-nav-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-weight: 700;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.nav-btn.biometric-nav-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.22) 100%);
    border-style: solid;
    color: #34d399;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.18);
    transform: scale(1.02);
}

[data-theme="dark"] .nav-btn.biometric-nav-btn {
    border-color: rgba(16, 185, 129, 0.3);
}

/* Supabase status indicator card */
.supabase-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-theme="dark"] .supabase-status-indicator {
    background-color: rgba(255, 255, 255, 0.02);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-offline {
    background-color: #64748b;
    box-shadow: 0 0 8px #64748b;
}

.status-online {
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseStatus 2s infinite;
}

.status-error {
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseStatus 1s infinite;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Fingerprint Biometric Scanner Zone */
.fingerprint-scanner-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.05);
    border: 3px solid var(--border-color);
    margin: 1.5rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
    transition: var(--transition);
    touch-action: none;
}

.fingerprint-scanner-circle:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

/* active/scanning state */
.fingerprint-scanner-circle.scanning {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

/* success state */
.fingerprint-scanner-circle.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.fingerprint-main-icon {
    font-size: 5rem;
    color: var(--primary);
    transition: var(--transition);
    z-index: 2;
}

.fingerprint-scanner-circle.scanning .fingerprint-main-icon {
    color: #10b981;
    animation: iconPulse 1.5s infinite;
}

.fingerprint-scanner-circle.success .fingerprint-main-icon {
    color: #10b981;
    transform: scale(1.1);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
}

/* Scan Laser Line */
.fingerprint-scan-laser {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    box-shadow: 0 0 10px #10b981, 0 0 15px #10b981;
    top: 0;
    display: none;
    z-index: 3;
}

.fingerprint-scanner-circle.scanning .fingerprint-scan-laser {
    display: block;
    animation: laserScan 2s linear infinite;
}

@keyframes laserScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* SVG Progress Ring overlay */
.progress-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    z-index: 4;
    pointer-events: none;
    transform: rotate(-90deg); /* Start at 12 o'clock */
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    stroke-dasharray: 465; /* 2 * PI * r = 2 * 3.14159 * 74 = 465 */
    stroke-dashoffset: 465;
}

.scanner-instruction {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1rem;
    min-height: 40px;
    line-height: 1.5;
}

.scanner-sensor-type {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

[data-theme="dark"] .scanner-sensor-type {
    background: rgba(255, 255, 255, 0.04);
}

/* PWA Install Button */
.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transition: var(--transition);
    animation: bounceInstall 2.5s infinite;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #059669 100%);
}

@keyframes bounceInstall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Print Mode Override styling */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    
    .sidebar, .app-header, .table-actions-header, .report-controls, .settings-actions, .theme-toggle-btn, .today-banner {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
        max-height: initial;
        overflow-y: initial;
    }
    
    .page-section {
        display: none !important;
    }
    
    #reports-page.page-section {
        display: block !important;
    }
    
    .salary-slip-container {
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
}
