/* Re-skin Oscar's Bootstrap markup so stock templates render in the Tuuziane
   theme without forking every template. Themed (forked) templates use Tailwind
   utility classes directly; this layer covers the Bootstrap classes the
   remaining stock templates emit. */

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary,
.btn-success { background: #15803d; color: #fff; }
.btn-primary:hover,
.btn-success:hover { background: #166534; }
.btn-secondary { background: #e5e7eb; color: #1f2937; }
.btn-secondary:hover { background: #d1d5db; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* Cards */
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.card-body { padding: 1.25rem; }

/* Forms */
.form-control {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #fff;
  color: #111827;
}
.form-control:focus { outline: none; border-color: #16a34a; box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15); }
.form-group { margin-bottom: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.error-block { color: #dc2626; font-size: 0.75rem; display: block; margin-top: 0.25rem; }
.form-text { font-size: 0.75rem; color: #6b7280; }
select.form-control { padding-right: 2rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: #fff; border-radius: 0.75rem; overflow: hidden; border: 1px solid #e5e7eb; }
.table td, .table th { padding: 0.625rem 0.75rem; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: middle; }
.table thead th { font-weight: 600; color: #374151; background: #f9fafb; }
.table-striped tbody tr:nth-child(odd) { background: #f9fafb; }
.table-bordered { border: 1px solid #e5e7eb; }

/* Alerts */
.alert { border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.alert-dismissible { position: relative; padding-right: 2.5rem; }
.alert-dismissible .close { position: absolute; right: 0.75rem; top: 0.75rem; color: inherit; text-decoration: none; font-size: 1rem; line-height: 1; }

/* Breadcrumbs */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.75rem; color: #6b7280; margin-bottom: 1rem; list-style: none; padding: 0; }
.breadcrumb-item a { color: #15803d; text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin: 0 0.35rem; color: #9ca3af; }
.breadcrumb-item.active { color: #111827; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.25rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.page-item.disabled { opacity: 0.5; }
.page-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  text-decoration: none;
}
.page-item.active .page-link, .page-link:hover { background: #15803d; color: #fff; border-color: #15803d; }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }

/* Headings / sections */
.sub-header h2 { font-size: 1.125rem; font-weight: 700; color: #111827; margin: 1rem 0 0.75rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: #111827; margin-bottom: 1rem; }
.page-header { border-bottom: 1px solid #e5e7eb; margin-bottom: 1.5rem; padding-bottom: 0.5rem; }

/* Grid + utility compatibility */
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
[class^="col-sm-"], [class^="col-md-"], [class^="col-lg-"], .col { flex: 1 1 0; min-width: 0; }
.col-sm-1, .col-md-1, .col-lg-1 { flex: 0 0 8.333%; }
.col-sm-2, .col-md-2, .col-lg-2 { flex: 0 0 16.666%; }
.col-sm-3, .col-md-3, .col-lg-3 { flex: 0 0 25%; }
.col-sm-4, .col-md-4, .col-lg-4 { flex: 0 0 33.333%; }
.col-sm-5, .col-md-5, .col-lg-5 { flex: 0 0 41.666%; }
.col-sm-6, .col-md-6, .col-lg-6 { flex: 0 0 50%; }
.col-sm-7, .col-md-7, .col-lg-7 { flex: 0 0 58.333%; }
.col-sm-8, .col-md-8, .col-lg-8 { flex: 0 0 66.666%; }
.col-sm-9, .col-md-9, .col-lg-9 { flex: 0 0 75%; }
.col-sm-10, .col-md-10, .col-lg-10 { flex: 0 0 83.333%; }
.col-sm-12, .col-md-12, .col-lg-12 { flex: 0 0 100%; }

.text-muted { color: #6b7280; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.well { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1rem; }
.img-thumbnail { border-radius: 0.5rem; max-width: 100%; }
.float-right { float: right; }

/* Account nav pills + tabs */
.nav-pills { display: flex; flex-direction: column; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.nav-pills .nav-link, .nav-pills > li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
}
.nav-pills .active, .nav-pills > li.active a { background: #dcfce7; color: #15803d; font-weight: 600; }
.nav-pills a:hover { background: #f3f4f6; }
.nav-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; list-style: none; padding: 0; }
.nav-tabs .nav-link { display: inline-block; padding: 0.5rem 0.9rem; font-size: 0.875rem; color: #6b7280; border: 1px solid transparent; border-radius: 0.5rem 0.5rem 0 0; text-decoration: none; }
.nav-tabs .nav-link.active, .nav-tabs .active a { color: #111827; border-color: #e5e7eb; border-bottom-color: #fff; font-weight: 600; }

/* Links */
a { color: #15803d; }
