/* ================================
   ROOT & RESET
================================ */
:root {
  --bg-1: #0b1220;
  --bg-2: #0f1b2d;
  --accent: #ff4b2b;
  --accent-2: #ff416c;
  --text: #e8ecf1;
  --muted: #aab3c2;
  --glass: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.22);
  --success: #22c55e;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

/* ================================
   BACKGROUND
================================ */
body {
  background:
    radial-gradient(900px 400px at 20% -10%, #243b55 0%, transparent 60%),
    radial-gradient(900px 400px at 80% 110%, #1b3a4b 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
}

/* ================================
   PAGE LAYOUT
================================ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP NAV */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}

.top-nav .brand {
  font-weight: 700;
  letter-spacing: .4px;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  opacity: .85;
}
.top-nav a:hover { opacity: 1; }

/* CENTERED CONTAINERS */
.auth-container,
.content-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

/* ================================
   GLASS CARDS
================================ */
.auth-card,
.content-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 34px 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}

.auth-card.wide,
.content-card.wide {
  max-width: 640px;
}

.invoice-card {
  max-width: 760px;
}

/* ================================
   HEADINGS
================================ */
.auth-title,
.card-title,
.invoice-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
}

.card-title {
  font-size: 18px;
  margin-bottom: 14px;
}

/* ================================
   ALERTS
================================ */
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error {
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.35);
}
.alert-success {
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.35);
}

/* ================================
   FORMS
================================ */
.auth-form,
.profile-form,
.category-form {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.18);
  color: var(--text);
  outline: none;
  font-size: 15px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.6);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

select option {
  color: #000;
}

/* ================================
   BUTTONS
================================ */
.form-actions { margin-top: 8px; }

.btn,
button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

.btn:disabled,
button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
}

/* ================================
   CATEGORY LIST
================================ */
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.16);
  margin-bottom: 12px;
  cursor: pointer;
}

/* ================================
   DASHBOARD GRID
================================ */
.dashboard-grid {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ================================
   STATUS
================================ */
.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.status-paid {
  background: rgba(34,197,94,.25);
  color: var(--success);
}

.status-pending {
  background: rgba(245,158,11,.25);
  color: var(--warning);
}

/* ================================
   DASHBOARD FIXES (IMPORTANT)
================================ */
.dashboard-grid .content-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-grid .content-card button,
.dashboard-grid .content-card .btn {
  width: auto;
  align-self: flex-start;
  padding: 10px 18px;
}

/* ================================
   CATEGORY RADIO ALIGN FIX
================================ */

/* category card */
.category-item,
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* left side (radio + text) */
.category-item .category-left,
.category-row span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* radio button fix */
.category-item input[type="radio"],
.category-row input[type="radio"] {
  margin: 0;
  transform: translateY(-1px); /* micro-align */
}

/* text stability */
.category-item label,
.category-row label,
.category-row span {
  line-height: 1.4;
}


/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-card,
  .content-card {
    padding: 26px 22px;
  }
  .auth-title { font-size: 22px; }
}

/* ================================
   FORM FONT CONSISTENCY FIX
================================ */
input,
textarea,
select,
button {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
}
/* ================================
   INVOICE BUTTON – CORRECT
================================ */
.invoice-card button {
  width: auto;
  min-width: 220px;
  margin: 18px auto 0;
  display: block;
}

/* ================================
   INVOICE TEXT ALIGNMENT FIX
================================ */
.invoice-card {
  text-align: center;
}

.invoice-card .invoice-header,
.invoice-card .invoice-meta {
  justify-content: center;
  text-align: center;
}

.invoice-card table,
.invoice-card .invoice-table {
  margin: 16px auto 0;
  width: 100%;
  max-width: 520px;
}

.invoice-card th,
.invoice-card td {
  text-align: left;
}

.invoice-card th:last-child,
.invoice-card td:last-child {
  text-align: right;
}

.invoice-card .status,
.invoice-card .status-pending,
.invoice-card .status-paid {
  display: inline-block;
  margin-left: 6px;
}

/* ================================
   AUTH PAGES LOGO (SIGNUP / LOGIN)
   CSS ONLY â€“ NO HTML CHANGE
================================ */

.auth-card {
  position: relative;
  padding-top: 90px; /* logo ke liye space */
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 48px;
  background-image: url("../images/logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* ================================
   AUTH FOOTER LINK VISIBILITY FIX
================================ */
.auth-footer,
.auth-footer span {
  color: #cfd6e4; /* readable light grey */
}

.auth-footer a {
  color: #ff9fb5;          /* soft pink (matches theme) */
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: #ffd1dc;          /* lighter on hover */
}

/* ================================
   HOME PAGE LOGO (ELISYAN INDIA)
================================ */

.home-page .top-nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 700;
}

/* logo image */
.home-page .top-nav .brand img {
  height: 56px;      /* ðŸ‘ˆ bigger logo */
  width: auto;
  object-fit: contain;
}

/* =========================
   FORCE PAY NOW CLICK FIX
========================= */
#payBtn {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* FORCE ENABLE PAY NOW BUTTON */
.invoice-card #payBtn {
  opacity: 1 !important;
  cursor: pointer !important;
}

