/* RC legacy look - inspired by registercentralen_webapp themes 'front' and 'admin' */

/* Fonts (from front theme) */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  font-size: 14px;
}

/* Provide some room for the bottom nav */
body {
  padding-bottom: 0;
}

/* Top spacing – small breathing room below navbar (not fixed) */
body {
  padding-top: 12px;
}

/* Constrain main content similar to legacy #page */
#content {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Links (admin-ish colors) */
a {
  color: #337ab7;
}
a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}

/* Headings scale closer to legacy admin */
h1 {
  font-size: 28px;
  font-weight: 500;
  border-bottom: 1px solid #e5e5e5;
  margin: 12px 0 16px;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 15px 0;
}

/* Button palette (front theme primary color) */
.btn-primary {
  background-color: #5486e5 !important;
  border-color: #5486e5 !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #4a78d1 !important;
  border-color: #4a78d1 !important;
}

/* Cards – subtle rounding and spacing */
.card {
  border-radius: 4px;
  margin-bottom: 20px;
}
.card-header {
  font-weight: 500;
  padding: 10px 15px;
}

/* Legacy-like card header background and borders */
.card .card-header {
  background-color: #f7f7f7;
  border-bottom: 1px solid #e5e5e5;
}
.card {
  border: 1px solid #e5e5e5;
}
.card-body {
  padding: 15px;
}

/* Form labels per legacy feel */
label.form-label {
  font-weight: 500;
}

/* Navbar tweaks for dark header like admin menu */
.navbar.navbar-dark.bg-dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
.navbar.navbar-dark.bg-dark .nav-link:hover {
  color: #fff;
  text-decoration: none;
}
.navbar.navbar-dark.bg-dark .navbar-brand {
  color: #fff;
}
.navbar.navbar-dark.bg-dark {
  border-bottom: 1px solid #ddd;
}
.navbar .nav-link {
  padding: 8px 12px;
}
.navbar .navbar-brand {
  padding: 6px 0;
}

/* Legacy-like alert palette */
.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}
.alert-danger,
.alert-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

/* Tables (bring in admin table feel) */
table {
  border-collapse: collapse;
  width: 100%;
  background: none;
  box-sizing: border-box;
  margin: 20px 0;
}
table th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
  font-weight: 700;
  text-align: left;
  background-color: #f7f7f7;
}
table th,
table td {
  padding: 8px;
  font-size: 14px;
}
.table th {
  font-size: 13px;
}
.table-sm th,
.table-sm td {
  padding: 6px 8px;
}
table tbody tr {
  border-top: 1px solid #ddd;
}
table.striped tbody tr:nth-child(2n + 1) {
  background: #f9f9f9;
}
table tbody tr:hover {
  background: #f7f7f7;
}
.table {
  margin: 10px 0;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: #f9f9f9;
  background-color: #f9f9f9;
}

/* Badges (legacy-like subtle labels) */
.badge {
  border-radius: 3px;
  font-weight: 500;
}
.badge.text-bg-secondary {
  color: #333;
  background-color: #eee;
  border: 1px solid #ddd;
}
.badge.text-bg-light {
  color: #333;
  background-color: #f7f7f7;
  border: 1px solid #eee;
}
table td.actions,
table th.actions {
  white-space: nowrap;
  width: 1%;
  text-align: right;
}

/* Button groups spacing (legacy-ish) */
.btn-group-sm .btn + .btn {
  margin-left: 6px;
}

/* Legacy-ish buttons/forms */
.btn {
  border-radius: 4px;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}
.btn-outline-secondary {
  color: #333;
  border-color: #ccc;
}
.btn-outline-secondary:hover {
  background: #f5f5f5;
  color: #333;
}
.btn-outline-primary {
  color: #337ab7;
  border-color: #337ab7;
}
.btn-outline-primary:hover {
  background: #e6f2ff;
  color: #23527c;
}
.btn-outline-warning {
  color: #8a6d3b;
  border-color: #f0ad4e;
}
.btn-outline-warning:hover {
  background: #fcf8e3;
  color: #8a6d3b;
  border-color: #f0ad4e;
}
.form-control {
  border-radius: 4px;
  border-color: #ccc;
}
.list-group-item {
  padding: 10px 15px;
  border-color: #ddd;
}

/* Bottom nav (moved from inline styles) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  height: 56px;
  z-index: 1000;
}
.bottom-nav .nav-link {
  padding: 10px 0;
  text-align: center;
}
.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
}
.bottom-nav .nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 12px;
  text-decoration: none;
  color: black;
  gap: 4px;
}
.bottom-nav .nav-item i {
  font-size: 1.25rem;
}
.bottom-nav .nav-item span {
  font-size: 0.85rem;
  line-height: 1;
}

/* Helper containers similar to front style */
.content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-bottom: 100px;
  align-items: center;
  text-align: center;
}
.status-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  text-align: left;
}




