
.shows-list-container {
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.shows-header {
  margin-bottom: 2rem;
  flex-shrink: 0;

  h1 {
    margin: 0 0 0.5rem 0;
    color: #333333;
    font-weight: 600;
    font-size: 2rem;
  }

  p {
    margin: 0;
    color: #666666;
    font-size: 1rem;
  }
}

.shows-content {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}


// LIGHTBOX

.step-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.step-lightbox-container {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

// ===========================
// LIGHTBOX HEADER
// ===========================
.step-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;

  .header-content {
    flex: 1;
    position: relative;
    z-index: 1;

    h2 {
      margin: 0 0 0.5rem 0;
      font-size: 1.75rem;
      font-weight: 700;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .subtitle {
      margin: 0;
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.95);
      line-height: 1.5;
    }
  }

  .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: white;

    &:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg) scale(1.1);
    }

    mat-icon {
      font-size: 1.5rem;
      width: 1.5rem;
      height: 1.5rem;
    }
  }
}

// ===========================
// PROGRESS BAR
// ===========================
.step-progress {
  padding: 1.25rem 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;

  .progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
      border-radius: 10px;
      transition: width 0.4s ease;
    }
  }

  .progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

// ===========================
// STEP BODY
// ===========================
.step-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  min-height: 0;
  
  &::-webkit-scrollbar {
    width: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
    
    &:hover {
      background: #764ba2;
    }
  }

  .step-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);

    .step-icon {
      font-size: 2rem;
      width: 2rem;
      height: 2rem;
      color: white;
    }
  }

  .step-title {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
  }

  .step-text {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
  }

  .step-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 1.5rem;
    
    p {
      margin: 0.5rem 0;
      color: #444;
      font-size: 0.95rem;
      line-height: 1.8;
      
      &:first-child {
        margin-top: 0;
      }
      
      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  .step-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
    font-weight: 500;

    mat-icon {
      font-size: 1.2rem;
      width: 1.2rem;
      height: 1.2rem;
    }
  }
}

// ===========================
// STEP FOOTER
// ===========================
.step-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;

  .step-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    mat-icon {
      font-size: 1.2rem;
      width: 1.2rem;
      height: 1.2rem;
    }

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    &:active {
      transform: translateY(0);
    }

    &.btn-primary {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;

      &:hover {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
      }
    }

    &.btn-secondary {
      background: #6c757d;
      color: white;

      &:hover {
        background: #5a6268;
      }
    }

    &.btn-success {
      background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
      color: white;

      &:hover {
        box-shadow: 0 6px 20px rgba(86, 171, 47, 0.4);
      }
    }

    &.btn-warning {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      color: white;

      &:hover {
        box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
      }
    }
  }
}

// ===========================
// TABS
// ===========================
.tabs-header {
  border-bottom: 1px solid #e0e0e0;
  background: white;
  flex-shrink: 0;
}

.tabs-nav {
  padding: 0 2rem;
}

.tabs-container {
  display: flex;
  gap: 0.5rem;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666666;
  font-weight: 500;

  &:hover {
    color: #667eea;
    background: #f8f9fa;
  }

  &.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f0f2ff;
  }

  mat-icon {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }

  .tab-count {
    background: #e0e0e0;
    color: #666666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
  }

  &.active .tab-count {
    background: #667eea;
    color: white;
  }
}

// ===========================
// CONTROLS BAR
// ===========================
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  width: 300px;

  .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1.25rem;
  }

  .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;

    &:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
  }
}

.search-and-nature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.status-filter {
  display: flex;
  align-items: center;
  gap: 1rem;

  .filter-label {
    font-weight: 500;
    color: #333333;
    font-size: 0.9rem;
  }

  .radio-group {
    display: flex;
    gap: 1rem;
  }

  .radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;

    input[type="radio"] {
      margin: 0;
      cursor: pointer;
    }

    .radio-label {
      font-size: 0.9rem;
      color: #666666;
    }

    input[type="radio"]:checked + .radio-label {
      color: #667eea;
      font-weight: 500;
    }
  }
}

.nature-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  
  .filter-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
  }
}

.nature-dropdown {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  
  &:hover {
    border-color: #999;
    background-color: #f8f9fa;
  }
  
  &:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  }
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  &.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;

    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
  }
}

.new-show-btn {
  mat-icon {
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
  }
}

// ===========================
// RESULTS SUMMARY
// ===========================
.results-summary {
  padding: 1rem 2rem;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;

  p {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
  }
}

// ===========================
// TABLE
// ===========================
.shows-table-container {
  padding: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  flex: 1;
  min-height: 0;
}

