/* ==========================================================================
   Ndaki Pharmaceuticals — POS System
   Shared theme. Every page in the app pulls its colors, type and base
   components from here — keep page-specific CSS out of this file.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* -- Brand ------------------------------------------------------------ */
  --ink:        #0E2A4A;   /* primary navy — headers, primary surfaces   */
  --ink-2:      #16385C;   /* secondary navy — gradients, hovers         */
  --ink-soft:   #E7ECF1;   /* navy tinted onto light backgrounds         */
  --green:      #1E9D5C;   /* signal green — primary actions, success    */
  --green-dark: #157A44;   /* pressed / hover state for green            */

  /* -- Neutrals ----------------------------------------------------------*/
  --paper:      #F5F8FA;   /* app background                             */
  --card:       #FFFFFF;
  --line:       #E2E8ED;
  --slate:      #5C6B7A;   /* muted / secondary text                     */
  --text:       #172336;   /* primary text                               */

  /* -- Type --------------------------------------------------------------*/
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* -- Misc ----------------------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 20px 50px -20px rgba(14, 42, 74, 0.35);
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

a{ color: var(--green-dark); }

button{ font-family: inherit; }

/* -- Buttons --------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(14,42,74,.55);
}
.btn-primary:hover{ background: var(--ink-2); }

.btn-accent{
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(30,157,92,.5);
}
.btn-accent:hover{ background: var(--green-dark); }

/* -- Form fields ------------------------------------------------------- */
.field{
  position: relative;
  margin-bottom: 16px;
}
.field input{
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 44px 14px 44px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder{ color: #93A2B1; }
.field input:focus{
  border-color: var(--green);
  background: #fff;
}
.field .icon-left{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  pointer-events: none;
}
.field .icon-right{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}
.field .icon-right:focus-visible,
.btn:focus-visible,
a:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}