/* ── StaffTrack Plugin Styles ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Syne:wght@700;800&display=swap');

#stafftrack-app, .st-login-wrap {
  font-family: 'DM Mono', 'Fira Mono', monospace;
  color: #f1f0ee;
  background: #0f0f13;
  border-radius: 14px;
  overflow: hidden;
  min-height: 500px;
  max-width: 1080px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ── Header ── */
.st-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #0f0f13; border-bottom: 1px solid #1e1e28;
  padding: 16px 28px;
}
.st-logo { font-family:'Syne',sans-serif; font-size:20px; font-weight:800; letter-spacing:-.02em; margin-right:14px; }
.st-user-badge { font-size:12px; color:#666; }
.st-user-badge em { color:#a78bfa; font-style:normal; }
.st-clock-live { font-size:13px; color:#7c3aed; background:#1a0a2e; border:1px solid #3b1a6e; padding:5px 14px; border-radius:20px; margin-right:12px; }
.st-logout-btn { font-size:11px; color:#555; text-decoration:none; letter-spacing:.06em; text-transform:uppercase; border:1px solid #333; padding:5px 12px; border-radius:6px; transition:.2s; }
.st-logout-btn:hover { color:#ef4444; border-color:#ef4444; }

/* ── Tabs ── */
.st-tabs { display:flex; gap:4px; border-bottom:1px solid #1e1e28; padding:0 28px; background:#0f0f13; }
.st-tab { background:none; border:none; cursor:pointer; font-family:inherit; font-size:12px; letter-spacing:.08em; text-transform:uppercase; padding:12px 20px; color:#555; border-bottom:2px solid transparent; transition:.2s; }
.st-tab.active, .st-tab:hover { color:#f1f0ee; }
.st-tab.active { border-bottom-color:#7c3aed; }

/* ── Panels ── */
.st-panel { display:none; padding:28px; }
.st-panel.active { display:block; }

/* ── Clock Card ── */
.st-clock-card { background:#16161e; border:1px solid #262630; border-radius:14px; padding:28px; max-width:520px; margin:0 auto; }
.st-clock-status { display:inline-block; padding:5px 16px; border-radius:20px; font-size:11px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; background:#1f1f2a; color:#555; margin-bottom:22px; }
.st-clock-status.status-in   { background:#052e16; color:#22c55e; }
.st-clock-status.status-out  { background:#082240; color:#60a5fa; }
.st-clock-status.status-done { background:#1a1a1a; color:#888; }
.st-clock-times { display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.st-time-block { flex:1; background:#0f0f13; border-radius:8px; padding:12px; text-align:center; }
.st-time-label { font-size:10px; color:#444; letter-spacing:.07em; margin-bottom:6px; }
.st-time-val { font-size:20px; font-weight:500; color:#ddd; }
.st-time-val.clocked { color:#22c55e; }
.st-time-val.clocked-out { color:#60a5fa; }
.st-time-val.hrs { color:#a78bfa; }
.st-time-divider { color:#333; font-size:18px; }
.st-clock-btns { display:flex; gap:10px; margin-bottom:22px; }
.st-allowance-strip { font-size:12px; color:#555; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.st-allowance-bar-wrap { flex:1; min-width:100px; height:4px; background:#1f1f2a; border-radius:4px; overflow:hidden; }
.st-allowance-bar { height:100%; background:#7c3aed; border-radius:4px; transition:width .4s; }

/* ── Buttons ── */
.st-btn { border:none; border-radius:8px; cursor:pointer; font-family:inherit; font-size:12px; font-weight:500; letter-spacing:.05em; padding:11px 18px; transition:.15s; }
.st-btn:hover { transform:translateY(-1px); filter:brightness(1.1); }
.st-btn:active { transform:translateY(0); }
.st-btn:disabled { opacity:.35; cursor:not-allowed; transform:none; }
.st-btn-in     { background:#22c55e; color:#000; flex:1; }
.st-btn-out    { background:#3b82f6; color:#fff; flex:1; }
.st-btn-purple { background:#7c3aed; color:#fff; }
.st-btn-ghost  { background:#1f1f2a; color:#888; }
.st-btn-approve { background:#22c55e; color:#000; font-size:11px; padding:7px 14px; }
.st-btn-reject  { background:#ef4444; color:#fff; font-size:11px; padding:7px 14px; }

/* ── Sections ── */
.st-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.st-section-title { font-family:'Syne',sans-serif; font-size:17px; font-weight:800; }
.st-section-sub { font-size:12px; color:#666; margin-top:4px; }

/* ── Form Card ── */
.st-form-card { background:#16161e; border:1px solid #262630; border-radius:12px; padding:22px; margin-bottom:22px; }
.st-form-title { font-size:14px; font-weight:500; margin-bottom:16px; }
.st-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.st-form-group { margin-bottom:14px; }
.st-form-group label { font-size:10px; color:#666; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:6px; }
.st-form-group input { background:#0f0f13; border:1px solid #333; border-radius:7px; color:#f1f0ee; font-family:inherit; font-size:13px; padding:10px 13px; width:100%; outline:none; transition:.2s; box-sizing:border-box; }
.st-form-group input:focus { border-color:#7c3aed; }
.st-form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:8px; }
.st-form-preview { background:#1a0a2e; border:1px solid #3b1a6e; border-radius:7px; padding:9px 13px; font-size:12px; color:#a78bfa; margin-bottom:10px; }

/* ── Holiday cards ── */
.st-hol-card { background:#16161e; border:1px solid #262630; border-radius:10px; padding:14px 16px; display:flex; align-items:center; gap:14px; margin-bottom:10px; }
.st-hol-dates { flex:1; }
.st-hol-main { font-size:13px; color:#ddd; }
.st-hol-sub { font-size:11px; color:#555; margin-top:3px; }
.st-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.st-badge-pending  { background:#fef3c7; color:#92400e; }
.st-badge-approved { background:#dcfce7; color:#14532d; }
.st-badge-rejected { background:#fee2e2; color:#7f1d1d; }

/* ── Time Log Table ── */
.st-table-wrap { overflow-x:auto; }
.st-tlog-table { width:100%; border-collapse:collapse; font-size:13px; }
.st-tlog-table th { background:#16161e; color:#555; font-size:10px; text-transform:uppercase; letter-spacing:.07em; font-weight:400; padding:10px 14px; text-align:left; border-bottom:1px solid #1e1e28; }
.st-tlog-table td { padding:10px 14px; border-bottom:1px solid #1a1a22; color:#bbb; }
.st-tlog-table tr:last-child td { border:none; }
.c-in  { color:#22c55e; }
.c-out { color:#60a5fa; }
.c-hrs { color:#a78bfa; }
.c-na  { color:#333; }

/* ── Manager tabs ── */
.st-manager-tabs { display:flex; gap:6px; margin-bottom:22px; flex-wrap:wrap; }
.st-mtab { background:#16161e; border:1px solid #262630; border-radius:7px; cursor:pointer; font-family:inherit; font-size:11px; letter-spacing:.07em; text-transform:uppercase; padding:9px 16px; color:#666; transition:.2s; }
.st-mtab.active { background:#7c3aed22; border-color:#7c3aed; color:#a78bfa; }
.st-mpanel { display:none; }
.st-mpanel.active { display:block; }

/* ── Manager attendance ── */
.st-att-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.st-att-card { background:#16161e; border:1px solid #262630; border-radius:10px; padding:14px 16px; border-left:3px solid #262630; }
.st-att-card.border-in   { border-left-color:#22c55e; }
.st-att-card.border-done { border-left-color:#3b82f6; }
.st-att-name { font-size:13px; font-weight:500; color:#ddd; margin-bottom:8px; }
.st-att-times { display:flex; gap:8px; font-size:11px; }
.st-att-time { flex:1; background:#0f0f13; border-radius:5px; padding:6px 8px; }
.st-att-time-label { color:#444; margin-bottom:2px; font-size:10px; }

/* ── Manager review card ── */
.st-review-card { background:#16161e; border:1px solid #262630; border-radius:10px; padding:14px 16px; display:flex; align-items:center; gap:14px; margin-bottom:10px; flex-wrap:wrap; }
.st-review-info { flex:1; min-width:200px; }
.st-review-name { font-size:13px; color:#ddd; margin-bottom:3px; }
.st-review-dates { font-size:12px; color:#666; }
.st-review-btns { display:flex; gap:8px; }

/* ── Empty / Loading ── */
.st-empty { text-align:center; padding:50px 20px; color:#444; font-size:13px; }
.st-loading { text-align:center; padding:40px; color:#444; font-size:12px; }

/* ── Toast ── */
.st-toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(30px); background:#22c55e; color:#000; padding:10px 24px; border-radius:24px; font-size:13px; font-weight:500; opacity:0; transition:.3s; pointer-events:none; z-index:9999; white-space:nowrap; box-shadow:0 4px 20px rgba(0,0,0,.4); }
.st-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.st-toast.error { background:#ef4444; color:#fff; }
.st-toast.warn  { background:#f59e0b; color:#000; }

/* ── Login ── */
.st-login-wrap { display:flex; align-items:center; justify-content:center; min-height:400px; background:#0f0f13; }
.st-login-card { background:#16161e; border:1px solid #262630; border-radius:14px; padding:36px 32px; width:100%; max-width:380px; }
.st-login-logo { font-family:'Syne',sans-serif; font-size:22px; font-weight:800; margin-bottom:6px; }
.st-login-sub  { font-size:12px; color:#555; margin-bottom:24px; }
.st-login-card .login-username label,
.st-login-card .login-password label { font-size:11px; color:#666; letter-spacing:.07em; text-transform:uppercase; }
.st-login-card input[type=text],
.st-login-card input[type=password] { background:#0f0f13; border:1px solid #333; border-radius:8px; color:#f1f0ee; font-family:inherit; font-size:14px; padding:11px 14px; width:100%; box-sizing:border-box; outline:none; margin-bottom:14px; }
.st-login-card input[type=submit] { background:#7c3aed; border:none; border-radius:8px; color:#fff; cursor:pointer; font-family:inherit; font-size:13px; font-weight:500; letter-spacing:.06em; padding:12px; width:100%; }
.st-login-card input[type=submit]:hover { filter:brightness(1.1); }
.st-login-card .login-remember { font-size:12px; color:#666; }
.st-login-card #nav, .st-login-card #backtoblog { display:none; }
