.content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.side-menu.collapsed {
  width: 80px !important
}

.side-menu.collapsed span {
  display: none;
}


.sidebar {
  width: 210px;
  background: white;
  border-right: 1px solid #e0e0e0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;

  h2 {
    margin: 0;
    color: #333;
    font-weight: 600;
  }

  .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.form-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;

  input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  &.btn-primary {
    background: var(--button-primary-bg-active);
    color: white;

    &:hover {
      background: #7f149a;
    }
  }

  &.btn-secondary {
    background: #6c757d;
    color: white;

    &:hover {
      background: #545b62;
    }
  }
}

.coming-soon {
  text-align: center;
  padding: 3rem;
  color: #666;

  mat-icon {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  h3 {
    margin: 0 0 1rem 0;
    color: #333;
  }
}

// Modal Styles
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;

  h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;

    &:hover {
      color: #333;
    }
  }
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
}

.settings-form {
  .form-group {
    margin-bottom: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1rem;

  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
  }

  .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;

    &:focus {
      outline: none;
      border-color: #2196f3;
    }
  }

  .color-picker {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;

  input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

// Banner Form Styles
.banner-form {
  .color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;

    .color-picker {
      width: 60px;
      height: 40px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    .color-value {
      font-family: monospace;
      font-size: 0.9rem;
      color: #666;
    }
  }

  .range-value {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #666;
  }

  .checkbox-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .preview-section {
    margin-top: 2rem;
    flex: 1;
    background: #f8f9fa;
    transition: all 0.3s ease;

    &.full-width {
      margin-left: 0;
    }

    .preview-container {
      border: 2px dashed #ddd;
      border-radius: 8px;
      padding: 2rem;
      background: #f8f9fa;
    }

    .banner-preview {
      padding: 1.5rem;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

      .banner-content {
        h4 {
          margin: 0 0 0.5rem 0;
          font-size: 1.2rem;
        }

        p {
          margin: 0 0 1rem 0;
          line-height: 1.5;
        }

        .banner-link {
          color: inherit;
          text-decoration: underline;
          font-weight: 500;
          cursor: pointer;

          &:hover {
            opacity: 0.8;
          }
        }
      }
    }
  }
}

// Banner Preview Overlay
.banner-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;

  .banner-preview-content {
    position: absolute;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);

    &.position-top {
      top: 0;
      animation: slideDown 0.3s ease;
    }

    &.position-bottom {
      bottom: 0;
      animation: slideUp 0.3s ease;
    }

    &.position-left {
      left: 0;
      top: 0;
      bottom: 0;
      width: 300px;
      animation: slideRight 0.3s ease;
    }

    &.position-right {
      right: 0;
      top: 0;
      bottom: 0;
      width: 300px;
      animation: slideLeft 0.3s ease;
    }

    .banner-preview-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
    }

    .banner-text {
      flex: 1;

      h4 {
        margin: 0 0 0.5rem 0;
        font-size: 1.3rem;
      }

      p {
        margin: 0;
        line-height: 1.5;
      }

      .preview-link {
        color: inherit;
        text-decoration: underline;
        font-weight: 500;
        margin-top: 0.5rem;
        display: inline-block;
      }
    }

    .close-preview {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: inherit;
      margin-left: 1rem;

      &:hover {
        background: rgba(255, 255, 255, 0.3);
      }
    }
  }
}

