/**
 * Customer Portal Styles
 *
 * Custom styling for Lamassu customer account portal pages.
 * Uses Tailwind CSS utility classes with additional customizations.
 *
 * Task: T011 - Portal stylesheet
 */

/* Dashboard specific styles */
.account-dashboard {
  min-height: 60vh;
}

.dashboard-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
}

/* Summary Cards */
.summary-card {
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
}

/* Navigation Grid */
.nav-item {
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item:hover {
  border-color: #d1d5db;
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }

  .nav-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header h1 {
    font-size: 1.875rem; /* 3xl on mobile */
  }
}

/* Portal page common styles */
.portal-page {
  padding: 2rem 1rem;
}

.portal-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px dashed #d1d5db;
}

.empty-state svg {
  margin: 0 auto 1rem;
  color: #9ca3af;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

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

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

/* Lists */
.portal-list {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.portal-list-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.portal-list-item:hover {
  background-color: #f9fafb;
}

.portal-list-item:last-child {
  border-bottom: none;
}

/* Loading states */
.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.status-open {
  background-color: #dbeafe;
  color: #1e40af;
}

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

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

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

/* Print styles */
@media print {
  .account-dashboard .summary-cards,
  .account-dashboard .nav-grid {
    page-break-inside: avoid;
  }

  .nav-item:hover,
  .summary-card:hover {
    transform: none;
  }
}
