/* CAPTCHA Santa Cruz — Backoffice styles (Bootstrap 5 overrides) */

:root {
  --sidebar-bg: #1D3341;
  --sidebar-width: 250px;
  --accent: #2B84A2;
  --accent-hover: #256f89;
  --body-bg: #F5F7FA;
  --card-shadow: 0 1px 4px rgba(0, 0, 0, .10);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--body-bg);
  font-size: .925rem;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .25s ease;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand:hover { color: #fff; text-decoration: none; }

.sidebar .nav-section-label {
  padding: .75rem 1.25rem .25rem;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}

.sidebar .nav-link {
  color: rgba(255,255,255,.75);
  padding: .55rem 1.25rem;
  border-radius: 6px;
  margin: 1px .5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  transition: background .15s, color .15s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--accent);
  color: #fff;
}
.sidebar .nav-link .bi { font-size: 1rem; opacity: .85; }

.sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .75rem 1.25rem;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main content */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}
.topbar-title { font-size: 1rem; font-weight: 600; color: #1a2535; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: #4a5568;
}

.page-content { padding: 1.75rem 2rem; flex: 1; }

.backoffice-footer {
  padding: .65rem 1.5rem;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e8ecf0;
  color: #9ca3af;
  font-size: .78rem;
}

/* Cards */
.card { border: none; box-shadow: var(--card-shadow); border-radius: 8px; }
.card-header {
  background: #fff;
  border-bottom: 1px solid #f0f3f6;
  font-weight: 600;
  border-radius: 8px 8px 0 0 !important;
}

/* Stat icon */
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { background: var(--accent); border-color: var(--accent); }

/* Tables */
.table th {
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  border-top: none;
}

/* Badges */
.badge { font-weight: 500; }
.badge-role-admin   { background: #7c3aed; color: #fff; }
.badge-role-manager { background: var(--accent); color: #fff; }
.badge-role-member  { background: #059669; color: #fff; }

/* Status dot */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-active  { background: #22c55e; }
.status-idle    { background: #f59e0b; }
.status-offline { background: #9ca3af; }

/* Login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1D3341 0%, #2B84A2 100%);
}
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; }

/* Mobile */
@media (max-width: 767px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
}

/* Font monospace */
.font-monospace { font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace; }
.user-select-all { user-select: all; }

/* Docs code blocks */
.code-block {
  background: #0d1117;
  color: #e6edf3;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  overflow-x: auto;
  margin: 0;
}
.code-block code { background: none; padding: 0; color: inherit; font-size: inherit; }