// Announcement Form Styles
.announcement-form {
  .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;

    .template-card {
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;

      &:hover {
        border-color: #7f149a;
        transform: translateY(-2px);
      }

      &.selected {
        border-color: #7f149a;
        background-color: #f5e3fd;
      }

      .template-preview {
        width: 80px;
        height: 80px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.5rem auto;

        mat-icon {
          font-size: 2rem;
          width: 2rem;
          height: 2rem;
        }
      }

      .template-name {
        font-weight: 500;
        font-size: 0.9rem;
        color: #333;
      }
    }
  }

  .announcement-preview {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;

    .announcement-content {
      h3 {
        margin: 0 0 1rem 0;
        font-size: 1.5rem;
      }

      p {
        margin: 0 0 1.5rem 0;
        line-height: 1.6;
        font-size: 1.1rem;
      }

      .announcement-image {
        margin: 1rem 0;

        img {
          max-width: 100%;
          border-radius: 8px;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
      }

      .announcement-meta {
        display: flex;
        gap: 1rem;
        align-items: center;

        .priority-badge {
          padding: 0.25rem 0.75rem;
          border-radius: 20px;
          font-size: 0.8rem;
          font-weight: 500;
          text-transform: uppercase;

          &.low {
            background: #e8f5e8;
            color: #2e7d32;
          }

          &.medium {
            background: #fff3e0;
            color: #ef6c00;
          }

          &.high {
            background: #ffebee;
            color: #c62828;
          }

          &.critical {
            background: #fce4ec;
            color: #ad1457;
          }
        }

        .template-badge {
          padding: 0.25rem 0.75rem;
          background: rgba(0, 0, 0, 0.1);
          border-radius: 20px;
          font-size: 0.8rem;
        }
      }
    }
  }
}

// Additional button styles
.btn-info {
  background: #0c884e;
  color: white;

  &:hover {
    background: #13b961;
  }
}

.tour-management-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f8f9fa;
}

.management-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  flex-shrink: 0;

  h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
  }

  p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
  }
}

.three-column-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.column {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  width: 600px;
}

// Column 1: Side Menu
.side-menu {
  width: 280px;
  background: white;
  border-right: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.column.side-menu {
  width: 250px;
  transition: width 0.3s ease;
}

.column.side-menu.collapsed {
  width: 70px;
  /* collapsed width */
}

/* HEADER */
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-header h3 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

/* NAVIGATION */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 60px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-nav li:hover {
  background-color: #f5f5f5;
}

.sidebar-nav li.active {
  background-color: #f7e3fd;
  border-left-color: #8d18aa;
  color: #7f149a;
}

.sidebar-nav li mat-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

/******** COLLAPSED MODE FIX ********/
.side-menu.collapsed .sidebar-nav li {
  padding: 0.9rem;
  /* remove extra left spacing */
  justify-content: center;
  /* center the icon */
}

.side-menu.collapsed .sidebar-nav li mat-icon {
  margin-right: 0;
  /* remove icon-text spacing */
}

// Column 2: Tools Section
.tools-section {
  width: 400px;
  height: 644px;
  background: white;
  border-right: 1px solid #e0e0e0;
  // flex-shrink: 0; 
  flex: 1;

  &.hidden {
    width: 0;
    opacity: 0;
    transform: translateX(-100%);
  }
}

.tools-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h2 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
  }

  .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

.tools-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.tool-form {
  .form-section {
    margin-bottom: 2rem;

    h3 {
      margin: 0 0 1rem 0;
      color: #333;
      font-weight: 600;
      font-size: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #e0e0e0;
    }
  }

  .form-group {
    margin-bottom: 1rem;

    label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: #555;
      font-size: 0.9rem;
    }

    .form-control {
      width: 100%;
      padding: 0.5rem 0.75rem;
      border: 1px solid #dddddd;
      border-radius: 4px;
      font-size: 0.9rem;

      &:focus {
        outline: none;
        border-color: #f321f3;
      }
    }

    .color-picker {
      width: 100%;
      height: 40px;
      border: 1px solid #ddd;
      border-radius: 4px;
      cursor: pointer;
    }
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;

    input[type="checkbox"] {
      width: 16px;
      height: 16px;
    }
  }
}

// Template Scroll for Announcements
.template-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.template-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    border-color: #7f149a;
    background: #f8f9fa;
  }

  &.selected {
    border-color: #7f149a;
    background: #e3f2fd;
  }

  .template-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    mat-icon {
      font-size: 1.25rem;
      width: 1.25rem;
      height: 1.25rem;
    }
  }

  .template-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
  }
}

.tools-footer {
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

// Column 3: Preview Screen
.preview-screen {
  background: #f8f9fa;
}

.preview-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
  }
}

.preview-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

// Preview Styles
.preview-placeholder {
  text-align: center;
  color: #666;
  padding: 3rem 2rem;

  mat-icon {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
  }

  h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
  }
}

