/* Admin Merchant Show - Enterprise SaaS Design (Matching Form Style) */

/* Performance optimizations for smooth scrolling */
.admin-merchant-show-container {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 2rem 0;
  /* Enable hardware acceleration for better scrolling performance */
  transform: translateZ(0);
  will-change: scroll-position;
}

/* Optimize scrolling performance */
.admin-merchant-show-container * {
  /* Reduce transition impact during scrolling */
  transition-duration: 0.2s;
}

/* Disable transitions during scroll for better performance */
.admin-merchant-show-container.scrolling * {
  transition: none !important;
  transform: none !important;
}

/* Header Section */
.show-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-left {
  flex: 1;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: #e2e8f0;
  font-weight: 500;
}

.show-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.show-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.header-actions .btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.header-actions .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Stats Overview */
.stats-overview {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-status .stat-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.stat-pos .stat-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.stat-domain .stat-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.stat-created .stat-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Content Grid */
.content-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.info-card .card-header {
  background: #f8fafc;
  padding: 2rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-title h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.card-title p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.info-card .card-body {
  padding: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 500;
}

.subdomain-code {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.status-active {
  background: #dcfce7;
  color: #166534;
}

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

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

.pos-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  font-weight: 500;
}

.email-link, .phone-link {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover, .phone-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Address Display */
.address-display {
  background: #f8fafc;
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid #10b981;
}

.address-line {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.address-city-state {
  font-weight: 600;
  color: #059669;
  margin-bottom: 0.5rem;
}

.address-country {
  font-size: 0.875rem;
  color: #64748b;
}

.address-warning {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fef3c7;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  font-size: 0.875rem;
}

/* Statistics Grid Inline */
.stats-grid-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number-large {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Sidebar Cards */
.logo-card, .actions-card, .system-card, .timeline-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.logo-card .card-header, .actions-card .card-header, .system-card .card-header, .timeline-card .card-header {
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.logo-card .card-header h4, .actions-card .card-header h4, .system-card .card-header h4, .timeline-card .card-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.logo-card .card-body, .actions-card .card-body, .system-card .card-body, .timeline-card .card-body {
  padding: 2rem;
}

.action-buttons .btn {
  transition: all 0.3s ease;
  border-radius: 12px;
  font-weight: 500;
}

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

.system-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}

.system-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.system-value {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: #475569;
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  border-left: 4px solid #3b82f6;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
  }

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

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

  .show-title {
    font-size: 2rem;
  }

  .header-content, .stats-overview, .content-grid {
    padding: 0 1rem;
  }

  .show-header {
    padding: 2rem 0;
  }

  .show-title {
    font-size: 1.75rem;
  }
}

/* Customer Tables Section */
.customer-tables-section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.customer-tables-section .section-header {
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.customer-tables-section .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
}

.customer-tables-section .section-content {
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.table-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.table-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.table-number {
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: center;
}

.table-status .status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.status-active {
  background: #d1fae5;
  color: #059669;
}

.status-disabled {
  background: #fee2e2;
  color: #dc2626;
}

.table-body {
  padding: 1.5rem;
}

.qr-code-section {
  margin-bottom: 1rem;
}

.qr-code-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.qr-code-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-code-text {
  background: #f1f5f9;
  color: #475569;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  flex: 1;
}

.qr-warning {
  background: #fef3c7;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  color: #d97706;
}

.table-actions {
  padding: 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.table-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* QR Code Modal Styles */
.qr-code-container {
  padding: 1rem;
}

.qr-code-image {
  margin-bottom: 1rem;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.qr-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.qr-text {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  text-align: center;
  word-break: break-all;
  padding: 0 0.5rem;
}

.qr-details p {
  margin-bottom: 0.5rem;
  color: #475569;
}

/* Responsive Design for Customer Tables */
@media (max-width: 768px) {
  .customer-tables-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    flex-direction: column;
  }

  .table-actions .btn {
    flex: none;
    width: 100%;
  }
}
