/* ============================================================
   PONTO PAULO — Premium Dark Theme with Glassmorphism
   ============================================================ */

:root {
    --bg-base: #060913;
    --glass-bg: rgba(14, 19, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-highlight: rgba(255, 255, 255, 0.12);

    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.25);

    --accent: #06d6a0;
    --accent-light: rgba(6, 214, 160, 0.15);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;

    --font-family: 'Inter', system-ui, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-image:
        radial-gradient(ellipse 600px 400px at 15% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 70%, rgba(6, 214, 160, 0.06) 0%, transparent 70%);
    background-attachment: fixed;
}

/* Background Glow */
.glow-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 80%, rgba(6, 214, 160, 0.04) 0%, transparent 70%);
    animation: glowShift 20s ease-in-out infinite alternate;
}

@keyframes glowShift {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Light Theme */
:root.light-mode {
    --bg-base: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(0, 0, 0, 0.05);
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body.light-mode {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 214, 160, 0.06), transparent 25%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.light-mode .stat-info p,
body.light-mode .view-title { color: var(--text-main); }
body.light-mode .btn-icon:hover { background: rgba(0, 0, 0, 0.05); }
body.light-mode .glow-bg { opacity: 0; }

/* ==================== GLASSMORPHISM ==================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-inner {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

/* ==================== LOGIN ==================== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.login-card {
    max-width: 420px;
    width: 100%;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.login-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 25px var(--primary-glow);
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.25rem;
    padding: 0.5rem 0;
}

.brand-logo {
    display: block;
    user-select: none;
    pointer-events: none;
}

.login-brand-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 75, 43, 0.4)) drop-shadow(0 0 30px rgba(255, 140, 0, 0.25));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-brand-logo {
    height: 44px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(255, 75, 43, 0.35));
    transition: transform 0.3s ease;
}

.header-brand-logo:hover {
    transform: scale(1.05);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -0.4rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.remember-me-label:hover {
    color: var(--text-main);
}

.remember-me-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

.biometric-login-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0.2rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.login-divider span {
    padding: 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
}

.btn-biometric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 0.78rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.btn-biometric:hover {
    background: rgba(255, 75, 43, 0.15);
    border-color: rgba(255, 75, 43, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.2);
}

.btn-biometric i {
    font-size: 1.25rem;
    color: var(--primary);
}

.biometric-status-msg {
    font-size: 0.82rem;
    text-align: center;
    margin-top: 0.3rem;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
}

.biometric-status-msg.info {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.biometric-status-msg.error {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.login-error {
    color: var(--danger);
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

/* ==================== APP CONTAINER ==================== */
.app-container {
    width: 100%;
    max-width: 1100px;
    min-height: 80vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==================== HEADER ==================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-area h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 50%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navigation */
.app-nav {
    display: flex;
    gap: 0.3rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition);
}

.nav-btn:hover {
    color: var(--text-main);
    background: var(--glass-highlight);
}

.nav-btn.active {
    color: var(--text-main);
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.nav-btn i { font-size: 1.15rem; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.btn-icon.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-icon.refresh:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.3);
}

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

.btn-icon.edit:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.btn-icon.warning:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.lang-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
}

.lang-select option { background: var(--bg-base); }

/* ==================== MAIN CONTENT ==================== */
.app-content {
    padding: 2rem;
    flex: 1;
    position: relative;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.view.active { display: block; }

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

.view-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, #fff 50%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.view-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.onboarding-sub {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-title {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-hover);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accent-card .stat-icon {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.success-card .stat-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.stat-info h3 {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.stat-info p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* ==================== FORMS ==================== */
.glass-form {
    max-width: 650px;
    background: rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

input, textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

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

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

input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Checkboxes */
.checkbox-row {
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.custom-cb {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

.btn-success { background: linear-gradient(135deg, var(--success), #059669); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-danger-bg { background: linear-gradient(135deg, var(--danger), #dc2626); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.action-btn.success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.action-btn.success:hover {
    background: rgba(16, 185, 129, 0.2);
}

.action-btn.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.action-btn.warning:hover {
    background: rgba(245, 158, 11, 0.2);
}

.action-btn.danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.action-btn.info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.action-btn.info:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Retroactive Badge & Revision Chips */
.badge-retroactive {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    animation: fadeIn 0.3s ease;
}

.revision-chips-container {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    color: var(--text-muted);
    font-size: 0.76rem;
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chip-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    transform: translateY(-1px);
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.glass-table th {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.glass-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.88rem;
}

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

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

/* ==================== ACTIVITY LIST ==================== */
.recent-section {
    margin-top: 0.5rem;
}

.section-header {
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255,255,255,0.12);
}

.activity-date { font-weight: 600; font-size: 0.92rem; }
.activity-time { font-size: 0.82rem; color: var(--text-muted); }
.activity-hours { text-align: right; }
.hours-regular { font-weight: 700; font-size: 1rem; }
.hours-extra { font-size: 0.82rem; color: var(--accent); margin-top: 0.15rem; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.hidden { display: none !important; }

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.modal {
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    margin: auto;
    box-sizing: border-box;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i { color: var(--primary-hover); }

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-status {
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

/* ==================== WEEK SELECTOR ==================== */
.week-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* ==================== FOOTER ==================== */
.app-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: auto;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-block;
}

.badge-weekend {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-holiday {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
/* ==================== HISTORY FILTER TOOLBAR ==================== */
.history-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-field label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.filter-date-input,
.filter-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition);
}

.filter-date-input:focus,
.filter-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
}

.filter-search-input {
    min-width: 220px;
}

.filter-actions-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.25);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* ==================== EXPORT MODAL ==================== */
.modal-lg {
    max-width: 620px;
    width: 95%;
    max-height: min(92vh, 760px);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem 1.25rem;
    overflow-y: auto;
    box-sizing: border-box;
}

#export-modal .modal-footer {
    position: sticky;
    bottom: -1.25rem;
    margin: 1.2rem -1.75rem -1.25rem;
    padding: 0.9rem 1.75rem;
    background: rgba(11, 15, 25, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    z-index: 10;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    align-items: center;
}

.export-presets-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.preset-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.preset-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.export-date-range {
    margin-bottom: 1rem;
}

.export-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    border: 1px solid var(--glass-border);
}

.export-summary-tag {
    font-size: 0.78rem;
    color: var(--primary-hover);
    font-weight: 600;
}

.export-shifts-container {
    max-height: clamp(120px, 20vh, 180px);
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
}

/* Notebooks & Small height screens */
@media (max-height: 800px) {
    .modal-lg {
        padding: 1.15rem 1.4rem 1rem;
        max-height: 94vh;
    }
    .modal-title {
        font-size: 1.15rem;
        margin-bottom: 0.2rem;
    }
    .modal-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }
    .export-presets-bar {
        margin: 0.4rem 0;
    }
    .export-date-range {
        margin-bottom: 0.4rem;
    }
    .export-selection-header {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.4rem;
    }
    .export-shifts-container {
        max-height: 120px;
    }
    #export-employee-filter-group {
        margin: 0.4rem 0 !important;
        padding: 0.5rem 0.75rem !important;
    }
    #export-modal .modal-footer {
        bottom: -1rem;
        margin: 0.75rem -1.4rem -1rem;
        padding: 0.75rem 1.4rem;
    }
    #export-modal .modal-footer .btn-primary {
        padding: 0.65rem 1.2rem !important;
        font-size: 0.88rem;
    }
}

.export-shifts-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.export-shift-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.export-shift-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.export-shift-item.selected {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.08);
}

