/* ============================================================
   Lorain County Time Clock — Plugin Styles
   ============================================================ */
:root {
  --lc-primary:      #1a3a5c;
  --lc-primary-lt:   #2a5a8c;
  --lc-accent:       #c8960c;
  --lc-accent-lt:    #f0b429;
  --lc-bg:           #f4f6f9;
  --lc-surface:      #ffffff;
  --lc-surface2:     #eef1f5;
  --lc-border:       #d0d7e2;
  --lc-text:         #1a2535;
  --lc-muted:        #5a6a7e;
  --lc-success:      #1a6b3c;
  --lc-success-bg:   #e8f5ee;
  --lc-danger:       #8b1a1a;
  --lc-danger-bg:    #faeaea;
  --lc-warning:      #7a5200;
  --lc-warning-bg:   #fff8e6;
  --lc-radius:       10px;
  --lc-shadow:       0 2px 12px rgba(0,0,0,0.08);
}

.lc-tc-wrap { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--lc-text); line-height: 1.5; }
.lc-tc-wrap *, .lc-tc-wrap *::before, .lc-tc-wrap *::after { box-sizing: border-box; }

/* ---- CLOCK SCREEN ---- */
.lc-tc-clock-screen { max-width: 480px; margin: 0 auto; padding: 1rem 0; }

.lc-tc-card {
  background: var(--lc-surface); border-radius: 16px;
  box-shadow: var(--lc-shadow); padding: 2rem;
  border-top: 4px solid var(--lc-accent); margin-bottom: 1rem;
}
.lc-tc-card h2 {
  font-size: 20px; color: var(--lc-primary); margin: 0 0 6px;
  text-align: center; font-family: Georgia, serif;
}
.lc-tc-card .lc-subtitle {
  text-align: center; color: var(--lc-muted); font-size: 13px; margin-bottom: 1.5rem;
}

/* ---- TIME DISPLAY ---- */
.lc-tc-time-bar {
  text-align: center; margin-bottom: 1.5rem; padding: 12px;
  background: var(--lc-primary); border-radius: var(--lc-radius); color: white;
}
.lc-tc-time-bar .lc-time { font-size: 24px; font-weight: 700; letter-spacing: 2px; color: var(--lc-accent-lt); }
.lc-tc-time-bar .lc-date { font-size: 12px; opacity: .75; margin-top: 2px; }

