:root {
  --primary-rgb: 70, 150, 165;
  --glass-bg: rgba(var(--primary-rgb), 0.15); /* Slightly dim/tinted glass */
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-color: #334155;
}
html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: #0071c1;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZ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AyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: #1b6ec2;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

code {
  color: #c02d76;
}

.table-container.with-loading-overlay {
  position: relative;
}

/* Center content for Bootstrap tables globally */
table.table th,
table.table td {
  text-align: center;
  vertical-align: middle;
}

.table-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  pointer-events: none;
}

.table-loading-overlay-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #334155;
  font-weight: 600;
}

.table-loading-row-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #475569;
  font-weight: 600;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.table-header-custom {
  background-color: #0d2161 !important;
  color: white !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.dialog h3 {
  margin-top: 0;
}

.actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.upload-box {
  width: 250px;
  height: 120px;
  border: 2px dashed var(--brand-blue);
  border-radius: 12px;
  background-color: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-box:hover {
  background-color: var(--brand-blue);
  border-color: var(--white);
  color: var(--white);
  transform: scale(1.02);
}

.upload-content {
  text-align: center;
  color: var(--brand-grey);
}

.upload-icon {
  font-size: 32px;
  color: var(--brand-blue);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.upload-box:hover .upload-icon {
  color: var(--white);
}

.upload-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px;
}

.upload-subtitle {
  font-size: 12px;
  color: var(--brand-grey);
}

/* Single-line summary styling */
.upload-summary {
  font-size: 12px;
  color: var(--brand-grey);
  text-align: center;
}

.upload-summary span {
  margin: 0 5px;
}

.text-success {
  color: #28a745; /* green for success */
}

.text-danger {
  color: #dc3545; /* red for errors */
}

.upload-message {
  font-size: 12px;
  color: var(--brand-grey);
  text-align: center;
}

/* H1 Style */
.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-align: left;
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* H2 Style */
.page-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-grey);
  text-align: left;
  margin-bottom: 10px;
  text-transform: capitalize;
}

/* H2 Style */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-grey);
  text-align: left; /* left-align for section headings */
  margin-top: 20px;
  margin-bottom: 5px;
  text-transform: capitalize;
}

/* HR Divider Style */
.divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--brand-blue), var(--brand-grey));
  margin: 5px 0 20px 0;
  border-radius: 2px;
}

.template-download {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background-color: var(--brand-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download i {
  font-size: 16px;
}

.btn-download:hover {
  background-color: #357ca5; /* darker blue on hover */
  transform: scale(1.05);
}
/* Table Container */
/* Table Container */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px; /* smaller spacing between rows */
  font-family: Arial, sans-serif;
  font-size: 13px;
}

/* Table Header */
.table thead th {
  background-color: var(--brand-blue);
  color: white;
  font-weight: 600;
  text-align: center;
  border: none;
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Body */

/* Table Body */
.table tbody td {
  background-color: #f9f9f9;
  vertical-align: middle;
  text-align: center;
  padding: 6px 10px; /* smaller padding to reduce row height */
  border: none;
  border-radius: 0; /* removed rounded corners */
  transition: background-color 0.3s ease;
}

/* Hover Effect */
.table tbody tr:hover td {
  background-color: rgba(76, 161, 175, 0.1);
}

/* Action Buttons Container */
.table tbody td:last-child {
  display: flex;
  justify-content: center; /* center the buttons horizontally */
  gap: 5px; /* space between buttons */
  padding: 6px 0;
}

/* Action Buttons */
.table tbody td button {
  width: 30px; /* smaller buttons */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
}

.table tbody td button.btn-info {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

.table tbody td button.btn-info:hover {
  background-color: #357ca5;
  border-color: #357ca5;
}

.table tbody td button.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.table tbody td button.btn-danger:hover {
  background-color: #b02a37;
  border-color: #b02a37;
}
/* Card container */
.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

/* Card header */
.card-header {
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  text-transform: uppercase;
}

/* Card body */
.card-body {
  padding: 15px;
}

/* Form labels */
.form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-grey);
}

/* Inputs and selects */
.form-control {
  height: 36px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 4px rgba(76, 161, 175, 0.3);
}

/* Validation messages */
.validation-message {
  font-size: 11px;
  color: #dc3545;
}

/* Card footer buttons */
.card-footer {
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-top: 1px solid #ddd;
  border-radius: 0 0 6px 6px;
}

.card-footer button {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
}

.card-footer .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.card-footer .btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.card-footer .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.card-footer .btn-danger:hover {
  background-color: #b02a37;
  border-color: #991b1e;
}

/* Row spacing */
.row > .col-sm-6 {
  margin-bottom: 12px;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-3 {
  gap: 1rem;
}

.upload-container {
  min-width: 250px; /* ensure box doesn�t shrink too much */
  flex: 1;
}
/*nav bar*/
.custom-navbar {
  width: 100%;
  height: 55px;
  background-color: var(--nav-bg); /* light background */
  color: var(--brand-blue);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  position: fixed; /* stick to top */
  top: 0;
  left: 0;
  z-index: 1000;
  border-radius: 12px; /* rounded corners */
  box-shadow: none; /* remove shadow */
  font-weight: 600; /* make navbar text bolder */
}

.custom-navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 700; /* bolder brand */
  color: var(--brand-blue);
}

.custom-navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.custom-navbar .nav-links a {
  text-decoration: none;
  color: var(--brand-blue);
  font-size: 0.95rem;
  font-weight: 600; /* bolder links */
  transition: background 0.2s, color 0.2s;
  padding: 6px 10px;
  border-radius: 8px; /* rounded for each link */
}

.custom-navbar .nav-links a:hover {
  background-color: rgba(76, 161, 175, 0.1); /* subtle hover background */
  color: var(--brand-blue);
}

.navbar-brand .logo-img {
  height: 90px; /* increase height */
  width: auto; /* maintain aspect ratio */
  text-align: left;
  display: block;
}

.navbar-logout {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background-color: var(--brand-blue);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-stack);
  transition: background 0.2s;
}

.navbar-logout:hover {
  background-color: #3b8c98; /* same as login hover */
}

/* Navbar user info text */
.navbar-user {
  color: var(--brand-grey);
  font-weight: 500;
  font-family: var(--font-stack);
  margin-right: 12px; /* spacing from logout button */
}

.navbar-links a {
  font-family: var(--font-stack); /* same as login username */
  font-weight: 500; /* match username weight */
  color: var(--brand-grey); /* match username color */
  text-decoration: none;
  margin-right: 12px;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--brand-blue); /* hover matches login button accent */
  text-decoration: underline;
}

.nav-links .nav-link {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  text-decoration: none; /* keep links clean */
}
.user-info {
  display: flex;
  justify-content: flex-end; /* push to right */
  align-items: center;
  padding: 8px 20px; /* spacing under navbar */
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  color: #4c4c4c; /* similar to your login link font */
  gap: 12px;
}

.user-info .btn-logout {
  background-color: var(--brand-blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

.user-info .btn-logout:hover {
  background-color: #3b8c98; /* slightly darker */
}
/* Cancel button - neutral/grey style */
.btn-cancel {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background-color: #f0f0f0; /* light neutral */
  color: #848484; /* brand-grey */
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background-color: #e0e0e0; /* slightly darker on hover */
}

/* Save/Submit button - brand-blue style */
.btn-save {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background-color: var(--brand-blue);
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-save:hover {
  background-color: #3b8c98; /* slightly darker blue */
}

.card-body textarea.form-control {
  min-height: 120px;
  resize: vertical;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
}
