/* ============================================
   Time Clock Screen
   ============================================ */

.tc-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-body, #1a1a2e);
}

.tc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-card, #242442);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.tc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-back {
    background: none;
    border: none;
    color: var(--text-muted, #8888aa);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: inherit;
}
.tc-back:hover { background: rgba(255,255,255,0.06); }

.tc-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.tc-tabs {
    display: flex;
    gap: 4px;
}

.tc-tab {
    padding: 6px 16px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted, #8888aa);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}
.tc-tab:hover { background: rgba(255,255,255,0.1); }
.tc-tab.active { background: var(--accent, #4a6cf7); color: #fff; border-color: var(--accent); }

.tc-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ── Clock In/Out Panel ── */
.tc-clock-panel {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.tc-user-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin-bottom: 8px;
}

.tc-user-role {
    font-size: 14px;
    color: var(--text-muted, #8888aa);
    margin-bottom: 32px;
}

.tc-status-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.tc-status-badge.clocked-in {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tc-status-badge.clocked-out {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted, #8888aa);
    border: 1px solid rgba(255,255,255,0.1);
}

.tc-time-display {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary, #fff);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.tc-date-display {
    font-size: 14px;
    color: var(--text-muted, #8888aa);
    margin-bottom: 32px;
}

.tc-shift-info {
    background: var(--bg-card, #242442);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.tc-shift-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-primary, #fff);
}

.tc-shift-label {
    color: var(--text-muted, #8888aa);
}

.tc-clock-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 auto;
    display: block;
}

.tc-clock-btn.clock-in {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: #22c55e;
}
.tc-clock-btn.clock-in:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.tc-clock-btn.clock-out {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}
.tc-clock-btn.clock-out:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
}

.tc-clock-btn:active { transform: scale(0.95); }

.tc-break-input {
    margin-top: 20px;
}

.tc-break-input label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tc-break-input input {
    background: var(--bg-input, #1e1e3a);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary, #fff);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    text-align: center;
    font-family: inherit;
}

/* ── Time Cards (Manager View) ── */
.tc-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tc-filter-row select,
.tc-filter-row input {
    background: var(--bg-input, #1e1e3a);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary, #fff);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.tc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tc-summary-card {
    background: var(--bg-card, #242442);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-summary-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.tc-summary-info {
    flex: 1;
    min-width: 0;
}

.tc-summary-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.tc-summary-hours {
    font-size: 20px;
    font-weight: 800;
    color: #22c55e;
}

.tc-summary-detail {
    font-size: 11px;
    color: var(--text-muted);
}

/* Entries table */
.tc-entries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--bg-card, #242442);
    border-radius: 10px;
    overflow: hidden;
}

.tc-entries-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tc-entries-table td {
    padding: 10px 12px;
    color: var(--text-primary, #fff);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tc-entries-table tr:hover td { background: rgba(255,255,255,0.03); }

.tc-entries-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.tc-active-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: tc-pulse 1.5s infinite;
    margin-right: 4px;
}

@keyframes tc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