/* ---- FORMS ---- */
.lc-tc-form-group { margin-bottom: 1rem; }
.lc-tc-form-group label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--lc-muted); margin-bottom: 5px;
}
.lc-tc-form-group input,
.lc-tc-form-group select,
.lc-tc-form-group textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius); font-size: 14px; color: var(--lc-text);
  background: var(--lc-bg); transition: border-color .2s;
  font-family: inherit;
}
.lc-tc-form-group input:focus,
.lc-tc-form-group select:focus,
.lc-tc-form-group textarea:focus { outline: none; border-color: var(--lc-primary-lt); background: white; }
.lc-tc-form-group input[type="password"] { letter-spacing: 4px; font-size: 18px; }
.lc-tc-form-group textarea { resize: vertical; min-height: 60px; letter-spacing: normal; font-size: 14px; }
.lc-tc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- BUTTONS ---- */
.lc-tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--lc-radius);
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: all .15s; font-family: inherit; text-decoration: none;
}
.lc-tc-btn:active { transform: scale(.97); }
.lc-tc-btn:disabled { opacity: .6; cursor: not-allowed; }
.lc-tc-btn-full { width: 100%; font-size: 15px; padding: 12px; }
.lc-tc-btn-primary   { background: var(--lc-primary);    color: white; }
.lc-tc-btn-primary:hover:not(:disabled)   { background: var(--lc-primary-lt); color: white; }
.lc-tc-btn-success   { background: var(--lc-success);    color: white; }
.lc-tc-btn-success:hover:not(:disabled)   { background: #22874c; color: white; }
.lc-tc-btn-danger    { background: var(--lc-danger);     color: white; }
.lc-tc-btn-danger:hover:not(:disabled)    { background: #a82020; color: white; }
.lc-tc-btn-outline   { background: transparent; color: var(--lc-primary); border: 1.5px solid var(--lc-border); }
.lc-tc-btn-outline:hover { background: var(--lc-surface2); color: var(--lc-primary); }
.lc-tc-btn-accent    { background: var(--lc-accent); color: var(--lc-primary); }
.lc-tc-btn-accent:hover  { background: var(--lc-accent-lt); color: var(--lc-primary); }
.lc-tc-btn-warning   { background: var(--lc-warning-bg); color: var(--lc-warning); border: 1.5px solid var(--lc-accent); }
.lc-tc-btn-sm        { padding: 5px 10px; font-size: 12px; }

/* ---- ALERTS ---- */
.lc-tc-alert {
  padding: 10px 14px; border-radius: var(--lc-radius);
  font-size: 13px; margin-bottom: .75rem; display: none;
}
.lc-tc-alert.show { display: block; }
.lc-tc-alert-danger  { background: var(--lc-danger-bg);  color: var(--lc-danger);  border-left: 3px solid var(--lc-danger); }
.lc-tc-alert-success { background: var(--lc-success-bg); color: var(--lc-success); border-left: 3px solid var(--lc-success); }
.lc-tc-alert-warning { background: var(--lc-warning-bg); color: var(--lc-warning); border-left: 3px solid var(--lc-accent); }
.lc-tc-alert-info    { background: #e8f0fa; color: var(--lc-primary); border-left: 3px solid var(--lc-primary); }

/* ---- STATUS BADGE ---- */
.lc-tc-status-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; margin-bottom: 1rem;
}
.lc-tc-badge-in  { background: var(--lc-success-bg); color: var(--lc-success); }
.lc-tc-badge-out { background: var(--lc-danger-bg);  color: var(--lc-danger); }

/* ---- CONFIRM SCREEN ---- */
.lc-tc-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 1rem; display: flex; align-items: center;
  justify-content: center; font-size: 24px;
}
.lc-tc-icon-in  { background: var(--lc-success-bg); color: var(--lc-success); }
.lc-tc-icon-out { background: var(--lc-danger-bg);  color: var(--lc-danger); }
.lc-tc-confirm-time { font-size: 28px; font-weight: 700; color: var(--lc-primary); margin-bottom: 4px; }
.lc-tc-confirm-date { font-size: 13px; color: var(--lc-muted); margin-bottom: 1rem; }

/* ---- ADMIN PANEL ---- */
.lc-tc-admin-panel { background: var(--lc-bg); border-radius: var(--lc-radius); padding: 0; }

.lc-tc-admin-nav {
  background: var(--lc-primary); border-radius: var(--lc-radius) var(--lc-radius) 0 0;
  display: flex; align-items: center; gap: 2px;
  border-bottom: 2px solid var(--lc-accent); overflow-x: auto; padding: 0 1rem;
}
.lc-tc-nav-item {
  padding: 12px 16px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.7); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .15s; white-space: nowrap;
}
.lc-tc-nav-item:hover  { color: white; }
.lc-tc-nav-item.active { color: var(--lc-accent-lt); border-bottom-color: var(--lc-accent-lt); }
.lc-tc-nav-spacer { flex: 1; }
.lc-tc-nav-user   { color: rgba(255,255,255,.75); font-size: 12px; white-space: nowrap; padding: 0 8px; }
.lc-tc-nav-logout {
  padding: 6px 12px; font-size: 12px; color: rgba(255,255,255,.6);
  cursor: pointer; border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; margin-left: 8px; white-space: nowrap;
  background: transparent; font-family: inherit;
}
.lc-tc-nav-logout:hover { background: rgba(255,255,255,.1); color: white; }

.lc-tc-admin-content { padding: 1.5rem; }
.lc-tc-tab { display: none; }
.lc-tc-tab.active { display: block; }

/* ---- SECTION HEADERS ---- */
.lc-tc-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 10px;
}
.lc-tc-section-title { font-size: 18px; color: var(--lc-primary); font-weight: 700; font-family: Georgia, serif; }
.lc-tc-section-sub   { font-size: 12px; color: var(--lc-muted); margin-top: 2px; }

/* ---- STATS ---- */
.lc-tc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; margin-bottom: 1.5rem; }
.lc-tc-stat-card {
  background: var(--lc-surface); border-radius: var(--lc-radius);
  padding: 1rem 1.25rem; box-shadow: var(--lc-shadow); border-left: 4px solid var(--lc-accent);
}
.lc-tc-stat-card .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--lc-muted); margin-bottom: 4px; }
.lc-tc-stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--lc-primary); }

