.category-show-dashboard {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 2rem 0;
}

/* Header Styles */
.dashboard-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: center;
}

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

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

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.header-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.header-actions .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
}

.header-actions .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

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

.overview-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.overview-card {
  padding: 0;
}

.overview-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.overview-info {
  flex: 1;
}

.overview-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
}

.overview-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-item i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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

.overview-body {
  padding: 2rem;
}

.description-section,
.image-section {
  margin-bottom: 2rem;
}

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

.description-text {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.image-container {
  text-align: center;
}

.category-image {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
}

.section-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.section-content {
  padding: 2rem;
}

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

.product-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);
}

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

.product-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
}

.product-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.product-body {
  padding: 0 1.5rem 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

.product-description {
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.metric-item i {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.25rem 0;
}

.metric-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-details {
  margin-bottom: 1.5rem;
}

.detail-section {
  margin-bottom: 1rem;
}

.detail-content {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.detail-name {
  font-weight: 500;
  color: #1e293b;
}

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

.modifier-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.modifier-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.group-name {
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-actions {
  margin-top: auto;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h4 {
  color: #475569;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modal Table Styles */
.modal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.modal-table th,
.modal-table td {
  padding: 1rem;
  border: none;
  vertical-align: middle;
}

.modal-table th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.modal-table tbody tr {
  transition: background-color 0.2s ease;
}

.modal-table tbody tr:hover {
  background-color: #f8fafc;
}

.modal-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.modal-table tbody tr:nth-child(even):hover {
  background-color: #f1f5f9;
}

/* Column Widths */
.modal-checkbox-column {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  text-align: center;
  padding: 0.75rem !important;
}

.modal-product-column {
  width: 40% !important;
  min-width: 40% !important;
  max-width: 40% !important;
}

.modal-variations-column {
  width: 20% !important;
  min-width: 20% !important;
  max-width: 20% !important;
  text-align: center;
}

.modal-modifiers-column {
  width: 20% !important;
  min-width: 20% !important;
  max-width: 20% !important;
  text-align: center;
}

/* Ensure table layout is enforced */
.modal-table {
  table-layout: fixed !important;
}

.modal-table th,
.modal-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-table .modal-product-column {
  white-space: normal;
  word-wrap: break-word;
}

.modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 16px 16px 0 0;
}

.modal-title {
  color: #1e293b;
  font-weight: 600;
}

.search-section {
  margin-bottom: 1.5rem;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 10;
}

.search-input {
  padding-left: 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
}

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

.table-section {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.table-header th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.checkbox-column {
  width: 50px;
  text-align: center;
}

.product-row {
  transition: background-color 0.2s ease;
}

.product-row:hover {
  background-color: #f8fafc;
}

.product-row td {
  padding: 1rem;
  border: none;
  vertical-align: middle;
}

.product-info {
  display: flex;
  flex-direction: column;
}

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

.product-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
}

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

.empty-modal-state {
  text-align: center;
}

.empty-modal-state i {
  font-size: 3rem;
  display: block;
}

.empty-modal-state h5 {
  color: #475569;
  margin: 1rem 0 0.5rem 0;
}

.empty-modal-state p {
  color: #94a3b8;
  margin: 0;
}

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

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

  .overview-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .overview-stats {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section-actions {
    flex-direction: column;
    width: 100%;
  }

  .section-actions .btn {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .dashboard-header {
    padding: 2rem 0;
  }

  .header-content {
    padding: 0 1rem;
  }

  .overview-section,
  .products-section {
    padding: 0 1rem;
  }

  .overview-container,
  .section-container {
    border-radius: 0;
    margin: 0 -1rem;
  }

  .overview-header,
  .section-header {
    border-radius: 0;
  }
}

/* Animation for overview elements */
.overview-header {
  animation: fadeInUp 0.6s ease forwards;
}

.overview-stats .stat-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.overview-stats .stat-item:nth-child(1) { animation-delay: 0.1s; }
.overview-stats .stat-item:nth-child(2) { animation-delay: 0.2s; }
.overview-stats .stat-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects */
.product-card:hover .product-icon {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.metric-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Floating notification styles are now in application.css for global reuse */