.preview-device {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.device-frame {
  background: #333;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
}

.device-screen {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  min-height: 500px;
}

.screen-content {
  padding: 1.5rem;

  h4 {
    margin: 0 0 1rem 0;
    color: #333;
  }
}

// Banner Preview in Context
.context-banner {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 4px;
  position: absolute;

  &.position-top {
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    border-radius: 0;
  }

  &.position-bottom {
    bottom: 0;
    margin: 2rem -1.5rem -1.5rem -1.5rem;
    border-radius: 0;
  }

  .banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;

    .banner-link {
      color: inherit;
      text-decoration: underline;
      font-weight: 500;
      margin-left: auto;
    }
  }
}

// Announcement Preview
.announcement-preview-card {
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;

  .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;

    h5 {
      margin: 0;
      flex: 1;
      font-size: 1.1rem;
    }

    .priority-badge {
      padding: 0.25rem 0.5rem;
      border-radius: 12px;
      font-size: 0.7rem;
      font-weight: 500;
      text-transform: uppercase;

      &.low {
        background: rgba(46, 125, 50, 0.1);
        color: #2e7d32;
      }

      &.medium {
        background: rgba(239, 108, 0, 0.1);
        color: #ef6c00;
      }

      &.high {
        background: rgba(198, 40, 40, 0.1);
        color: #c62828;
      }

      &.critical {
        background: rgba(173, 20, 87, 0.1);
        color: #ad1457;
      }
    }
  }

  p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
  }

  .announcement-image {
    margin: 1rem 0;

    img {
      max-width: 100%;
      border-radius: 6px;
    }
  }

  .announcement-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;

    small {
      opacity: 0.7;
    }
  }
}

.desktop-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.browser-frame {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.browser-header {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.browser-controls {
  display: flex;
  gap: 0.5rem;

  .control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;

    &.red {
      background: #ff5f57;
    }

    &.yellow {
      background: #ffbd2e;
    }

    &.green {
      background: #28ca42;
    }
  }
}

.browser-url {
  flex: 1;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #666;
  border: 1px solid #e0e0e0;
}

.browser-menu {
  color: #666;
  cursor: pointer;
}

.browser-content {
  flex: 1;
  overflow: auto;
  background: white;
}

// App Layout for Desktop Preview
.app-layout {
  display: flex;
  height: 100%;
}

.app-sidebar {
  width: 250px;
  background: #2c3e50;
  color: white;
  padding: 1rem 0;

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    &.active {
      background: #7f149a;
    }

    mat-icon {
      font-size: 1.25rem;
      width: 1.25rem;
      height: 1.25rem;
    }

    span {
      font-weight: 500;
    }
  }
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;

  h2 {
    margin: 0;
    color: #333;
    font-weight: 600;
  }
}

.app-content {
  flex: 1;
  padding: 2rem;
  background: #f8f9fa;
  overflow-y: auto;
  position: relative;
  display: flex;
  justify-content: center;
}

// Desktop Banner Styles
.desktop-banner {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  &.position-top {
    top: 0;
    border-radius: 0;
    position: absolute;
    width: 100%;
  }

  &.position-bottom {
    bottom: 0;
    border-radius: 0;
    position: absolute;
    width: 100%;
  }

  &.position-left,
  &.position-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 300px;
    z-index: 100;

    &.position-left {
      left: 0;
    }

    &.position-right {
      right: 0;
    }
  }

  .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;

    .banner-text {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex: 1;

      strong {
        font-size: 1rem;
      }

      span {
        font-size: 0.9rem;
        opacity: 0.9;
      }
    }

    .banner-link {
      color: inherit;
      text-decoration: underline;
      font-weight: 500;
      margin: 0 1rem;
    }

    .banner-close {
      opacity: 0.7;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: inherit;
      margin-left: 1rem;

      &:hover {
        opacity: 1;
      }

      mat-icon {
        font-size: 1.25rem;
      }
    }
  }
}

