@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #6b7890;
  --line: #e6ecf5;
  --brand: #1155cc;
  --brand-strong: #0a3c93;
  --ok: #067647;
  --warn: #b54708;
  --danger: #b42318;
}

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

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(17, 85, 204, 0.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 159, 67, 0.1), transparent 35%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #182748 100%);
  color: #eef4ff;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  display: grid;
  gap: 2px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand strong {
  font-size: 22px;
}

.brand span {
  font-size: 12px;
  color: rgba(238, 244, 255, 0.75);
}

.menu {
  list-style: none;
  display: grid;
  gap: 6px;
}

.menu a {
  text-decoration: none;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(238, 244, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu a.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #eaf2ff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-soft {
  background: #e8f0ff;
  color: var(--brand-strong);
}

.main {
  margin-left: 260px;
  flex: 1;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.15;
}

.hero p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card h3 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.stat-card p {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 700;
}

.stat-card small {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 20px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}

th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.muted {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: #e7f8ef;
  color: var(--ok);
}

.status-warning {
  background: #fff4e8;
  color: var(--warn);
}

.status-danger {
  background: #fee9e7;
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  color: #475467;
  font-weight: 600;
}

input,
select,
textarea {
  border: 1px solid #d5deeb;
  border-radius: 10px;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(17, 85, 204, 0.25);
  border-color: var(--brand);
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-mode label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #344054;
}

.payment-mode input[type="radio"] {
  width: 16px;
  height: 16px;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-link-btn {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #dbe5f4;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-link-btn strong {
  font-size: 14px;
}

.quick-link-btn span {
  font-size: 12px;
  color: #49566f;
}

.quick-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
}

.quick-upload {
  background: linear-gradient(135deg, #e8f1ff, #d9e9ff);
}

.quick-users {
  background: linear-gradient(135deg, #edf8ee, #ddf2df);
}

.quick-payments {
  background: linear-gradient(135deg, #fff3e8, #ffe6d1);
}

.image-input-list {
  display: grid;
  gap: 8px;
}

.image-input-row {
  display: flex;
  gap: 8px;
}

.image-input-row input {
  flex: 1;
}

.image-input-row .image-file-input {
  flex: 0 0 170px;
  min-height: 40px;
  padding: 8px;
}

.icon-btn {
  min-width: 40px;
  padding: 0;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.add-image-btn {
  justify-self: start;
}

.btn-danger-outline {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.35);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.design-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.design-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #edf2fa;
}

.design-card .content {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 0;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
}

.premium-login {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 181, 226, 0.2), transparent 38%),
    radial-gradient(circle at 82% 82%, rgba(255, 107, 53, 0.2), transparent 40%),
    linear-gradient(120deg, #071126, #0b1a38 60%, #0f224c);
}

.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.65;
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(22, 163, 255, 0.8), rgba(15, 35, 95, 0.2));
  top: -60px;
  left: 10%;
}

.orb-two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 120, 78, 0.9), rgba(157, 53, 17, 0.15));
  bottom: -120px;
  right: 14%;
  animation-delay: 1.3s;
}

.orb-three {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(73, 219, 165, 0.85), rgba(10, 78, 79, 0.2));
  top: 40%;
  left: 48%;
  animation-delay: 0.6s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 90%);
  opacity: 0.35;
}

.login-showcase {
  position: relative;
  z-index: 2;
  color: #edf4ff;
  max-width: 560px;
  animation: slideInLeft 0.9s ease both;
}

.showcase-label {
  display: inline-flex;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: #9bd7ff;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(155, 215, 255, 0.4);
  background: rgba(8, 35, 71, 0.5);
}

.login-showcase h1 {
  margin-top: 14px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.login-showcase p {
  margin-top: 14px;
  max-width: 500px;
  line-height: 1.7;
  color: rgba(237, 244, 255, 0.88);
  font-size: 16px;
}

.premium-card {
  position: relative;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 65px rgba(2, 11, 33, 0.45);
  border-radius: 22px;
  padding: 24px;
  animation: slideInCard 0.9s ease both;
}

.premium-card .section-head h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 28px;
}

.login-chip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b4dc2;
  border: 1px solid rgba(11, 77, 194, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(235, 243, 255, 0.9);
}

.login-form {
  margin-top: 14px;
}

.premium-card label {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 600;
}

.premium-card input {
  border: 1px solid #c5d4ec;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-card input:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 85, 204, 0.2);
}

.login-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: buttonSweep 3.4s ease-in-out infinite;
}

.login-error {
  background: #fee9e7;
  border-color: #fecdc9;
  color: #b42318;
}

.login-creds {
  background: #eff6ff;
  border-color: #cbdffc;
  color: #1e40af;
}

.login-footer {
  margin-top: 14px;
}

.premium-card.is-error {
  animation: shakeCard 0.38s ease;
}

.login-note {
  background: #f5f9ff;
  border: 1px solid #dbe7fb;
  color: #1d4ed8;
  border-radius: 10px;
  font-size: 13px;
  padding: 10px;
  margin-top: 10px;
}

.footer {
  color: var(--muted);
  font-size: 12px;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.03);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInCard {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonSweep {
  0% {
    left: -120%;
  }
  42% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes shakeCard {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@media (max-width: 980px) {
  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .premium-login {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .login-showcase {
    max-width: none;
    text-align: center;
  }

  .login-showcase p {
    margin-inline: auto;
  }

  .premium-card {
    width: min(460px, 100%);
    margin-inline: auto;
  }
}
