/* =========================================================
 assets/css/admin.css
   ADMIN DASHBOARD STYLESHEET
========================================================= */

/* -------------------- THEME -------------------- */
:root {
  --violet: #4b2fa8;
  --indigo: #5a6cff;
  --bg: #f5f7ff;
  --card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e5e7eb;
}

/* -------------------- RESET -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial;
  background: linear-gradient(180deg, #f7f9ff, #eef2ff);
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER / NAVBAR (FIXED ONCE & FOR ALL)
========================================================= */
.oa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.oa-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- LOGO ---------- */
.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  height: 60px;
}

/* ---------- HAMBURGER ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* ---------- NAV LINKS (MOBILE) ---------- */
.nav-links {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #8093ff94);
}

.nav-links a {
  padding: 16px 22px;
  color: #000000;
  font-size: 0.95rem;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-links.show {
  display: flex;
}

/* CTA (mobile) */
.nav-cta {
  margin: 18px;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
}

/* =========================================================
   DESKTOP NAVBAR (CLEAN & PROFESSIONAL)
========================================================= */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    background: none;
  }

  .nav-links a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    padding: 0;
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--indigo));
    transition: width 0.25s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-cta {
    margin: 0 0 0 12px;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(90,108,255,0.35);
  }
}

/* =========================================================
   PAGE OFFSET (PREVENT OVERLAP)
========================================================= */
main.container {
  padding-top: 96px;
  padding-bottom: 80px;
}

/* =========================================================
   DASHBOARD
========================================================= */
.page-title {
  margin-bottom: 28px;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--violet), var(--indigo));
  border-radius: 50px;
  padding: 9px;
  padding-left: 20px;
  /* -webkit-background-clip: text; */
  -webkit-text-fill-color: #ffffff;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}


/* =========================================================
   FORMS
========================================================= */
.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  padding: 32px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(90, 108, 255, 0.15);
}


/* =========================================================
   LOGIN PAGE (ALREADY GOOD, JUST KEEP)
========================================================= */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--violet), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.auth-card button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  cursor: pointer;
}
/* =========================================================
   FOOTER
========================================================= */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

footer .container {
  padding: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}


.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 14px;
  border-radius: 10px;
  border: none;
  background: #e6ebf2;
  font-size: 15px;
}

.password-wrapper span {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #4a5bdc;
  font-weight: 600;
  transition: 0.3s;
}

.password-wrapper span:hover {
  color: #2c39b3;
}

.login-logo {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 290px;
  height: auto;
}


