/* Algolia Dashboard Custom Styles */

.algolia-settings-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.algolia-settings-preview pre {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
}

.algolia-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.current-config {
  color: #28a745;
  font-weight: bold;
}

.json-editor {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
}

.member_link {
  margin-right: 5px;
}

/* Modern Dashboard Styles */
.algolia-dashboard {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  background: #f8fafc;
  min-height: 100vh;
}

/* Header Section */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
  margin: 0 0 6px 0;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}

.header-actions {
  flex-shrink: 0;
}

/* Main Dashboard Grid - 3 Column Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr 350px;
  gap: 24px;
  align-items: start;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-column {
  /* Stats and Quick Actions */
}

.middle-column {
  /* Current Configurations */
}

.right-column {
  /* Recent Configurations and Index Management */
}

/* Left Column - Stats & Quick Actions */
.stats-section,
.quick-actions-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.stats-section h2,
.quick-actions-section h2 {
  margin: 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.stats-grid {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  flex: 1;
  margin-left: 12px;
}

.stat-icon {
  font-size: 18px;
  opacity: 0.7;
}

.quick-actions-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-action-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.quick-action-item.primary {
  background: #eff6ff;
  border-color: #3b82f6;
}

.quick-action-item.primary:hover {
  background: #dbeafe;
}

.action-icon {
  font-size: 16px;
  margin-right: 12px;
  opacity: 0.8;
}

.action-text {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
}

/* Middle & Right Columns - Configurations */
.configurations-section,
.recent-configurations-section,
.index-management-section,
.quick-preview-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.section-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #3b82f6;
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.configurations-list,
.index-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.configuration-item,
.index-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.configuration-item:hover,
.index-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.configuration-item.active {
  border-color: #10b981;
  border-width: 2px;
}

.configuration-item.draft {
  border-color: #f59e0b;
  border-width: 2px;
}

.config-header,
.index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.config-name,
.index-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

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

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

.config-details,
.index-body {
  padding: 12px 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.detail-label {
  color: #64748b;
  font-weight: 500;
}

.detail-value {
  color: #1e293b;
  font-weight: 600;
}

.config-description {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.config-description p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  line-height: 1.3;
}

.config-actions,
.index-actions {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.action-btn {
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  background: white;
  color: #475569;
}

.action-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.action-btn.primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.action-btn.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

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

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

/* Index Management Specific */
.index-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.active {
  background: #10b981;
}

.status-dot.inactive {
  background: #ef4444;
}

.status-text {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}

.index-details {
  margin-bottom: 8px;
}

.detail-row span {
  color: #64748b;
}

.detail-row strong {
  color: #1e293b;
  font-weight: 600;
}

.no-config {
  text-align: center;
  padding: 12px;
}

.no-config p {
  margin: 0;
  font-size: 11px;
  color: #ef4444;
  font-weight: 500;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state h3 {
  margin: 0 0 6px 0;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 16px 0;
  font-size: 12px;
  line-height: 1.4;
}

/* Buttons */
.button {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.large {
  padding: 10px 20px;
  font-size: 14px;
}

.button.primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.button.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Quick Preview Section */
.preview-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.preview-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.preview-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.preview-header {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.preview-header h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.preview-index {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.preview-content {
  padding: 12px 16px;
}

.preview-stats {
  display: flex;
  gap: 12px;
}

.preview-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.preview-stat .stat-number {
  font-size: 16px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 2px;
}

.preview-stat .stat-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.preview-actions {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.modal-body {
  padding: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * Note: webshop.css is excluded - it's a separate manifest for the webshop
 *


 */