/* ---- FILTER BAR ---- */
.lc-tc-filter-bar {
  background: var(--lc-surface); border-radius: var(--lc-radius);
  padding: 12px 16px; margin-bottom: 1.25rem;
  box-shadow: var(--lc-shadow); display: flex; gap: 8px;
  flex-wrap: wrap; align-items: flex-end;
}
.lc-tc-filter-group { display: flex; flex-direction: column; gap: 4px; }
.lc-tc-filter-group label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--lc-muted); }
.lc-tc-filter-group select,
.lc-tc-filter-group input { padding: 7px 10px; border: 1.5px solid var(--lc-border); border-radius: 8px; font-size: 13px; color: var(--lc-text); background: var(--lc-bg); min-width: 110px; font-family: inherit; }

/* ---- TABLES ---- */
.lc-tc-table-wrap { background: var(--lc-surface); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow); overflow: hidden; overflow-x: auto; margin-bottom: 1.25rem; }
.lc-tc-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.lc-tc-table-wrap thead th { background: var(--lc-primary); color: rgba(255,255,255,.9); padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.lc-tc-table-wrap tbody tr { border-bottom: 1px solid var(--lc-border); }
.lc-tc-table-wrap tbody tr:last-child { border-bottom: none; }
.lc-tc-table-wrap tbody tr:hover { background: var(--lc-bg); }
.lc-tc-table-wrap tbody td { padding: 9px 12px; color: var(--lc-text); vertical-align: middle; }
.lc-tc-table-wrap tbody td.muted { color: var(--lc-muted); }
.lc-tc-empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--lc-muted); font-size: 13px; }
.lc-tc-edited-row  { background: #fffbf0; }
.lc-tc-edited-badge { display: inline-block; background: var(--lc-warning-bg); color: var(--lc-warning); border: 1px solid var(--lc-accent); border-radius: 4px; font-size: 10px; font-weight: 700; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.lc-tc-tbadge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.lc-tc-badge-active   { background: var(--lc-success-bg); color: var(--lc-success); }
.lc-tc-badge-inactive { background: var(--lc-danger-bg);  color: var(--lc-danger); }
.lc-tc-action-group { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---- MODAL ---- */
.lc-tc-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 99999;
  align-items: center; justify-content: center; padding: 1rem;
}
.lc-tc-modal-overlay.show { display: flex; }
.lc-tc-modal {
  background: var(--lc-surface); border-radius: 14px; padding: 1.75rem;
  width: 100%; max-width: 480px; box-shadow: 0 8px 32px rgba(0,0,0,.2);
  border-top: 4px solid var(--lc-accent); max-height: 90vh; overflow-y: auto;
}
.lc-tc-modal h3 { font-family: Georgia,serif; font-size: 18px; color: var(--lc-primary); margin: 0 0 4px; }
.lc-tc-modal .lc-modal-sub { font-size: 12px; color: var(--lc-muted); margin-bottom: 1.25rem; }
.lc-tc-modal-buttons { display: flex; gap: 8px; margin-top: 1.25rem; justify-content: flex-end; flex-wrap: wrap; }
.lc-tc-modal-buttons .lc-tc-btn { width: auto; }
.lc-tc-orig-vals { background: var(--lc-surface2); border-radius: 8px; padding: 10px 12px; margin-bottom: 1rem; font-size: 12px; }
.lc-tc-orig-vals .ov-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--lc-muted); margin-bottom: 5px; }
.lc-tc-orig-vals .ov-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.lc-tc-orig-vals .ov-key { color: var(--lc-muted); }
.lc-tc-orig-vals .ov-val { font-weight: 600; }
.lc-tc-divider { border: none; border-top: 1px solid var(--lc-border); margin: 1rem 0; }

