// Hide GrapesJS outlines/highlights - IMPORTANT: This must be global
:host ::ng-deep .gjs-dashed *[data-gjs-highlightable] {
  display: none !important;
}

:host ::ng-deep .gjs-cv-canvas {
  .gjs-dashed *[data-gjs-highlightable] {
    display: none !important;
  }
  
  // Hide any other GrapesJS visual indicators
  .gjs-hovered,
  .gjs-selected {
    outline: none !important;
    border: none !important;
  }
}

.wireframe-container {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh;
  position: relative;

  .app-container {
    display: flex;
    height: 100vh;
    width: 100%;

    .canvas-container {
      flex: 1;
      height: 100%;
      overflow: hidden;

      .page-canvas {
        width: 100%;
        height: 100%;
      }
    }

  }

  .no-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f9f9f9;
    color: #666;

    p {
      font-size: 18px;
      margin: 0;
    }
  }

  .page-list {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 999;

    h4 {
      margin: 0 0 10px 0;
      font-size: 14px;
      color: #333;
    }

    .page-buttons {
      display: flex;
      flex-direction: column;
      gap: 5px;

      .page-btn {
        padding: 8px 12px;
        border: 1px solid #ddd;
        background: white;
        cursor: pointer;
        font-size: 12px;
        border-radius: 4px;
        transition: all 0.2s ease;

        &:hover {
          background: #f8f9fa;
        }

        &.active {
          background: #007bff;
          color: white;
          border-color: #007bff;
        }
      }
    }
  }

  // Sticky navigation at bottom center
  .sticky-navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;

    .nav-btn {
      padding: 10px 20px;
      border: none;
      border-radius: 25px;
      background-color: #2196F3;
      color: white;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;

      &:hover:not(:disabled) {
        background-color: #1976D2;
        transform: translateY(-2px);
      }

      &:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
        transform: none;
      }

      &.prev-btn {
        background-color: #FF9800;

        &:hover:not(:disabled) {
          background-color: #F57C00;
        }
      }
    }

    .page-indicator {
      padding: 8px 16px;
      background-color: rgba(33, 150, 243, 0.1);
      border-radius: 20px;
      font-weight: bold;
      color: #333;
      border: 2px solid #2196F3;
      font-size: 14px;
    }
  }
}