.orchestration-container {
  display: none;
}

.microlesson-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 9999;
  animation: slideInUp 0.3s ease-out;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;

    .close {
      cursor: pointer;
      font-size: 1.5rem;
      color: #666;
      transition: color 0.2s;
      line-height: 1;
      padding: 0;
      background: none;
      border: none;
      width: auto;
      min-width: auto;

      &:hover {
        color: #000;
        transform: none;
        box-shadow: none;
      }
    }
  }

  p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .open-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    &:active {
      transform: translateY(0);
    }
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// Responsive
@media (max-width: 768px) {
  .microlesson-launcher {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}


// gborchestration.component.scss

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #999;
  line-height: 1;

  &:hover {
    color: #333;
  }
}

.play-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #999;
  line-height: 1;

  &:hover {
    color: #333;
  }
}

h3 {
  margin: 0 0 20px 0;
  color: #2196f3;
  font-size: 18px;
}

.info-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;

  div {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 5px;
    font-size: 14px;

    strong {
      color: #666;
      margin-right: 8px;
    }
  }
}

.description {
  padding: 12px;
  background: #e3f2fd;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}

.btn-close {
  width: 100%;
  padding: 12px;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  &:hover {
    background: #1976d2;
  }
}

// Right Side Panel Styles

.side-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  transition: all 0.3s ease;

  // Closed state: hide content, show only toggle button
  &:not(.open) {
    .panel-inner {
      width: 0;
      overflow: hidden;
      opacity: 0;
    }
  }

  // Open state: show full panel
  &.open {
    width: 350px;

    .panel-inner {
      width: 350px;
      opacity: 1;
    }
  }

  // Always visible toggle button
  .panel-toggle-sticky {
    position: absolute;
    right: 0;
    top: 200px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);

    &:hover {
      background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
      box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.2);
      transform: translateX(-4px);
    }

    &:active {
      transform: scale(0.95);
    }
  }

  // Inner panel with content
  .panel-inner {
    display: flex;
    flex-direction: column;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .panel-header {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;

    h2 {
      margin: 0;
      font-size: 18px;
      color: white;
      font-weight: 600;
    }
  }

  .panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;

    .empty-state {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: #999;
      font-size: 14px;
      padding: 20px;
      text-align: center;
    }

    .actions-list {
      display: flex;
      flex-direction: column;
      gap: 0;

      .action-item {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: all 0.2s;
        border-left: 4px solid transparent;

        &:hover {
          background: #f5f5f5;
          border-left-color: #667eea;
          padding-left: 14px;
        }

        &:active {
          background: #efefef;
          transform: scale(0.98);
        }

        .action-header {
          display: flex;
          justify-content: space-between;
          align-items: flex-start;
          gap: 12px;
        }

        .action-type {
          font-size: 12px;
          font-weight: 600;
          color: #667eea;
          text-transform: uppercase;
          letter-spacing: 0.5px;
          margin-bottom: 4px;
        }

        .action-title {
          font-size: 14px;
          font-weight: 500;
          color: #333;
          margin-bottom: 4px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .action-priority {
          font-size: 11px;
          font-weight: 600;
          padding: 4px 8px;
          border-radius: 4px;
          white-space: nowrap;
          flex-shrink: 0;
          text-transform: uppercase;
          letter-spacing: 0.3px;

          &.priority-0 {
            background: #c8e6c9;
            color: #1b5e20;
          }

          &.priority-1 {
            background: #fff9c4;
            color: #f57f17;
          }

          &.priority-2 {
            background: #ffccbc;
            color: #d84315;
          }

          &.priority-3 {
            background: #ffcdd2;
            color: #b71c1c;
          }
        }

        .action-intent {
          font-size: 12px;
          color: #666;
          font-style: italic;
        }
      }
    }
  }
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .side-panel {
    &.open {
      width: 100%;
      width: calc(100vw - 40px);
      max-width: 300px;
    }
  }
}

@media (max-width: 480px) {
  .side-panel {
    &.open {
      width: 100vw;
      max-width: 100vw;

      .panel-header h2 {
        font-size: 16px;
      }

      .panel-content .actions-list .action-item {
        padding: 10px 12px;

        .action-title {
          font-size: 13px;
        }
      }
    }
  }
}