.shows-table {
  font-size: 0.9rem;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;

  thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
  }

  th {
    text-align: left;
    padding: 1rem;
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
  }

  td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
  }

  tr:hover {
    background: #f8f9fa;
  }

  .text-center {
    text-align: center;
  }

  tbody tr:nth-child(even) {
    background-color: #fafafa;
  }

  .clickable {
    cursor: pointer;
    transition: background 0.2s ease;

    &:hover {
      background: linear-gradient(90deg, #e3f2fd 0%, #f3e5f5 100%) !important;
    }
  }

  .show-title {
    strong {
      color: #333333;
      font-weight: 600;
      display: block;
      margin-bottom: 0.25rem;
    }

    .created-by {
      color: #666666;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;

      .step-count-icon {
        font-size: 0.9rem !important;
        width: 0.9rem !important;
        height: 0.9rem !important;
        color: #667eea !important;
      }
    }
  }

  .show-description {
    margin: 0;
    // color: #666666;
    line-height: 1.4;
  }

  .date-info {
    .date {
      color: #333333;
      font-weight: 500;
      font-size: 0.9rem;
    }

    .time {
      color: #666666;
      font-size: 0.8rem;
    }
  }
}

.th-filter-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  
  span {
    font-weight: 600;
    font-size: 14px;
  }
}

.inline-dropdown {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  
  &:hover {
    border-color: #999;
    background-color: #f8f9fa;
  }
  
  &:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
  }
}

// ===========================
// BADGES
// ===========================
.type-badge,
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  
  &.status-pending {
    background-color: #fff4e5;
    color: #ff9800;
  }
  
  &.status-active {
    background-color: #e8f5e9;
    color: #4caf50;
  }
  
  &.status-deleted {
    background-color: #ffebee;
    color: #f44336;
  }
  
  &.status-amended {
    background-color: #e3f2fd;
    color: #2196f3;
  }
  
  &.status-inactive {
    background-color: #f5f5f5;
    color: #757575;
  }
  
  &.status-archived {
    background-color: #fce4ec;
    color: #e91e63;
  }
  
  &.status-default {
    background-color: #f5f5f5;
    color: #9e9e9e;
  }
}

.nature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  background-color: #e3f2fd;
  color: #1976d2;
  font-size: 13px;
  font-weight: 500;
  
  .nature-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
  }
}

.showname-dashboard-tour {
  background-color: #4caf50;
  color: white;
}

.showname-diwali-offer {
  background-color: #ff9800;
  color: white;
}

.showname-policy-update {
  background-color: #607d8b;
  color: white;
}

.showname-tm-lesson {
  background-color: #3f51b5;
  color: white;
}

.showname-onboarding-checklist {
  background-color: #673ab7;
  color: white;
}

.showname-reporting-tour {
  background-color: #2196f3;
  color: white;
}

.showname-q1-features {
  background-color: #9c27b0;
  color: white;
}

.showname-default {
  background-color: #999;
  color: #fff;
}

// ===========================
// ACTION BUTTONS
// ===========================
.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;

  .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    background: transparent;

    &:hover {
      transform: translateY(-1px);
    }

    &.btn-edit:hover {
      background: #2196f3;
      color: white;
    }

    &.btn-toggle:hover {
      background: #ff9800;
      color: white;
    }

    &.btn-delete:hover {
      background: #f44336;
      color: white;
    }

    mat-icon {
      font-size: 1.1rem;
      width: 1.1rem;
      height: 1.1rem;
    }
  }
}

// ===========================
// EMPTY STATE
// ===========================
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666666;

  mat-icon {
    font-size: 4rem;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
  }

  h3 {
    margin: 0 0 1rem 0;
    color: #333333;
    font-weight: 600;
  }

  p {
    margin: 0 0 2rem 0;
    font-size: 1rem;
  }
}

// ===========================
// RESPONSIVE
// ===========================
@media (max-width: 1200px) {
  .controls-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .filter-controls {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .step-lightbox-overlay {
    padding: 10px;
  }

  .step-lightbox-container {
    max-height: 95vh;
    border-radius: 12px;
  }

  .step-lightbox-header {
    padding: 1.5rem;

    .header-content h2 {
      font-size: 1.4rem;
    }

    .header-content .subtitle {
      font-size: 0.85rem;
    }
  }

  .step-progress,
  .step-body,
  .step-footer {
    padding: 1.25rem;
  }

  .step-body {
    .step-icon-wrapper {
      width: 50px;
      height: 50px;

      .step-icon {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
      }
    }

    .step-title {
      font-size: 1.25rem;
    }

    .step-text {
      font-size: 0.95rem;
    }
  }

  .step-footer {
    flex-direction: column;

    .step-action-btn {
      width: 100%;
      min-width: unset;
    }
  }

  .tabs-container {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .tab-button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .shows-table {
    display: block;
    overflow-x: auto;

    th,
    td {
      white-space: nowrap;
    }
  }

  .filter-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .status-filter {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .step-lightbox-header {
    .header-content h2 {
      font-size: 1.2rem;
    }
  }

  .step-body {
    .step-title {
      font-size: 1.1rem;
    }
  }
}