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

:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #1a2233;
  --muted: #7a849b;
  --primary: #6f7bf0;
  --primary-dark: #5663e0;
  --accent: #44b85f;
  --accent-soft: #e8f7ee;
  --warn: #f3a44b;
  --blue-ghost: #e6e9ff;
  --shadow: 0 18px 38px rgba(24, 32, 52, 0.12);
  --radius: 16px;
}

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
}

.home {
  background: radial-gradient(600px 300px at 10% 10%, #ffffff, transparent 60%),
    radial-gradient(700px 400px at 90% 10%, #dbe1ff, transparent 55%),
    var(--bg);
}

.home-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.home-card {
  background: var(--panel);
  border-radius: 22px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}

.home-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5a5f, #ffb84c);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08rem;
}

.home-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.home-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.home-links {
  display: grid;
  gap: 0.75rem;
}

.home-links a {
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-links a:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 4rem;
}

.login-card {
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 16px;
  padding: 2.2rem 2.1rem 2.4rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 32, 52, 0.14);
  display: grid;
  place-items: center;
  color: #ef3f46;
  font-weight: 700;
  font-size: 1.1rem;
}

.login-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.login-form {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.login-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.login-form input {
  border: 1px solid #d9def2;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background: #f6f8ff;
}

.login-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(111, 123, 240, 0.3);
}

.btn.success {
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 1.6rem;
  color: var(--primary);
  font-weight: 600;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--panel);
  padding: 1.5rem 1.25rem;
  border-right: 1px solid #e9ecf6;
}

.brand {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.menu {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.menu li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}

.menu .active {
  color: var(--primary);
  font-weight: 700;
  background: var(--blue-ghost);
}

.main-area {
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(111, 123, 240, 0.3);
}

.topbar .user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
}

.content {
  padding: 2rem;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.25rem;
}

.stat-pill {
  border-radius: 999px;
  padding: 0.8rem 1rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.stat-pill.brown { background: #b5804f; }
.stat-pill.purple { background: #6f7bf0; }
.stat-pill.blue { background: #3aa3f0; }
.stat-pill.green { background: #35b96f; }
.stat-pill.teal { background: #2fb6a6; }

.metric-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.5rem;
}

.metric-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.table-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.search-box {
  border: 1px solid #e4e7f5;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  background: #f8f9ff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eef0f6;
}

.action-dot {
  color: var(--primary);
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 48, 0.35);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal {
  background: var(--panel);
  border-radius: 16px;
  width: min(720px, 95vw);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn.outline {
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  background: #fff;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #eef0f6;
  }
}
