/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617, #000000 70%);
  color: #e5e7eb;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== APP LAYOUT ========== */

.app {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */

.sidebar {
  width: 240px;
  padding: 16px;
  background: radial-gradient(circle at top left, #111827, #020617);
  display: flex;
  flex-direction: column;
}

/* ছোট লোগো + ব্র্যান্ড টেক্সট */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 16px 4px;
}

.sidebar-brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar-brand-text div:first-child {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.sidebar-brand-sub {
  font-size: 11px;
  color: #9ca3af;
}

/* ===== SIDEBAR MENU (লম্বা, bold, pill style) ===== */
.sidebar-nav {
  margin-top: 6px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.sidebar-link:hover {
  background: #1e293b;
  color: #f97316;
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
}

/* সাইডবারের নিচের অংশ (admin info + logout) */
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.admin-role {
  font-size: 11px;
  color: #9ca3af;
}

/* ===== CONTENT AREA ===== */

.content {
  flex: 1;
  padding: 16px 20px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
}

.content-footer {
  margin-top: 24px;
  font-size: 12px;
  color: #6b7280;
}

/* ========== GRID & CARDS ========== */

.grid {
  display: grid;
  gap: 12px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* সাধারণ কার্ড (অন্যান্য পেজে) */
.card {
  background: #020617;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #1f2937;
}

.stat-label {
  font-size: 12px;
  color: #9ca3af;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

/* ========== DASHBOARD রঙিন STAT CARDS ========== */

.dashboard-grid {
  margin-top: 8px;
}

/* সব স্ট্যাট কার্ডের common স্টাইল */
.card-stat {
  border-radius: 8px;
  border: none;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 86px;
  padding: 14px 16px;  /* ভেতরের padding */
}

/* উপরের টাইটেল + ভ্যালু */
.card-stat-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-stat-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

/* নিচের ছোট ফুটার টেক্সট */
.card-stat-footer {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.9;
}

/* আলাদা আলাদা রঙের ভ্যারিয়েন্ট */
.card-purple  { background: #7c3aed; }
.card-blue    { background: #2563eb; }
.card-green   { background: #16a34a; }
.card-slate   { background: #0f172a; }
.card-red     { background: #dc2626; }
.card-orange  { background: #f97316; }
.card-teal    { background: #0d9488; }
.card-brown   { background: #92400e; }

/* ========== BUTTONS & FORMS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.btn.primary {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #4b5563;
  color: #e5e7eb;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #9ca3af;
}

.input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.input:focus {
  outline: none;
  border-color: #facc15;
}

.error-text {
  color: #f97373;
  font-size: 13px;
  margin-top: 6px;
}

/* ========== TABLES ========== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid #111827;
  text-align: left;
}

.table thead {
  background: #020617;
}

/* ========== LOGIN SCREEN ========== */

.full-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  max-width: 380px;
  width: 100%;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-logo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
}

.login-logo-title {
  font-size: 22px;
  font-weight: 700;
  color: #f9fafb;
}

.login-logo-subtitle {
  font-size: 13px;
  color: #9ca3af;
}

/* ========== RESPONSIVE (MOBILE) ========== */

@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-shrink: 0;
    padding: 12px;
  }

  .content {
    padding: 12px;
  }

  .card {
    padding: 12px 14px;
  }

  .sidebar-link {
    padding: 7px 10px;
    font-size: 13px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