.export-shift-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.export-shift-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.export-shift-client {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.export-shift-hours {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
}

.export-empty-notice {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== ADMIN MENU GRID ==================== */
.admin-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-menu-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
    pointer-events: none;
}

.admin-menu-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.admin-menu-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-menu-info {
    flex: 1;
}

.admin-menu-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.admin-menu-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.admin-menu-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.admin-menu-card:hover .admin-menu-arrow {
    transform: translateX(4px);
    color: var(--text-main);
}

.admin-card-badge {
    position: absolute;
    top: 0.8rem;
    right: 3rem;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ==================== STATUS TABS ==================== */
.status-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-tab {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.status-tab.active {
    background: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
}

.tab-count {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rect-count {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* ==================== STATUS BADGES (NEW VARIANTS) ==================== */
.badge-pending {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rect {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==================== CONFERENCE CARDS ==================== */
.conference-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conference-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.conference-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.conference-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
}

.conference-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.conference-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.conference-user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.conference-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.conference-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    padding: 1rem 1.2rem;
}

.conference-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.conference-detail span {
    font-weight: 500;
    color: var(--text-main);
    margin-right: 0.3rem;
}

.conference-detail.full {
    grid-column: 1 / -1;
}

.conference-card-actions {
    display: flex;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.1);
    flex-wrap: wrap;
    align-items: center;
}

/* ==================== RECTIFICATION MESSAGE BOX ==================== */
.rectification-message-box {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #fcd34d;
    margin-top: 0.25rem;
}

.rectification-message-box i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ==================== RECTIFICATION MODAL PREVIEW ==================== */
.rectification-preview {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
}

/* ==================== RECTIFICATION ALERT BANNER ==================== */
.rectification-banner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    color: #fcd34d;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease;
}

.rectification-banner i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

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

/* ==================== NAV BADGE ==================== */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999999;
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.warning-toast {
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.3);
    color: #fff;
}

.toast-notification.error-toast {
    background: rgba(239, 68, 68, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(239, 68, 68, 0.3);
    color: #fff;
}

.toast-notification.info-toast {
    background: rgba(99, 102, 241, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.3);
    color: #fff;
}

.ph-spin {
    animation: spinIcon 1s linear infinite;
    display: inline-block;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body { padding: 0.8rem; }
    .app-header { flex-direction: column; gap: 0.8rem; padding: 1rem; }
    .app-nav { flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
    .nav-btn { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .app-content { padding: 1.2rem; }
    .view-header { flex-direction: column; align-items: flex-start; }
    .admin-menu-card { padding: 1rem 1.2rem; }
    .conference-card-body { grid-template-columns: 1fr 1fr; }
    .toast-notification {
        bottom: 5.5rem;
        left: 1rem;
        right: 1rem;
        justify-content: center;
        text-align: center;
    }
}
