/**
 * light.css — RAL Leave Portal Light Theme
 * Used by: login.php, employee/dashboard.php, employee/history.php, employee/register.php
 */

/* ─── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Top nav ──────────────────────────────────────────────────── */
.lnav {
  height: 58px;
  background: #0d111a;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.lnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
}
.lnav-brand img { width: 28px; height: 28px; object-fit: contain; }
.lnav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lnav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lnav-link--danger { color: #f87171; }
.lnav-link--danger:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }

/* ─── Page shell ───────────────────────────────────────────────── */
.lpage { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }

/* ─── Page heading ─────────────────────────────────────────────── */
.lpage-head { margin-bottom: 28px; }
.lpage-head h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.lpage-head p { font-size: 0.875rem; color: #64748b; margin-top: 4px; }

/* ─── Welcome banner ───────────────────────────────────────────── */
.lwelcome {
  background: linear-gradient(135deg, #052e16 0%, #065f46 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.lwelcome-av {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.lwelcome h2 { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 3px; }
.lwelcome p  { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin: 0; }

/* ─── Stat cards ───────────────────────────────────────────────── */
.lstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.lstat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.lstat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lstat-icon svg { width: 20px; height: 20px; }
.lstat-icon--green { background: #f0fdf4; color: #16a34a; }
.lstat-icon--amber { background: #fffbeb; color: #d97706; }
.lstat-icon--red   { background: #fef2f2; color: #dc2626; }
.lstat-icon--blue  { background: #eff6ff; color: #2563eb; }
.lstat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.lstat-value { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1; }

/* ─── Section title ────────────────────────────────────────────── */
.lsection { font-size: 0.9375rem; font-weight: 700; color: #0f172a; margin-bottom: 14px; }

/* ─── Quick action tiles ───────────────────────────────────────── */
.ltiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.ltile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ltile:hover { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
.ltile-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ltile-icon--green { background: #f0fdf4; }
.ltile-icon--green svg { stroke: #16a34a; width: 18px; height: 18px; }
.ltile-icon--blue  { background: #eff6ff; }
.ltile-icon--blue  svg { stroke: #2563eb; width: 18px; height: 18px; }
.ltile h3 { font-size: 0.9rem; font-weight: 700; color: #0f172a; margin: 0; }
.ltile p  { font-size: 0.8rem; color: #64748b; margin: 0; }

/* ─── Card ─────────────────────────────────────────────────────── */
.lcard {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 24px;
}
.lcard-head {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lcard-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

/* ─── Table ────────────────────────────────────────────────────── */
.ltable-wrap { overflow-x: auto; }
.ltable { width: 100%; border-collapse: collapse; }
.ltable thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.ltable tbody td {
  padding: 12px 14px;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.ltable tbody tr:last-child td { border-bottom: none; }
.ltable tbody tr:hover td { background: #f8fafc; }
.ltable-empty {
  text-align: center;
  padding: 36px 14px;
  color: #94a3b8;
  font-size: 0.875rem;
}
.ltable-empty a { color: #16a34a; font-weight: 600; text-decoration: none; }
.ltable-id { font-size: 0.75rem; color: #94a3b8; font-weight: 600; }

/* ─── Badge ────────────────────────────────────────────────────── */
.lbadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lbadge--pending  { background: #fef3c7; color: #92400e; }
.lbadge--approved { background: #dcfce7; color: #14532d; }
.lbadge--rejected { background: #fee2e2; color: #991b1b; }

/* ─── Flash ────────────────────────────────────────────────────── */
.lflash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.lflash--error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.lflash--success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

/* ─── View-all link ────────────────────────────────────────────── */
.lview-all {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #16a34a;
  text-decoration: none;
  font-weight: 600;
}
.lview-all:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN SPLIT PANEL (light)
═══════════════════════════════════════════════════════════════ */
.lsp-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f1f5f9;
}
.lsp {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
/* Left: form */
.lsp-form {
  background: #ffffff;
  padding: 3.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lsp-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 0.65rem;
}
.lsp-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.lsp-sub { font-size: 0.875rem; color: #94a3b8; margin-bottom: 2rem; }
.lsp-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.lsp-field label { font-size: 0.75rem; font-weight: 700; color: #475569; letter-spacing: 0.03em; }
.lsp-field input {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.lsp-field input::placeholder { color: #cbd5e1; }
.lsp-field input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
  background: #fff;
}
.lsp-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
.lsp-btn:hover { background: #1e293b; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.lsp-footer { margin-top: 1.75rem; font-size: 0.78rem; color: #94a3b8; text-align: center; }
.lsp-footer a { color: #16a34a; text-decoration: none; font-weight: 600; }
.lsp-footer a:hover { text-decoration: underline; }
/* Right: brand */
.lsp-brand {
  background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}
.lsp-brand-logo { width: 90px; margin-bottom: 1.5rem; opacity: 0.9; }
.lsp-brand-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}
.lsp-brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
.lsp-brand-desc { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.lsp-version {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
  border: 1.5px solid #16a34a;
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(22,163,74,0.08);
}
@media (max-width: 640px) {
  .lsp { grid-template-columns: 1fr; }
  .lsp-brand { display: none; }
  .lsp-form { padding: 2.5rem 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   REGISTER CARD
═══════════════════════════════════════════════════════════════ */
.lreg-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f1f5f9;
}
.lreg-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.lreg-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.lreg-logo img { width: 30px; height: 30px; object-fit: contain; }
.lreg-logo span { font-size: 0.85rem; font-weight: 700; color: #64748b; }
.lreg-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.lreg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .lreg-row { grid-template-columns: 1fr; } }
.lreg-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.lreg-field label { font-size: 0.75rem; font-weight: 700; color: #475569; letter-spacing: 0.03em; }
.lreg-req { color: #dc2626; }
.lreg-field input,
.lreg-field select {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}
.lreg-field input::placeholder { color: #cbd5e1; }
.lreg-field input:focus,
.lreg-field select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
  background: #fff;
}
.lreg-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.lreg-btn {
  width: 100%;
  padding: 0.875rem;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.18s;
}
.lreg-btn:hover { background: #1e293b; }
.lreg-alt { margin-top: 1.25rem; font-size: 0.82rem; color: #64748b; text-align: center; }
.lreg-alt a { color: #16a34a; text-decoration: none; font-weight: 600; }
.lreg-alt a:hover { text-decoration: underline; }

/* ── Pagination (used in history.php) ────────────────────── */
.pg-btn {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .38rem .7rem; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 6px; font-family: inherit; font-size: .8rem;
  font-weight: 600; color: #475569; text-decoration: none;
  cursor: pointer; transition: all .15s; line-height: 1;
}
.pg-btn:hover { border-color: #16a34a; color: #15803d; background: rgba(22,163,74,.06); }
.pg-btn--active { background: #15803d; border-color: #15803d; color: #fff; }
