/* ==========================================================================
   WCWT Workforce Timeclock — Front-end styles
   Dark futuristic terminal theme — cyan accent #00f2ff
   ========================================================================== */

.wcwt-terminal *, .wcwt-terminal *::before, .wcwt-terminal *::after { box-sizing: border-box; margin: 0; padding: 0; }

.wcwt-terminal {
    background: linear-gradient(145deg, #050f1f 0%, #0a1a2e 50%, #071628 100%);
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 14px;
    color: #d0e8ff;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.08), inset 0 1px 0 rgba(0, 242, 255, 0.12);
}

.wcwt-header { background: rgba(0, 242, 255, 0.05); border-bottom: 1px solid rgba(0, 242, 255, 0.2); padding: 14px 24px; }
.wcwt-header-brand { display: flex; align-items: center; gap: 14px; }
.wcwt-logo { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(0, 242, 255, 0.5)); }
.wcwt-terminal-title { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; color: #e6f4ff; text-transform: uppercase; }

.wcwt-grid { display: grid; grid-template-columns: 42% 58%; min-height: 600px; }
.wcwt-left { border-right: 1px solid rgba(0, 242, 255, 0.15); padding: 28px 24px; display: flex; flex-direction: column; gap: 22px; }
.wcwt-right { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }

.wcwt-clock-panel { text-align: center; padding: 10px 0 18px; }
.wcwt-clock-time { font-size: 56px; font-weight: 300; letter-spacing: 0.04em; color: #e6f4ff; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 6px; text-shadow: 0 0 20px rgba(0, 242, 255, 0.25); }
.wcwt-clock-date { font-size: 13px; color: rgba(180, 210, 240, 0.7); letter-spacing: 0.06em; margin-bottom: 28px; }

.wcwt-btn-action { display: block; width: 100%; padding: 16px 24px; background: rgba(0, 242, 255, 0.07); border: 2px solid #00f2ff; border-radius: 6px; color: #00f2ff; font-size: 16px; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; transition: background 0.2s, box-shadow 0.2s, transform 0.1s; margin-bottom: 12px; text-transform: uppercase; }
.wcwt-btn-action:hover { background: rgba(0, 242, 255, 0.15); box-shadow: 0 0 18px rgba(0, 242, 255, 0.3); }
.wcwt-btn-action:active { transform: scale(0.98); }
.wcwt-btn-action.is-in { border-color: #ff4f6a; color: #ff4f6a; background: rgba(255, 79, 106, 0.07); }
.wcwt-btn-action.is-in:hover { background: rgba(255, 79, 106, 0.15); box-shadow: 0 0 18px rgba(255, 79, 106, 0.25); }

.wcwt-btn-break { display: block; width: 100%; padding: 12px 24px; background: rgba(255, 166, 40, 0.1); border: 2px solid #f5a623; border-radius: 6px; color: #f5a623; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s, box-shadow 0.2s; text-transform: uppercase; }
.wcwt-btn-break:hover { background: rgba(255, 166, 40, 0.2); box-shadow: 0 0 14px rgba(245, 166, 35, 0.3); }
.wcwt-btn-break.is-on-break { border-color: #00ff9f; color: #00ff9f; background: rgba(0, 255, 159, 0.08); }

.wcwt-panel { border: 1px solid rgba(0, 242, 255, 0.2); border-radius: 8px; overflow: hidden; background: rgba(0, 10, 25, 0.4); }
.wcwt-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(0, 242, 255, 0.06); border-bottom: 1px solid rgba(0, 242, 255, 0.15); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: #9ac8e0; cursor: pointer; user-select: none; text-transform: uppercase; }
.wcwt-panel-header:hover { background: rgba(0, 242, 255, 0.1); }
.wcwt-chevron { font-size: 14px; color: rgba(0, 242, 255, 0.6); transition: transform 0.2s; }
.wcwt-panel.is-collapsed .wcwt-chevron { transform: rotate(180deg); }
.wcwt-panel.is-collapsed .wcwt-panel-body { display: none; }
.wcwt-panel-body { padding: 14px 16px; }

.wcwt-logs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wcwt-logs-table th { font-size: 10px; letter-spacing: 0.1em; color: rgba(154, 200, 224, 0.7); padding: 0 0 8px; text-align: left; border-bottom: 1px solid rgba(0, 242, 255, 0.1); }
.wcwt-logs-table td { padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: #c8dff0; vertical-align: middle; }
.wcwt-logs-table tr:last-child td { border-bottom: none; }
.wcwt-logs-empty td { color: rgba(154, 200, 224, 0.4); text-align: center; padding: 20px; font-size: 11px; }
.wcwt-log-activity { font-weight: 600; letter-spacing: 0.05em; font-size: 11px; color: #9ac8e0; }
.wcwt-log-status-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.wcwt-status-completed { background: rgba(0, 200, 100, 0.15); color: #00c864; }
.wcwt-status-pending   { background: rgba(255, 166, 40, 0.15); color: #f5a623; }
.wcwt-status-open      { background: rgba(0, 242, 255, 0.1);   color: #00f2ff; }

.wcwt-metrics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.wcwt-metrics-row:last-child { margin-bottom: 0; }
.wcwt-metric-card { background: rgba(0, 15, 35, 0.6); border: 1px solid rgba(0, 242, 255, 0.12); border-radius: 8px; padding: 14px; }
.wcwt-metric-label { font-size: 10px; letter-spacing: 0.1em; color: rgba(154, 200, 224, 0.65); text-transform: uppercase; margin-bottom: 8px; }

.wcwt-status-badge { font-size: 18px; font-weight: 800; letter-spacing: 0.06em; color: #00ff9f; margin-bottom: 2px; }
.wcwt-status-badge.is-out   { color: rgba(154, 200, 224, 0.5); }
.wcwt-status-badge.is-break { color: #f5a623; }
.wcwt-duration-row { font-size: 20px; font-weight: 600; color: #d0e8ff; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.wcwt-duration-sep { color: rgba(154, 200, 224, 0.4); font-weight: 300; }
.wcwt-progress-track { height: 6px; background: rgba(0, 242, 255, 0.1); border-radius: 3px; overflow: hidden; }
.wcwt-progress-fill { height: 100%; background: linear-gradient(90deg, #0090c0, #00f2ff); border-radius: 3px; transition: width 1s ease; box-shadow: 0 0 8px rgba(0, 242, 255, 0.4); }

.wcwt-card-gauge { text-align: center; }
.wcwt-gauge-wrap { position: relative; width: 120px; height: 120px; margin: 0 auto 4px; }
.wcwt-gauge-wrap canvas { width: 120px !important; height: 120px !important; }
.wcwt-gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
#wcwt-gauge-time { font-size: 14px; font-weight: 700; color: #d0e8ff; font-variant-numeric: tabular-nums; line-height: 1.2; }
.wcwt-gauge-label small { font-size: 11px; color: rgba(154, 200, 224, 0.6); }
.wcwt-card-chart { display: flex; flex-direction: column; }
.wcwt-card-chart canvas { flex: 1; max-height: 160px; }
.wcwt-target-line { margin-top: 8px; font-size: 11px; letter-spacing: 0.05em; color: rgba(154, 200, 224, 0.7); text-transform: uppercase; }
.wcwt-target-line span { color: #00f2ff; font-weight: 700; }

.wcwt-notif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wcwt-notif-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: rgba(0, 15, 35, 0.5); border: 1px solid rgba(0, 242, 255, 0.1); border-radius: 6px; }
.wcwt-notif-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.wcwt-notif-icon.type-success { background: rgba(0, 200, 100, 0.15); color: #00c864; border: 1px solid rgba(0, 200, 100, 0.3); }
.wcwt-notif-icon.type-warning { background: rgba(255, 166, 40, 0.15); color: #f5a623; border: 1px solid rgba(255, 166, 40, 0.3); }
.wcwt-notif-icon.type-error   { background: rgba(255, 79, 106, 0.15); color: #ff4f6a; border: 1px solid rgba(255, 79, 106, 0.3); }
.wcwt-notif-icon.type-info    { background: rgba(0, 242, 255, 0.12);  color: #00f2ff; border: 1px solid rgba(0, 242, 255, 0.25); }
.wcwt-notif-text strong { display: block; font-size: 12px; font-weight: 600; color: #d0e8ff; margin-bottom: 2px; }
.wcwt-notif-text span { font-size: 11px; color: rgba(154, 200, 224, 0.6); line-height: 1.4; }
.wcwt-notif-placeholder { grid-column: 1 / -1; text-align: center; color: rgba(154, 200, 224, 0.4); font-size: 12px; padding: 16px; }

.wcwt-login-notice { text-align: center; padding: 24px; color: rgba(154, 200, 224, 0.7); }
.wcwt-login-notice a { color: #00f2ff; }

@media ( max-width: 900px ) {
    .wcwt-grid { grid-template-columns: 1fr; }
    .wcwt-left { border-right: none; border-bottom: 1px solid rgba(0, 242, 255, 0.15); }
    .wcwt-metrics-row, .wcwt-notif-grid { grid-template-columns: 1fr; }
}
@media ( max-width: 480px ) { .wcwt-clock-time { font-size: 42px; } }
