@tailwind base;
@tailwind components;
@tailwind utilities;

/* Button Components */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f28600;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #da7800;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-primary:focus {
  outline: none;
  ring: 2px solid #f28600;
  ring-offset: 2px;
}

.btn-primary:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4b5563;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #374151;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #059669;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-success:hover {
  background-color: #047857;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #dc2626;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-danger:hover {
  background-color: #b91c1c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Card Component */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* Form Components */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: #f28600;
  box-shadow: 0 0 0 1px #f28600;
}

.form-input:disabled {
  background-color: #f9fafb;
  color: #6b7280;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-checkbox {
  height: 1rem;
  width: 1rem;
  color: #f28600;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

.form-checkbox:focus {
  ring: 2px solid #f28600;
}

/* Utility Classes */
.text-primary {
  color: #f28600;
}

.bg-primary {
  background-color: #f28600;
}

.border-primary {
  border-color: #f28600;
}

/* Additional Components */
.stat-card {
  transition: all 0.3s ease-in-out;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Tab Components */
.tab-button {
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.tab-button.active {
  border-bottom-color: #f28600;
  color: #f28600;
}

.tab-button:hover:not(.active) {
  color: #374151;
  border-bottom-color: #d1d5db;
}

/* Modal Components */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 32rem;
}

/* Navigation Styles */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.nav-link:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.nav-link.active {
  background-color: #ffedd5;
  color: #da7800;
  border-right: 2px solid #f28600;
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: #ffedd5;
  color: #964f00;
}

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

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-gray {
  background-color: #f3f4f6;
  color: #374151;
}

/* Additional Utilities */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.transition-all {
  transition: all 0.2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary, .btn-success, .btn-danger {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .card {
    margin: 0.5rem;
  }
}