/* --- Attendance Module Styles --- */

.attendance-main-public {
    width: 100%;
    justify-content: center;
    padding-left: 24px;
    padding-right: 24px;
}


/* --- Hyper-Modern Admin View --- */
.admin-shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 40px;
    background: var(--panel-bg);
    backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 80px 150px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 10;
}

.admin-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%, rgba(195,0,47,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.admin-head h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 6px;
}

.admin-head h1 span {
    color: var(--primary);
}

.admin-head p {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* --- Hyper-Modern Employee View --- */
.hologram-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 20px;
    position: relative;
}

.glass-orb {
    width: 100%;
    max-width: 580px;
    padding: 30px 40px;
    background: rgba(15, 15, 18, 0.45);
    backdrop-filter: blur(80px) saturate(220%);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 120px 240px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(255, 255, 255, 0.02);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: orbReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes orbReveal {
    from { opacity: 0; transform: scale(0.95) translateY(20px); filter: blur(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.floating-logo {
    width: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(195, 0, 47, 0.5));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 40px rgba(195, 0, 47, 0.6)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 0 60px rgba(195, 0, 47, 0.8)); }
}

.title-area {
    margin-bottom: 20px;
}

.glitch-text {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(to right, #fff, #ffb8c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.glitch-text span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    text-shadow: 0 0 30px rgba(195, 0, 47, 0.6);
}

.subtitle {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(195, 0, 47, 0.4);
}

.input-container {
    position: relative;
    margin-bottom: 20px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.input-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
    transition: all 0.4s ease;
}

.scan-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
    animation: scanMove 3s linear infinite;
    opacity: 0.5;
}

@keyframes scanMove {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

.input-container input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 60px rgba(195, 0, 47, 0.2);
}

/* Modern Toggle Button */
.mode-toggle {
    margin-bottom: 20px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 28px;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Action Buttons */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 440px;
    margin: 0 auto;
}

.action-btn {
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.action-btn.in {
    grid-column: span 2;
    background: linear-gradient(135deg, #c3002f, #7a001f);
    border: none;
    font-size: 16px;
    height: 60px;
    box-shadow: 0 20px 40px rgba(195, 0, 47, 0.3);
}

.action-btn.in:hover {
    box-shadow: 0 30px 60px rgba(195, 0, 47, 0.5);
    filter: brightness(1.2);
    transform: translateY(-4px);
}

.action-btn.out {
    grid-column: span 2;
    background: rgba(195, 0, 47, 0.1);
    border-color: rgba(195, 0, 47, 0.2);
}


#msg {
    margin-top: 30px;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.msg-success { background: rgba(0, 255, 128, 0.1); color: #00ff80; border: 1px solid rgba(0, 255, 128, 0.2); }
.msg-error { background: rgba(195, 0, 47, 0.1); color: #ff3c64; border: 1px solid rgba(195, 0, 47, 0.2); }

/* --- Admin Table Styles --- */
.report-table-wrap {
    margin-top: 40px;
    overflow-x: auto;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.report-table th, .report-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.report-table th {
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

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

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pill.status-completed {
    background: rgba(0, 255, 128, 0.15);
    color: #00ff80;
    border-color: rgba(0, 255, 128, 0.3);
}

/* Ultra-Simplified Report Styles */
.activity-cell {
    padding: 15px !important;
}

.timeline-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.time-block .label {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.time-block .val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: 'monospace';
}

.time-sep {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.break-tag {
    margin-left: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.attendance-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.attendance-tag.present {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
}

.attendance-tag.half-day {
    background: rgba(255, 184, 0, 0.1);
    color: #ffb800;
}

.late-dot {
    width: 18px;
    height: 18px;
    background: #ff3c64;
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 60, 100, 0.4);
}

.status-pill-v2 {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.status-pill-v2.status-completed {
    background: rgba(0, 255, 128, 0.2);
    color: #00ff80;
}

.status-pill-v2.status-working {
    background: rgba(64, 156, 255, 0.2);
    color: #409cff;
}

.info-circle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.info-circle-btn:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateX(4px);
}

/* Detail Modal Styles */
.detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-glass {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 15, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detail-modal.active .modal-glass {
    transform: scale(1) translateY(0);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.head-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 4px;
}

#modalCode {
    font-size: 11px;
    color: var(--primary-red);
    font-weight: 800;
    letter-spacing: 2px;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(195, 0, 47, 0.2);
    color: var(--primary-red);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item .label, .remarks-box .label {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item .val {
    font-size: 14px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.remarks-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.remarks-box p {
    margin-top: 8px;
    font-size: 13px;
    color: #cfd3da;
    line-height: 1.6;
}
.status-absent { background: rgba(195, 0, 47, 0.1); color: #ff3c64; border: 1px solid rgba(195, 0, 47, 0.2); }
.status-late { background: rgba(255, 165, 0, 0.1); color: #ffa500; border: 1px solid rgba(255, 165, 0, 0.2); }

.date-filter {
    display: flex;
    gap: 14px;
    align-items: center;
}

.date-filter input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    color: #fff;
    outline: none;
}

.date-filter button, .export-btn {
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(195, 0, 47, 0.2);
}

.date-filter button:hover, .export-btn:hover {
    box-shadow: 0 15px 30px rgba(195, 0, 47, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-note {
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.report-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.admin-search-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-search-box i {
    color: var(--muted);
}

.admin-search-box input {
    margin: 0;
    height: 46px;
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
    box-shadow: none;
    caret-color: #fff;
}

.admin-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.admin-search-box input:focus {
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .glass-orb { padding: 40px 24px; border-radius: 30px; }
    .title-area h2 { font-size: 28px; }
    .action-btn { padding: 16px; font-size: 12px; }
    .admin-head { flex-direction: column; align-items: flex-start; gap: 20px; }
    .report-toolbar { justify-content: stretch; }
    .admin-search-box { width: 100%; min-width: 0; }
}
