:root {
  --bch-navy: #001c4c;
  --bch-navy-dark: #001233;
  --sidebar-width: 220px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #1a1a1a;
}

.login-body {
  background: var(--bch-navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--bch-navy);
  color: white;
  width: 360px;
  padding: 40px 32px;
}

.brand-img {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 32px;
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  margin-bottom: 20px;
}

.login-card button {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.login-card button:hover { background: rgba(255,255,255,0.1); }

.error {
  background: #7a1f1f;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bch-navy);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  text-decoration: none;
  color: white;
}
.sidebar-logo img { width: 32px; height: 32px; }
.sidebar-logo-text { font-family: Georgia, serif; font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.sidebar-logo:hover { opacity: 0.85; }

.sidebar-links { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.sidebar-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
}
.sidebar-links a:hover, .sidebar-links a.active { background: rgba(255,255,255,0.1); }
.sidebar-links .disabled { opacity: 0.45; cursor: not-allowed; padding: 12px 20px; }

.sidebar-logout { padding: 12px 20px 0; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 12px; }
.sidebar-logout button {
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0 0;
  width: 100%;
  text-align: left;
}

.content { flex-grow: 1; max-width: 1100px; margin: 32px auto; padding: 0 24px; }

.subtitle { color: #555; margin-top: -8px; }

.tabs { display: flex; gap: 4px; margin: 16px 0; border-bottom: 2px solid #e0e0e0; }
.tabs .tab {
  padding: 10px 18px;
  text-decoration: none;
  color: #555;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tabs .tab.active { color: var(--bch-navy); border-bottom-color: var(--bch-navy); }

.form-evento { background: white; padding: 20px; border-radius: 6px; margin-top: 12px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.form-row label, .full-width {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.form-row input, .form-row select, .full-width textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 400;
  font-size: 14px;
}
.full-width { margin-bottom: 16px; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.form-actions button {
  padding: 10px 20px;
  background: var(--bch-navy);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  margin: 8px 0;
}
.btn-primary { background: var(--bch-navy); color: white; }
.btn-secondary { color: var(--bch-navy); }

.banner-info { background: #e8f0fe; border: 1px solid #b3d1ff; padding: 10px 14px; border-radius: 4px; margin: 12px 0; }
.hint { color: #777; font-size: 13px; }

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 16px 0;
  align-items: center;
}
.grid-form input, .grid-form select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.grid-form button {
  padding: 8px 16px;
  background: var(--bch-navy);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: white; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e0e0e0; }
.data-table th { background: #eef1f4; }

.inline-form { display: flex; gap: 8px; margin: 16px 0; }
.inline-form input { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; flex: 1; max-width: 300px; }
.inline-form button, .link-btn {
  padding: 8px 16px;
  background: var(--bch-navy);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.link-btn { background: none; color: #b00; padding: 0; text-decoration: underline; }

.footer-bch { text-align: center; padding: 16px; color: #666; font-size: 13px; }