// Dashboard Content for Context
.dashboard-content {
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;

    .stat-card {
      background: white;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

      h3 {
        margin: 0 0 0.5rem 0;
        color: #666;
        font-size: 0.9rem;
        font-weight: 500;
      }

      .stat-number {
        margin: 0;
        font-size: 2rem;
        font-weight: 700;
        color: #333;
      }
    }
  }

  .content-area {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    h4 {
      margin: 0 0 1rem 0;
      color: #333;
    }
  }
}

// Announcements Grid
.announcements-grid {
  gap: 2rem;
  justify-content: center;
  width: 100%;
  display: flex;
  position: absolute;
}

.announcement-card {
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 450px;

  .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;

    h3 {
      margin: 0;
      flex: 1;
      font-size: 1.25rem;
    }

    .priority-badge {
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 500;
      text-transform: uppercase;

      &.low {
        background: rgba(46, 125, 50, 0.2);
      }

      &.medium {
        background: rgba(239, 108, 0, 0.2);
      }

      &.high {
        background: rgba(198, 40, 40, 0.2);
      }

      &.critical {
        background: rgba(173, 20, 87, 0.2);
      }
    }
  }

  .announcement-message {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-size: 1rem;
    padding-left: 10px;
  }

  .announcement-image {
    margin: 1rem 0;

    img {
      max-width: 100%;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
  }

  .announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);

    .announcement-meta {
      display: flex;
      gap: 1rem;
      align-items: center;

      .template-tag {
        background: rgba(0, 0, 0, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.8rem;
      }

      .date {
        font-size: 0.8rem;
        opacity: 0.7;
      }
    }

    .btn-outline {
      background: transparent;
      border: 1px solid currentColor;
      color: inherit;

      &:hover {
        background: rgba(0, 0, 0, 0.1);
      }
    }
  }
}

// Preview Controls
.preview-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;

    &:hover {
      background: #f5f5f5;
    }
  }
}

// Banner Test Overlay
.banner-test-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;

  .banner-test-content {
    position: absolute;
    width: 100%;
    padding: 1rem 2rem;

    &.position-top {
      top: 0;
      animation: slideDown 0.3s ease;
    }

    &.position-bottom {
      bottom: 0;
      animation: slideUp 0.3s ease;
    }

    &.position-left {
      left: 0;
      top: 0;
      bottom: 0;
      width: 300px;
      animation: slideRight 0.3s ease;
    }

    &.position-right {
      right: 0;
      top: 0;
      bottom: 0;
      width: 300px;
      animation: slideLeft 0.3s ease;
    }

    .banner-test-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
    }

    .banner-text {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 1rem;
      font-size: 0.9rem;

      .test-link {
        color: inherit;
        text-decoration: underline;
        font-weight: 500;
        margin-left: auto;
      }
    }

    .close-test {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: inherit;
      margin-left: 1rem;

      &:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      mat-icon {
        font-size: 1.25rem;
      }
    }
  }
}

// Animations
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

// Responsive Design
@media (max-width: 1200px) {
  .tools-section {
    width: 350px;
    height: 644px;
  }

  .side-menu {
    width: 250px;
  }

  .browser-frame {
    max-width: 1000px;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .three-column-layout {
    flex-direction: column;
  }

  .side-menu,
  .tools-section {
    width: 100%;
    height: 644px;
  }

  .preview-screen {
    height: 400px;
  }

  .three-column-layout {
    flex-direction: column;
  }

  .tools-section {
    width: 100%;
    height: 644px;

    &.hidden {
      width: 100%;
      opacity: 1;
      transform: none;
      display: none;
    }
  }

  .preview-screen.full-width {
    margin-left: 0;
  }
}
// Shared multi-step editor (UI Tour + generic-form natures) and lightweight content
// preview card (Micro Lesson / Checklist / generic natures) — added when field-applicability
// was made config-driven instead of per-nature copy-pasted blocks.
.step-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafafa;

  .step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;

    .step-card-actions {
      display: flex;
      gap: 4px;
    }
  }
}

.preview-card {
  padding: 24px;
  text-align: left;

  mat-icon {
    font-size: 32px;
    height: 32px;
    width: 32px;
    color: #623A9C;
  }

  h4 {
    margin: 8px 0;
  }

  ul {
    padding-left: 20px;
  }
}
