/* Tailwind Compatibility Layer for Legacy Bootstrap Views (Standard CSS) */

/* Forms */
.form-control,
.form-select {
  display: block;
  width: 100%;
  border-radius: 0.375rem;
  /* rounded-md */
  border: 1px solid #d1d5db;
  /* border-gray-300 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* shadow-sm */
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  /* text-sm */
  line-height: 1.25rem;
  margin-bottom: 1rem;
  color: #111827;
  /* gray-900 */
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #6366f1;
  /* indigo-500 */
  box-shadow: 0 0 0 2px #6366f1;
  /* ring-indigo-500 */
}

.form-label {
  display: block;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  color: #374151;
  /* gray-700 */
  margin-bottom: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  /* rounded-md */
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* shadow-sm */
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: #4f46e5;
  /* indigo-600 */
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4338ca;
  /* indigo-700 */
}

.btn-danger {
  background-color: #dc2626;
  /* red-600 */
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #b91c1c;
  /* red-700 */
}

.btn-success {
  background-color: #059669;
  /* emerald-600 */
  color: #ffffff;
}

.btn-success:hover {
  background-color: #047857;
  /* emerald-700 */
}

.btn-warning {
  background-color: #f59e0b;
  /* amber-500 */
  color: #ffffff;
}

.btn-warning:hover {
  background-color: #d97706;
  /* amber-600 */
}

.btn-info {
  background-color: #0ea5e9;
  /* sky-500 */
  color: #ffffff;
}

.btn-info:hover {
  background-color: #0284c7;
  /* sky-600 */
}

.btn-secondary {
  background-color: #e5e7eb;
  /* gray-200 */
  color: #1f2937;
  /* gray-800 */
}

.btn-secondary:hover {
  background-color: #d1d5db;
  /* gray-300 */
}

/* Legacy Rows/Cols (Simple Fallback) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.col,
[class*="col-"] {
  flex: 1 0 0%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
    flex: 0 0 50%;
  }

  .col-md-4 {
    width: 33.33%;
    flex: 0 0 33.33%;
  }

  .col-md-3 {
    width: 25%;
    flex: 0 0 25%;
  }

  .col-md-12 {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* Tables */
.table {
  min-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.table thead th {
  padding: 0.75rem 1.5rem;
  background-color: #f9fafb;
  /* gray-50 */
  text-align: left;
  font-size: 0.75rem;
  /* text-xs */
  font-weight: 500;
  color: #6b7280;
  /* gray-500 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  /* gray-200 */
}

.table tbody {
  background-color: #ffffff;
}

.table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  /* gray-200 */
}

.table tbody td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  /* text-sm */
  color: #374151;
  /* gray-700 */
}

/* Alerts */
.alert {
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #fef2f2;
  /* red-50 */
  color: #b91c1c;
  /* red-700 */
}

.alert-success {
  background-color: #ecfdf5;
  /* green-50 */
  color: #047857;
  /* green-700 */
}

/* Utilities */
.text-danger {
  color: #dc2626 !important;
}

.text-success {
  color: #059669 !important;
}

.text-muted {
  color: #6b7280 !important;
}

.text-center {
  text-align: center !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mt-3 {
  margin-top: 0.75rem !important;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}