/* ============================================
   LAKSHERA ADMIN — DESIGN TOKENS
   ============================================ */
:root {
  --aubergine: #2B003B;
  --aubergine-light: #3E0A54;
  --aubergine-pale: #F6F1F8;
  --gold: #C9974A;
  --gold-light: #E3BD7D;
  --gold-dark: #A8792F;
  --white: #FFFFFF;
  --ink: #241528;
  --ink-soft: #6B5C72;
  --border: #E8E1EC;
  --bg: #FAF8FB;
  --success: #2E8B57;
  --success-bg: #E7F4EC;
  --danger: #C0392B;
  --danger-bg: #FBEAE8;
  --pending-bg: #FBF3E3;
  --pending: #B9791C;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(43, 0, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 0, 59, 0.10);
  --shadow-gold: 0 10px 24px rgba(201, 151, 74, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--gold-light); color: var(--aubergine); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 10px; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   ICON DISCS (no SVG — Font Awesome glyphs
   set inside styled circular/rounded chips)
   ============================================ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.icon-chip.gold { background: rgba(201,151,74,0.14); color: var(--gold-dark); }
.icon-chip.aubergine { background: rgba(43,0,59,0.08); color: var(--aubergine); }
.icon-chip.success { background: var(--success-bg); color: var(--success); }
.icon-chip.danger { background: var(--danger-bg); color: var(--danger); }
.icon-chip.pending { background: var(--pending-bg); color: var(--pending); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--aubergine);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(201,151,74,0.4); }

.btn-dark {
  background: var(--aubergine);
  color: var(--white);
}
.btn-dark:hover { background: var(--aubergine-light); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--aubergine);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--aubergine); }

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}
.btn-danger-outline:hover { background: var(--danger-bg); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-icon-only {
  width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--aubergine);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .icon {
  position: absolute;
  left: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}
.input-wrap input, .input-wrap select {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-wrap input:focus, .input-wrap select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,151,74,0.14);
  outline: none;
}
.input-wrap .toggle-visibility {
  position:relative ;
  right: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
/* Browser oda built-in password reveal icon (Edge/Chrome) hide pannuvom,
   illana namma custom eye button oda sேrந்து 2 eye icons theriyும். */
.input-wrap input[type="password"]::-ms-reveal,
.input-wrap input[type="password"]::-ms-clear {
  display: none;
}
.input-wrap input[type="password"]::-webkit-credentials-auto-fill-button,
.input-wrap input[type="password"]::-webkit-strong-password-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}
input[type="text"].plain, input[type="number"].plain, textarea.plain {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  background: var(--white);
}
input[type="text"].plain:focus, input[type="number"].plain:focus, textarea.plain:focus,
select.plain:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,151,74,0.14);
  outline: none;
}
select.plain {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  background: var(--white);
}

/* ============================================
   TOAST
   ============================================ */
#toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 260px;
  background: var(--aubergine);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  animation: toastIn 0.25s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}