/* Provider Models Index Styles */

.provider-models-index {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .provider-models-index {
    padding: 0 3rem;
  }
}

@media (min-width: 1200px) {
  .provider-models-index {
    padding: 0 4rem;
  }
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.page-header .text-muted {
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: #adb5bd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.stat-card p {
  margin: 0;
  color: #666;
  font-size: 0.875rem;
}

.providers-section {
  margin-bottom: 3rem;
}

.provider-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.provider-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background: white;
  color: #333;
}

.provider-card.inactive {
  opacity: 0.6;
  background: #f5f5f5;
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.provider-header h3 {
  margin: 0;
  color: #1a1a1a;
}

.models-section {
  margin-bottom: 3rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.model-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background: white;
  color: #333;
}

.model-header {
  margin-bottom: 1rem;
}

.model-header h3 {
  margin: 0 0 0.5rem 0;
  color: #1a1a1a;
}

.model-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.model-description {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.capabilities {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #333;
}

.capabilities strong {
  color: #666;
}

.capability-list {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.capability-list li {
  margin-bottom: 0.25rem;
}

.provider-mappings {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #333;
}

.provider-mappings strong {
  color: #666;
}

.provider-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.provider-list li {
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provider-name {
  font-weight: 500;
}

.provider-model-id {
  font-size: 0.75rem;
  padding: 0.125rem 0.25rem;
  background: #f0f0f0;
  border-radius: 3px;
}

.has-specs {
  cursor: help;
}

.default-params {
  font-size: 0.75rem;
}

.default-params summary {
  cursor: pointer;
  color: #666;
  padding: 0.25rem 0;
}

.default-params pre {
  background: #f5f5f5;
  padding: 0.5rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
}

.status-badge.inactive {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.beta {
  background: #fff3cd;
  color: #856404;
}

.priority-badge {
  background: #e7f3ff;
  color: #004085;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.type-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.type-badge.image {
  background: #e7f3ff;
  color: #004085;
}

.type-badge.video {
  background: #f3e7ff;
  color: #4a0085;
}

.mappings-section {
  margin-bottom: 3rem;
}

.mappings-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  color: #333;
}

.mappings-table th {
  background: #f8f9fa;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  color: #1a1a1a;
}

.mappings-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  color: #333;
}

.mappings-table td strong {
  color: #666;
}

.mappings-table tbody tr:hover {
  background: #f8f9fa;
}

.mappings-table details {
  font-size: 0.75rem;
}

.mappings-table details summary {
  cursor: pointer;
  color: #007bff;
}

.mappings-table details pre {
  background: #f5f5f5;
  padding: 0.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.service-class {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.mapping-count {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
}

/* Dark Theme */
[data-theme="dark"] .page-header h1 {
  color: #fff;
}

[data-theme="dark"] .page-header .text-muted {
  color: #999;
}

[data-theme="dark"] .stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

[data-theme="dark"] .stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stat-card h3 {
  color: #fff;
}

[data-theme="dark"] .stat-card p {
  color: #999;
}

[data-theme="dark"] .providers-section h2,
[data-theme="dark"] .models-section h2,
[data-theme="dark"] .mappings-section h2 {
  color: #fff;
}

[data-theme="dark"] .provider-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.2s ease;
}

[data-theme="dark"] .provider-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .provider-card.inactive {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .provider-header h3 {
  color: #fff;
}

[data-theme="dark"] .service-class {
  color: #999;
}

[data-theme="dark"] .model-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.2s ease;
}

[data-theme="dark"] .model-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .model-header h3 {
  color: #fff;
}

[data-theme="dark"] .model-description {
  color: #aaa;
}

[data-theme="dark"] .capabilities {
  color: #fff;
}

[data-theme="dark"] .capabilities strong {
  color: #999;
}

[data-theme="dark"] .capability-list {
  color: #aaa;
}

[data-theme="dark"] .provider-mappings {
  color: #fff;
}

[data-theme="dark"] .provider-mappings strong {
  color: #999;
}

[data-theme="dark"] .provider-list {
  color: #aaa;
}

[data-theme="dark"] .provider-name {
  color: #fff;
}

[data-theme="dark"] .provider-model-id {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

[data-theme="dark"] .default-params summary {
  color: #999;
}

[data-theme="dark"] .default-params summary:hover {
  color: #fff;
}

[data-theme="dark"] .default-params pre {
  background: rgba(0, 0, 0, 0.3);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .status-badge.active {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .status-badge.inactive {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

[data-theme="dark"] .status-badge.beta {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .priority-badge {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .type-badge.image {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .type-badge.video {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

[data-theme="dark"] .mappings-table {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .mappings-table th {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .mappings-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .mappings-table td strong {
  color: #aaa;
}

[data-theme="dark"] .mappings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mappings-table details summary {
  color: #60a5fa;
}

[data-theme="dark"] .mappings-table details pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}
