/* =========================
   GLOBAL THEME
   ========================= */

:root {
  --bg-body: #020617;
  --bg-main: #020617;
  --bg-card: #0b1120;
  --bg-soft: #020617;
  --border-subtle: #1e293b;

  --primary: #22c55e;   /* green */
  --accent: #38bdf8;    /* cyan */
  --accent2: #a855f7;   /* purple */
  --accent3: #f97316;   /* orange */

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 55px rgba(15,23,42,0.9);

  --fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #000 70%);
  color: var(--text-main);
}

/* LINKS */

a {
  color: inherit;
  text-decoration: none;
}

/* MAIN CONTAINER */

.shell {
  max-width: 1180px;
  margin: 22px auto 40px;
  padding: 0 20px 32px;
}

/* =========================
   TOP BAR (sabhi pages)
   ========================= */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--accent2), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #022c22;
  box-shadow: 0 14px 40px rgba(34,197,94,0.7);
}

.logo-text {
  font-size: 19px;
  font-weight: 600;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-user {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================
   BUTTONS
   ========================= */

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--fast), color var(--fast),
              box-shadow var(--fast), transform var(--fast),
              border-color var(--fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4ade80);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(34,197,94,0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(34,197,94,0.8);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.9);
}

/* =========================
   DASHBOARD CARDS
   ========================= */

.dashboard-header-title {
  font-size: 22px;
  font-weight: 600;
}

.dashboard-header-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card-link {
  display: block;
}

.card {
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px 16px;
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 65px rgba(15,23,42,0.95);
  border-color: rgba(56,189,248,0.9);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.card-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--text-muted);
}

/* Small coloured bar on top of each card */

.card-bar {
  height: 3px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.card-bar-blue   { background: linear-gradient(90deg,#38bdf8,#6366f1); }
.card-bar-purple { background: linear-gradient(90deg,#a855f7,#ec4899); }
.card-bar-green  { background: linear-gradient(90deg,#22c55e,#16a34a); }
.card-bar-orange { background: linear-gradient(90deg,#f97316,#facc15); }
.card-bar-cyan   { background: linear-gradient(90deg,#06b6d4,#0ea5e9); }

/* =========================
   FLASH
   ========================= */

.flash {
  font-size: 12px;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.7);
}

/* =========================
   GENERIC FORM + TABLE
   (Masters / Hotels / Cities etc.)
   ========================= */

.form-card,
.table-card {
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 12px 14px 14px;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: rgba(15,23,42,0.95);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 13px;
  margin-top: 3px;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}

.textarea {
  min-height: 80px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
  background: #020617;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}

.table th,
.table td {
  border: 1px solid #111827;
  padding: 7px 9px;
  vertical-align: top;
}

.table th {
  background: #020617;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
}

.table tr:nth-child(even) td {
  background: rgba(15,23,42,0.9);
}

.table tr:nth-child(odd) td {
  background: rgba(15,23,42,0.75);
}

/* mobiles */

@media (max-width: 640px) {
  .shell {
    padding: 0 14px 28px;
  }
}