/* ---- PAY PERIOD REPORT ---- */
.lc-tc-pp-nav {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  background: var(--lc-surface); border-radius: var(--lc-radius);
  padding: 14px 20px; margin-bottom: 1.25rem; box-shadow: var(--lc-shadow); flex-wrap: wrap;
}
.lc-tc-pp-nav-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--lc-border);
  background: var(--lc-bg); cursor: pointer; font-size: 15px; color: var(--lc-primary);
  display: flex; align-items: center; justify-content: center; transition: all .15s; font-family: inherit;
}
.lc-tc-pp-nav-btn:hover { background: var(--lc-primary); color: white; border-color: var(--lc-primary); }
.lc-tc-pp-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.lc-tc-pp-label { text-align: center; min-width: 220px; }
.lc-tc-pp-dates { font-size: 16px; font-weight: 700; color: var(--lc-primary); }
.lc-tc-pp-sub   { font-size: 12px; color: var(--lc-muted); margin-top: 2px; }
.lc-tc-pp-today-btn {
  padding: 5px 12px; font-size: 12px; border-radius: 20px;
  border: 1.5px solid var(--lc-border); background: var(--lc-bg);
  color: var(--lc-muted); cursor: pointer; font-family: inherit; transition: all .15s;
}
.lc-tc-pp-today-btn:hover { background: var(--lc-primary); color: white; border-color: var(--lc-primary); }
.lc-tc-config-bar {
  background: var(--lc-warning-bg); border: 1px solid #e8c44a; border-radius: 8px;
  padding: 7px 14px; margin-bottom: 1.25rem; font-size: 12px; color: var(--lc-warning);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.lc-tc-config-bar strong { color: var(--lc-primary); }

/* Preview table */
.lc-tc-pp-preview { background: var(--lc-surface); border-radius: var(--lc-radius); box-shadow: var(--lc-shadow); overflow: hidden; margin-bottom: 1.25rem; }
.lc-tc-pp-preview table { min-width: 700px; font-size: 12px; width: 100%; border-collapse: collapse; }
.lc-tc-pp-preview thead th { background: var(--lc-primary); color: rgba(255,255,255,.85); padding: 8px 10px; font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; text-align: center; }
.lc-tc-pp-preview thead th.wk-hdr { background: var(--lc-primary-lt); }
.lc-tc-pp-preview thead th.tot-hdr { background: var(--lc-accent); color: var(--lc-primary); }
.lc-tc-pp-preview tbody td { padding: 7px 9px; border-bottom: 1px solid var(--lc-border); vertical-align: middle; }
.lc-tc-pp-preview tbody tr:last-child td { border-bottom: none; }
.lc-tc-dept-row td { background: var(--lc-surface2); font-weight: 700; font-size: 11px; color: var(--lc-primary); text-transform: uppercase; letter-spacing: .5px; }
.lc-tc-ot-row td { background: #fdf5f5; font-size: 11px; color: var(--lc-danger); font-style: italic; }
.lc-tc-ot-row td.ot-val { font-weight: 700; }
.lc-tc-reg-row td.has-hours { color: var(--lc-success); font-weight: 600; text-align: center; }
.lc-tc-reg-row td.is-weekend { color: var(--lc-border); text-align: center; }
.lc-tc-reg-row td.reg-total { background: var(--lc-success-bg); color: var(--lc-success); font-weight: 700; text-align: center; }
.lc-tc-reg-row td.grand-total { background: var(--lc-primary); color: white; font-weight: 700; text-align: center; }
.lc-tc-summary-row td { background: var(--lc-primary); color: white; font-weight: 700; font-size: 12px; }
.lc-tc-loading { text-align: center; padding: 2.5rem; color: var(--lc-muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---- SPINNER ---- */
.lc-tc-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: lc-spin .7s linear infinite; }
.lc-tc-big-spinner { width: 28px; height: 28px; border: 3px solid var(--lc-border); border-top-color: var(--lc-primary); border-radius: 50%; animation: lc-spin .8s linear infinite; }
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* ---- WP ADMIN TWEAKS ---- */
.lc-tc-settings-wrap table { margin-top: 1rem; }
.lc-tc-settings-wrap td, .lc-tc-settings-wrap th { padding: 10px 14px; }

@media (max-width: 600px) {
  .lc-tc-filter-bar { flex-direction: column; }
  .lc-tc-form-row   { grid-template-columns: 1fr; }
  .lc-tc-admin-nav  { padding: 0 .5rem; }
  .lc-tc-admin-content { padding: 1rem; }
}
