/* Minimal compatibility layer to keep existing Bootstrap-like classes working with Tailwind */
body { color: #0f172a; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; }
[class*="col-"] { padding-left: 8px; padding-right: 8px; }

.col-1 { width: 8.3333%; } .col-2 { width: 16.6667%; } .col-3 { width: 25%; } .col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; } .col-6 { width: 50%; } .col-7 { width: 58.3333%; } .col-8 { width: 66.6667%; }
.col-9 { width: 75%; } .col-10 { width: 83.3333%; } .col-11 { width: 91.6667%; } .col-12 { width: 100%; }

@media (min-width: 576px) {
  .col-sm-1 { width: 8.3333%; } .col-sm-2 { width: 16.6667%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.3333%; }
  .col-sm-5 { width: 41.6667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.3333%; } .col-sm-8 { width: 66.6667%; }
  .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.3333%; } .col-sm-11 { width: 91.6667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { width: 8.3333%; } .col-md-2 { width: 16.6667%; } .col-md-3 { width: 25%; } .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6667%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; }
  .col-md-9 { width: 75%; } .col-md-10 { width: 83.3333%; } .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { width: 8.3333%; } .col-lg-2 { width: 16.6667%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.3333%; }
  .col-lg-5 { width: 41.6667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.3333%; } .col-lg-8 { width: 66.6667%; }
  .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.3333%; } .col-lg-11 { width: 91.6667%; } .col-lg-12 { width: 100%; }
}

.form-group { margin-bottom: 16px; }
.form-control { width: 100%; border: 1px solid #e2e8f0; padding: 8px 10px; border-radius: 6px; }
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-select { width: 100%; border: 1px solid #e2e8f0; padding: 8px 10px; border-radius: 6px; background: #fff; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; }
.input-group { display: flex; width: 100%; }
.input-group-text { display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid #e2e8f0; border-right: 0; background: #f1f5f9; border-radius: 6px 0 0 6px; }
.input-group .form-control { border-radius: 0 6px 6px 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-sm { padding: 6px 10px; font-size: 0.875rem; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-success { background: #16a34a; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-default { background: #fff; border-color: #e2e8f0; color: #0f172a; }
.btn-outline-primary { background: #fff; border-color: #2563eb; color: #2563eb; }
.btn-outline-danger { background: #fff; border-color: #dc2626; color: #dc2626; }
.btn-outline-secondary { background: #fff; border-color: #e2e8f0; color: #0f172a; }

.navbar { display: flex; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.navbar-light { color: #0f172a; }
.bg-light { background: #f8fafc; }

.nav { display: flex; flex-wrap: wrap; }
.nav-tabs { border-bottom: 1px solid #e2e8f0; }
.nav-link { padding: 8px 12px; border: 1px solid transparent; border-radius: 6px 6px 0 0; color: #0f172a; background: transparent; }
.nav-link.active { border-color: #e2e8f0 #e2e8f0 #fff; background: #fff; }

.tab-content { border: 1px solid #e2e8f0; border-top: 0; padding: 12px; border-radius: 0 6px 6px 6px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.fade { opacity: 0; transition: opacity .2s ease; }
.fade.show { opacity: 1; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 8px; border-bottom: 1px solid #e2e8f0; }
.table-striped tbody tr:nth-child(odd) { background: #fafafa; }
.table-hover tbody tr:hover { background: #f5f5f5; }

.list-group { list-style: none; padding: 0; margin: 0; }
.list-group-item { padding: 12px; border: 1px solid #e2e8f0; border-bottom: 0; }
.list-group-item-action { cursor: pointer; }
.list-group-item:last-child { border-bottom: 1px solid #e2e8f0; }

.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 16px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mt-1 { margin-top: 4px; }
.pb-3 { padding-bottom: 12px; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.align-items-sm-center { align-items: center; }
.list-unstyled { list-style: none; padding-left: 0; }
