/* Statement Analysis - admin panel */
.admin-body {
  margin: 0;
  background: #f1f5f9;
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: #0f2148;
  color: #cbd5e1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.admin-sidebar .brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 16px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
  text-decoration: none;
}
.admin-sidebar .brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.admin-sidebar nav { flex: 1; display: flex; flex-direction: column; }
.admin-sidebar nav a {
  padding: 10px 22px;
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 14px;
}
.admin-sidebar nav a:hover { color: white; background: rgba(255,255,255,.04); }
.admin-sidebar nav a.active {
  color: white;
  background: rgba(59,130,246,.15);
  border-left-color: #3b82f6;
}
.admin-user {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.admin-user strong { color: white; }
.admin-user .muted { color: #94a3b8; font-size: 12px; }
.admin-user a.btn-link {
  display: block;
  margin-top: 6px;
  color: #93c5fd;
  font-size: 13px;
  text-decoration: none;
}
.admin-user a.btn-link:hover { text-decoration: underline; }

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-topbar {
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-topbar h1 { margin: 0; font-size: 22px; }
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
}
.admin-content { padding: 24px; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  background: white;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.filter-bar input, .filter-bar select { margin-top: 0; max-width: 240px; }
.filter-bar form { display: contents; }

/* Statement detail layout */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* Login centered */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.login-card {
  background: white;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  width: 100%;
  max-width: 400px;
}
.login-card .brand-area {
  text-align: center;
  margin-bottom: 24px;
}
.login-card .brand-area .logo {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0; bottom: 0;
    z-index: 200;
    transition: left .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.2);
  }
  body.sidebar-open .admin-sidebar { left: 0; }
  .sidebar-toggle { display: inline-block; }
  .admin-content { padding: 16px; }
}
