/**
 * WooCommerce Ticket System Custom CSS for Tailwind
 * This file contains custom styles that work with Tailwind CSS
 */

/* Ensure Tailwind doesn't conflict with WordPress admin styles */
.wc-ticket-system {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Custom component styles that work with Tailwind */
.wc-ticket-system .wc-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 200ms;
}

.wc-ticket-system .wc-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.wc-ticket-system .wc-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.wc-ticket-system .wc-btn-primary:hover {
  background-color: #1d4ed8;
}

.wc-ticket-system .wc-btn-secondary {
  background-color: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.wc-ticket-system .wc-btn-secondary:hover {
  background-color: #f9fafb;
}

.wc-ticket-system .wc-btn-success {
  background-color: #10b981;
  color: #ffffff;
}

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

.wc-ticket-system .wc-btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.wc-ticket-system .wc-btn-danger:hover {
  background-color: #dc2626;
}

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

.wc-ticket-system .status-open {
  background-color: #dbeafe;
  color: #1e40af;
}

.wc-ticket-system .status-in_progress {
  background-color: #fef3c7;
  color: #92400e;
}

.wc-ticket-system .status-waiting_for_customer {
  background-color: #ffedd5;
  color: #9a3412;
}

.wc-ticket-system .status-waiting_for_support {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.wc-ticket-system .status-resolved {
  background-color: #d1fae5;
  color: #065f46;
}

.wc-ticket-system .status-closed {
  background-color: #f3f4f6;
  color: #1f2937;
}

.wc-ticket-system .priority-low {
  background-color: #d1fae5;
  color: #065f46;
}

.wc-ticket-system .priority-medium {
  background-color: #fef3c7;
  color: #92400e;
}

.wc-ticket-system .priority-high {
  background-color: #ffedd5;
  color: #9a3412;
}

.wc-ticket-system .priority-critical {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Card styles */
.wc-ticket-system .wc-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.wc-ticket-system .wc-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.wc-ticket-system .wc-card-body {
  padding: 1.5rem;
}

.wc-ticket-system .wc-card-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

/* Form styles */
.wc-ticket-system .wc-form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.wc-ticket-system .wc-form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
  border-color: #3b82f6;
}

.wc-ticket-system .wc-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.wc-ticket-system .wc-form-help {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Table styles */
.wc-ticket-system .wc-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.wc-ticket-system .wc-table thead {
  border-bottom: 1px solid #e5e7eb;
}

.wc-ticket-system .wc-table-header {
  background-color: #f9fafb;
}

.wc-ticket-system .wc-table-header th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wc-ticket-system .wc-table-body {
  background-color: #ffffff;
}

.wc-ticket-system .wc-table-body tr {
  border-bottom: 1px solid #e5e7eb;
}

.wc-ticket-system .wc-table-body td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: #6b7280;
}

.wc-ticket-system .wc-table-row:hover {
  background-color: #f9fafb;
}

/* Pagination styles */
.wc-ticket-system .wc-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.wc-ticket-system .wc-pagination-item {
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
}

.wc-ticket-system .wc-pagination-link {
  color: #374151;
  background-color: #ffffff;
}

.wc-ticket-system .wc-pagination-link:hover {
  background-color: #f9fafb;
}

.wc-ticket-system .wc-pagination-current {
  color: #ffffff;
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wc-ticket-system .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .wc-ticket-system .wc-table {
    table-layout: auto;
  }
}
