:root {
  --navy: #0B132B;
  --navy-light: #1C2541;
  --royal: #0F4C81;
  --royal-hover: #0A365C;
  --crimson: #DC2626;
  --crimson-hover: #B91C1C;
  --success: #059669;
  --warning: #D97706;
  --bg-page: #F1F5F9;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #475569;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--royal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--royal-hover);
}

.btn-danger {
  background: var(--crimson);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: var(--crimson-hover);
}

.btn-success {
  background: var(--success);
  color: #FFFFFF;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline-dark {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--border);
}

.full-width {
  width: 100%;
}

/* Login Screen */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.login-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 10px;
}

.badge-secret {
  display: inline-block;
  background: #FEE2E2;
  color: var(--crimson);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.login-card h1 {
  font-size: 1.25rem;
  color: var(--navy);
}

.login-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.error-text {
  color: var(--crimson);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Form Elements */
.form-group {
  text-align: left;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  background: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
}

/* Topbar & Navigation */
.topbar {
  background: var(--navy);
  color: #FFFFFF;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 3px;
}

.topbar h2 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.status-dot {
  font-size: 0.78rem;
  color: #34D399;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.admin-tabs {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.tab-btn {
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--royal);
  border-bottom-color: var(--royal);
}

/* Workspace */
.workspace {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-head h3 {
  font-size: 1.28rem;
  color: var(--navy);
}

.panel-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.filter-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-controls input,
.filter-controls select {
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #FFFFFF;
}

/* Cards & Grids */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.item-card-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
  background: #E2E8F0;
}

.team-mini-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #BAE6FD;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-pending { background: #FEF3C7; color: #92400E; }
.pill-progress { background: #DBEAFE; color: #1E40AF; }
.pill-solved { background: #D1FAE5; color: #065F46; }
.pill-info { background: #E0F2FE; color: var(--royal); }

.report-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  font-size: 0.9rem;
}

.report-details-box {
  background: #F8FAFC;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--royal);
  font-size: 0.92rem;
  white-space: pre-line;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card-actions select {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-family: inherit;
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-top {
  padding: 16px 22px;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--navy);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 300;
}

@media (max-width: 640px) {
  .topbar { padding: 12px 14px; }
  .topbar h2 { font-size: 0.96rem; }
  .workspace { padding: 16px 12px 50px; }
  .filter-controls, .filter-controls input, .filter-controls select { width: 100%; }
}