/*!
BS Lite
Author: Jorge Santos
*/
/* ROOT */
.bs-style {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  color: #212529;
}

/* FORM GROUP */
.bs-style .form-group {
  margin-bottom: 1rem;
}

/* LABEL */
.bs-style label {
  display: inline-block;
  font-weight: 600;
}

/* INPUTS */
.bs-style input,
.bs-style select,
.bs-style textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* FOCUS */
.bs-style input:focus,
.bs-style select:focus,
.bs-style textarea:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

/* PLACEHOLDER */
.bs-style ::placeholder {
  color: #6c757d;
  opacity: 1;
}

/* DISABLED */
.bs-style input:disabled,
.bs-style select:disabled,
.bs-style textarea:disabled {
  background-color: #e9ecef;
  opacity: 1;
  cursor: not-allowed;
}

/* HELP TEXT */
.bs-style .form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #6c757d;
}

/* CHECKBOX & RADIO WRAPPER */
.bs-style .form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.5rem;
}

/* INPUT (checkbox/radio) */
.bs-style .form-check-input {
  float: left;
  margin-left: -1.5em;
  width: 1em;
  height: 1.5em;
  margin-top: 0.25em;
  margin-right: 0.5em;

  vertical-align: top;
  background-color: #fff;
  border: 1px solid #adb5bd;

  appearance: none;
}

/* RADIO specific */
.bs-style .form-check-input[type="radio"] {
  border-radius: 50%;
}

/* CHECKBOX specific */
.bs-style .form-check-input[type="checkbox"] {
  border-radius: 0.25em;
}

/* CHECKED STATE */
.bs-style .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* CHECKMARK (checkbox) */
.bs-style .form-check-input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.485 1.929l1.414 1.414L6 12.243 1.101 7.343l1.414-1.414L6 9.414z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}

/* DOT (radio) */
.bs-style .form-check-input[type="radio"]:checked {
  background-image: radial-gradient(circle, white 40%, transparent 50%);
}

/* LABEL next to checkbox */
.bs-style .form-check-label {
  cursor: pointer;
}

/* VALIDATION STATES */
.bs-style .is-valid {
  border-color: #198754;
}

.bs-style .is-valid:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25,135,84,.25);
}

.bs-style .is-invalid {
  border-color: #dc3545;
}

.bs-style .is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

/* FEEDBACK TEXT */
.bs-style .valid-feedback {
  display: none;
  width: 100%;
  font-size: 0.875em;
  color: #198754;
}

.bs-style .invalid-feedback {
  display: none;
  width: 100%;
  font-size: 0.875em;
  color: #dc3545;
}

/* SHOW FEEDBACK */
.bs-style .is-valid ~ .valid-feedback {
  display: block;
}

.bs-style .is-invalid ~ .invalid-feedback {
  display: block;
}

/* Helper text */
.text-muted {
    color: #6c757d !important;
    font-size: 0.95rem;
}

/* BUTTON */
.bs-style .btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;

  color: #fff;
  background-color: #0d6efd;
  border: 1px solid #0d6efd;

  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;

  cursor: pointer;
  text-align: center;
}

.bs-style .btn:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* SECONDARY BUTTON */
.bs-style .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* SUCCESS BUTTON */
.bs-style .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}
.bs-style .btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* SITE BUTTON */
.bs-style .btn-site {
  background-color: #9870c9;
  border: #9870c9 1px solid;
  border-radius: 8px; /* rounded corners */
  color: #ffffff;
}

.bs-style .btn-site:hover {
  border: #b8d694 1px solid;
  background-color: #b8d694;
  color: #000000;
}

/* ========== Simple Card ========== */
.simple-card {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  width: auto;
}

/* ========== Simple Grid ========== */
.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* ========== Alerts (base) ========== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Fade + slide animation */
.alert.fade {
  opacity: 0;
  transform: translateY(-10px);
}

.alert.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.alert-primary { color:#084298; background:#cfe2ff; border-color:#b6d4fe; }
.alert-success { color:#0f5132; background:#d1e7dd; border-color:#badbcc; }
.alert-danger  { color:#842029; background:#f8d7da; border-color:#f5c2c7; }
.alert-warning { color:#664d03; background:#fff3cd; border-color:#ffecb5; }
.alert-info    { color:#055160; background:#cff4fc; border-color:#b6effb; }

/* ========== Alerts (icons) ========== */
.alert-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Optional: auto icons via pseudo-elements */
.alert-success::before {
  content: "✔";
  font-weight: bold;
}
.alert-danger::before {
  content: "✖";
  font-weight: bold;
}
.alert-warning::before {
  content: "⚠";
}
.alert-info::before {
  content: "ℹ";
}
.alert::before {
  margin-right: 0.5rem;
}

/* ========== Tables ========== */

/* Base table styling (like .table) */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #212529;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

/* Header styling */
.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

/* Striped rows (like .table-striped) */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Hover effect (optional, like .table-hover) */
.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

/* Bordered table (optional .table-bordered) */
.table-bordered {
  border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
}

/* Responsive wrapper (like .table-responsive) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Optional: compact table (like .table-sm) */
.table-sm th,
.table-sm td {
  padding: 0.3rem;
}

/* Spacing utility */
.mb-3 {
    margin-bottom: 1rem;
}

/* Progress container */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

/* Progress bar */
.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #9870c9;
    transition: width 0.6s ease;
    width: 0%;
}

/* Base badge */
.badge {
    display: inline-block;
    padding: 0.35em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: left;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

/* Warning badge */
.badge-warning {
    color: #212529;
    background-color: #ffc107; /* Bootstrap warning yellow */
}

/* Secondary badge */
.badge-secondary {
    background-color: #999999; /* Bootstrap secondary gray */
}

/* Success badge */
.badge-success {
    color: #fff;
    background-color: #28a745; /* Bootstrap success green */
}

/* Optional: slightly nicer text rendering */
.badge-warning,
.badge {
    letter-spacing: 0.02em;
}