/*
* Bootstrapper by ChatGPT, posted by TheDoggyBrad
* A reverse-engineering of BootStrap
* This uses the Standard MIT License
*/

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col {
  flex: 1 0 0;
  padding: 0 15px;
}

.col-1 { flex-basis: 8.33333%; }
.col-2 { flex-basis: 16.66667%; }
.col-3 { flex-basis: 25%; }
.col-4 { flex-basis: 33.33333%; }
.col-5 { flex-basis: 41.66667%; }
.col-6 { flex-basis: 50%; }
.col-7 { flex-basis: 58.33333%; }
.col-8 { flex-basis: 66.66667%; }
.col-9 { flex-basis: 75%; }
.col-10 { flex-basis: 83.33333%; }
.col-11 { flex-basis: 91.66667%; }
.col-12 { flex-basis: 100%; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* Links */
a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  background-color: #007bff;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-primary { background-color: #007bff; }
.btn-secondary { background-color: #6c757d; }
.btn-success { background-color: #28a745; }
.btn-danger { background-color: #dc3545; }
.btn-warning { background-color: #ffc107; }
.btn-info { background-color: #17a2b8; }
.btn-light { background-color: #f8f9fa; }
.btn-dark { background-color: #343a40; }
.btn-link {
  background-color: transparent;
  color: #007bff;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  background-color: #fff;
  color: #333;
}

.form-group textarea {
  resize: vertical;
}

/* Navbar */
.navbar {
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
}

.navbar ul {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
}

.navbar li {
  margin-right: 1rem;
}

.navbar a {
  color: #333;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-primary { background-color: #007bff; color: #fff; }
.alert-secondary { background-color: #6c757d; color: #fff; }
.alert-success { background-color: #28a745; color: #fff; }
.alert-danger { background-color: #dc3545; color: #fff; }
.alert-warning { background-color: #ffc107; color: #333; }
.alert-info { background-color: #17a2b8; color: #fff; }
.alert-light { background-color: #f8f9fa; color: #333; }
.alert-dark { background-color: #343a40; color: #fff; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4em 0.6em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary { background-color: #007bff; color: #fff; }
.badge-secondary { background-color: #6c757d; color: #fff; }
.badge-success { background-color: #28a745; color: #fff; }
.badge-danger { background-color: #dc3545; color: #fff; }
.badge-warning { background-color: #ffc107; color: #333; }
.badge-info { background-color: #17a2b8; color: #fff; }
.badge-light { background-color: #f8f9fa; color: #333; }
.badge-dark { background-color: #343a40; color: #fff; }

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: #007bff; }
.text-secondary { color: #6c757d; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-light { color: #f8f9fa; }
.text-dark { color: #343a40; }
.bg-primary { background-color: #007bff; }
.bg-secondary { background-color: #6c757d; }
.bg-success { background-color: #28a745; }
.bg-danger { background-color: #dc3545; }
.bg-warning { background-color: #ffc107; }
.bg-info { background-color: #17a2b8; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* Responsive classes */
@media (max-width: 576px) {
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    flex-basis: 100%;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    flex-basis: 100%;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
  .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    flex-basis: 100%;
  }
}

@media (min-width: 992px) {
  .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
  .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    flex-basis: 100%;
  }
}

/* Additional Bootstrap-like elements */

/* Card */
.card {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-text {
  margin-bottom: 0.5rem;
}

.card-header {
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer {
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.page-item {
  margin-right: 0.5rem;
}

.page-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #333;
}

.page-link:hover {
  background-color: #f8f9fa;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

.breadcrumb-item {
  display: inline-block;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  padding: 0 0.5rem;
  color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item:hover::before {
  color: #343a40;
}

.breadcrumb-item + .breadcrumb-item:hover a {
  color: #343a40;
}

.breadcrumb-item a {
  color: #333;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-title {
  margin-bottom: 0;
  font-weight: 600;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
  overflow: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
}

.close {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
}

.close:hover {
  color: #000;
  opacity: 0.75;
  text-decoration: none;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #333;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover {
  color: #fff;
  background-color: #007bff;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid #dee2e6;
}

/* Tooltip */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 0.25rem;
  transition: opacity 0.15s ease-in-out;
}

.tooltip.show {
  opacity: 0.9;
}

.tooltip .arrow {
  position: absolute;
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0.1rem;
  background-color: rgba(0, 0, 0, 0.85);
}

.tooltip .arrow::before {
  position: absolute;
  content: "";
  border-color: transparent;
  border-style: solid;
}

.tooltip.bs-tooltip-top,
.tooltip.bs-tooltip-auto[x-placement^="top"] {
  padding: 0.4rem 0;
}

.tooltip.bs-tooltip-top .arrow,
.tooltip.bs-tooltip-auto[x-placement^="top"] .arrow {
  bottom: 0;
  left: 50%;
  margin-bottom: -0.4rem;
  border-width: 0.4rem 0.4rem 0;
  border-top-color: none;
}

.tooltip.bs-tooltip-top .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="top"] .arrow::before {
  bottom: 0;
  left: 50%;
  border-width: 0.4rem 0.4rem 0;
  border-top-color: rgba(0, 0, 0, 0.85);
}

.tooltip.bs-tooltip-right,
.tooltip.bs-tooltip-auto[x-placement^="right"] {
  padding: 0 0.4rem;
}

.tooltip.bs-tooltip-right .arrow,
.tooltip.bs-tooltip-auto[x-placement^="right"] .arrow {
  top: 50%;
  left: 0;
  margin-left: -0.4rem;
  border-width: 0.4rem 0.4rem 0.4rem 0;
  border-right-color: none;
}

.tooltip.bs-tooltip-right .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="right"] .arrow::before {
  top: 50%;
  left: 0;
  border-width: 0.4rem 0.4rem 0.4rem 0;
  border-right-color: rgba(0, 0, 0, 0.85);
}

.tooltip.bs-tooltip-bottom,
.tooltip.bs-tooltip-auto[x-placement^="bottom"] {
  padding: 0.4rem 0;
}

.tooltip.bs-tooltip-bottom .arrow,
.tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow {
  top: 0;
  left: 50%;
  margin-top: -0.4rem;
  border-width: 0 0.4rem 0.4rem;
  border-bottom-color: none;
}

.tooltip.bs-tooltip-bottom .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
  top: 0;
  left: 50%;
  border-width: 0 0.4rem 0.4rem;
  border-bottom-color: rgba(0, 0, 0, 0.85);
}

.tooltip.bs-tooltip-left,
.tooltip.bs-tooltip-auto[x-placement^="left"] {
  padding: 0 0.4rem;
}

.tooltip.bs-tooltip-left .arrow,
.tooltip.bs-tooltip-auto[x-placement^="left"] .arrow {
  top: 50%;
  right: 0;
  margin-top: -0.4rem;
  border-width: 0.4rem 0 0.4rem 0.4rem;
  border-left-color: none;
}

.tooltip.bs-tooltip-left .arrow::before,
.tooltip.bs-tooltip-auto[x-placement^="left"] .arrow::before {
  top: 50%;
  right: 0;
  border-width: 0.4rem 0 0.4rem 0.4rem;
  border-left-color: rgba(0, 0, 0, 0.85);
}
