/* DaisyUI Components - Essential Only */

/* Button */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration-line: none;
  transition: all 0.2s ease;
  background-color: #e5e7eb;
  color: #1f2937;
}

.btn:hover {
  background-color: #d1d5db;
}

.btn-primary {
  background-color: #667eea;
  border-color: #667eea;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #5a67d8;
  border-color: #5a67d8;
}

.btn-success {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-outline {
  background-color: transparent;
  border-color: currentColor;
}

.btn-outline:hover {
  background-color: currentColor;
  color: #ffffff;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background-color: #ffffff;
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border-width: 1px;
  background-color: #e5e7eb;
  color: #374151;
}

.badge-success {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.badge-error {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.badge-primary {
  background-color: #dbeafe;
  border-color: #667eea;
  color: #1e40af;
}

.badge-neutral {
  background-color: #f3f4f6;
  border-color: #6b7280;
  color: #374151;
}

.badge-lg {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  max-width: 32rem;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-action {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Form Controls */
.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  display: flex;
  user-select: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.label-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.input, .textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-bordered {
  border-color: #d1d5db;
}

.input-lg, .textarea-lg {
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
}

.textarea {
  resize: vertical;
}

/* Table */
.table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.table th {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #f9fafb;
  color: #374151;
}

.table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
}

.table-zebra tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.table-zebra tbody tr:hover {
  background-color: #f3f4f6;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}
