/* ============================================================
   LendPro LMS — HR Module
   assets/css/main.css  (shared base)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --brand:        #e8b86d;
  --brand-dim:    rgba(232,184,109,0.12);
  --brand-glow:   rgba(232,184,109,0.25);
  --cyan:         #6d9fe8;
  --success:      #6fcfa0;
  --danger:       #e07070;
  --warning:      #e8c96d;
  --info:         #6db8e8;

  /* Dark theme (default) */
  --bg:           #0d0f14;
  --bg-2:         #11141c;
  --surface:      #13161e;
  --surface-2:    #1a1e2a;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.13);
  --text:         #edeae3;
  --text-2:       #b8b5ae;
  --muted:        #7a7872;
  --input-bg:     rgba(255,255,255,0.04);

  /* Sidebar */
  --sidebar-w:    240px;

  /* Transitions */
  --ease:         cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
  --bg:           #f4f1eb;
  --bg-2:         #ece9e2;
  --surface:      #ffffff;
  --surface-2:    #f8f6f1;
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --text:         #1a1814;
  --text-2:       #4a4740;
  --muted:        #888680;
  --input-bg:     rgba(0,0,0,0.03);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'DM Serif Display', serif; line-height: 1.2; }

/* ── Utilities ── */
.text-brand  { color: var(--brand); }
.text-muted  { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }
.w-full      { width: 100%; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 12px; }
.mt-1        { margin-top: 4px; }
.mt-2        { margin-top: 8px; }
.mt-3        { margin-top: 12px; }
.mt-4        { margin-top: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn i { font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, #e8b86d, #c99040);
  color: #0d0f14;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 24px var(--brand-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--input-bg); }
.btn-danger {
  background: rgba(224,112,112,0.15);
  color: var(--danger);
  border: 1px solid rgba(224,112,112,0.25);
}
.btn-danger:hover { background: rgba(224,112,112,0.25); }
.btn-success {
  background: rgba(111,207,160,0.15);
  color: var(--success);
  border: 1px solid rgba(111,207,160,0.25);
}
.btn-success:hover { background: rgba(111,207,160,0.25); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 0.95rem; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pending  { background: rgba(232,201,109,0.15); color: var(--warning); border: 1px solid rgba(232,201,109,0.25); }
.badge-approved { background: rgba(111,207,160,0.15); color: var(--success); border: 1px solid rgba(111,207,160,0.25); }
.badge-rejected { background: rgba(224,112,112,0.15); color: var(--danger);  border: 1px solid rgba(224,112,112,0.25); }
.badge-info     { background: rgba(109,184,232,0.15); color: var(--info);    border: 1px solid rgba(109,184,232,0.25); }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.card-sm { padding: 16px; border-radius: 12px; }

/* ── Form controls ── */
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--muted); opacity: 0.6; }
.form-control:focus {
  border-color: rgba(232,184,109,0.4);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.85rem;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: toastIn 0.3s var(--ease);
}
.toast.removing { animation: toastOut 0.3s var(--ease) forwards; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--brand); }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } }
@keyframes toastOut { to   { opacity:0; transform:translateX(20px); } }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.animate-fadeUp { animation: fadeUp 0.6s var(--ease) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }