.security-dashboard {
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 5px;
  color: #fff;


  .dashboard-header {
    background: linear-gradient(135deg, #008080, #115353);
    box-shadow: 2px 4px 10px 1px rgba(201, 201, 201, 0.47);
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;

    p.NEW_TAG {
      position: absolute;
      left: 335px;
      top: 26px;
      color: white;
      background: #3182ce;
      border-radius: 6px;
      font-size: 11px;
      padding: 4px 8px;
      box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
    }

    p.BETA_TAG {
      position: absolute;
      left: 385px;
      top: 26px;
      color: white;
      background: #ed8936;
      border-radius: 6px;
      font-size: 11px;
      padding: 4px 8px;
      box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
    }

    @media (max-width: 900px) {
      p.NEW_TAG {
        left: 336px;
        top: 72px;
      }

      p.BETA_TAG {
        left: 382px;
        top: 72px;
      }
    }

  }

  .dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
  }

  .tabs {
    display: flex;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    gap: 10px;
  }

  .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    background: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 5px;

    &:hover {
      color: #ffffff;
    }
  }

  .tab.active {
    color: #2563eb;
  }

  .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
  }

  .scanner-content {
    padding: 24px;
  }

  .scanner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .scan-control-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
  }

  .scan-status-card {
    text-align: center;
  }

  .progress-circle-container {
    margin: 24px auto;
  }

  .progress-ring-circle-bg {
    stroke: #e5e7eb;
  }

  .progress-ring-circle {
    stroke: #008080;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease;
  }

  .progress-text {
    fill: #1f2937;
    font-size: 24px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
  }

  .progress-subtext {
    fill: #6b7280;
    font-size: 14px;
    text-anchor: middle;
  }

  .scan-info {
    margin: 24px 0;
  }

  .scan-info h3 {
    margin: 0 0 16px;
    color: #1f2937;
  }

  .scan-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
  }

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

  .stat-label {
    color: #6b7280;
    font-size: 14px;
  }

  .stat-value {
    color: #1f2937;
    font-weight: 500;
    font-size: 16px;
  }

  .scan-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .scan-button:hover {
    background: #1d4ed8;
  }

  .scan-button:disabled {
    background: #93c5fd;
    cursor: not-allowed;
  }

  .scan-results-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
  }

  .panel-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
  }

  .panel-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #1f2937;
  }

  .history-list {
    padding: 16px;
    height: 315px;
    overflow-y: auto; // Using auto instead of scroll for better behavior

    // For Webkit browsers (Chrome, Safari, newer Edge)
    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 3px;
    }

    &::-webkit-scrollbar-thumb {
      background: #008080;
      border-radius: 3px;

      &:hover {
        background: darken(#008080, 10%);
      }
    }

    // For Firefox
    scrollbar-width: thin;
    scrollbar-color: #008080 #f1f1f1;
  }

  .history-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .history-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .status-icon {
    flex-shrink: 0;
  }

  .status-icon.critical {
    color: #ef4444;
  }

  .status-icon.warning {
    color: #f59e0b;
  }

  .status-icon.secure {
    color: #10b981;
  }

  .status-icon.vulnerable {
    background: #ffeaea;
    color: #ff0202;
  }

  .scan-date {
    color: #6b7280;
    font-size: 14px;
  }

  .scan-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
  }

  .status-critical {
    color: #ef4444;
    background: #fee2e2;
  }

  .status-warning {
    color: #f59e0b;
    background: #fef3c7;
  }

  .status-secure {
    color: #10b981;
    background: #d1fae5;
  }

  .status-vulnerable {
    background: #ffeaea;
    color: #ff0202;
  }

  .view-details {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #2563eb;
    font-size: 14px;
    cursor: pointer;
  }

  .view-details:hover {
    color: #1d4ed8;
  }

  .history-item-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }

  .issues-count {
    color: #6b7280;
    font-size: 14px;
  }

  /* Add this to your plugin's CSS file */
  .download-log {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #10b981;
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #098159;
    transition: all 0.2sease;
  }

  .download-log:hover {
    background-color: #d1fae5;
    color: #000;
  }

  .download-log svg {
    margin-right: 4px;
  }

  /* Make sure buttons in the header align properly */
  .history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }



  /* For mobile responsiveness */
  @media (max-width: 768px) {
    .download-log {
      margin-top: 5px;
      margin-left: 0;
    }
  }


  @media (max-width: 768px) {
    .scanner-grid {
      grid-template-columns: 1fr;
    }

    .tabs {
      padding: 0 16px;
    }

    .tab {
      padding: 12px 16px;
    }

    .scanner-content {
      padding: 16px;
    }
  }


  //---------Scan result-------------
  .scan-results-section {
    margin-top: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;

    h2 {
      padding: 20px 24px;
      margin: 0;
      border-bottom: 1px solid #e5e7eb;
      font-size: 20px;
      color: #1f2937;
    }

    /* Close button styles */
    .close-results-btn {
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 5px;
      border-radius: 4px;
      color: #666;
      transition: all 0.2s ease;
      position: absolute;
      top: 17px;
      right: 15px;
      background-color: #efefef;
      color: #333;
    }

    .close-results-btn:hover {
      background-color: #d1fae5;
      color: #10b981;
    }


    .results-container {
      padding: 24px;
    }

    .scan-error {
      background: #fee2e2;
      border-radius: 8px;
      padding: 16px;

      h3 {
        color: #dc2626;
        margin: 0 0 8px;
      }

      p {
        color: #7f1d1d;
        margin: 0;
      }
    }

    .scan-results {
      .results-header {
        margin-bottom: 24px;

        .result-meta {
          display: flex;
          gap: 24px;
          align-items: center;

          .scan-date {
            color: #4b5563;
            font-size: 14px;
          }

          .scan-status {
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 14px;
            font-weight: 500;

            &.status-critical {
              background: #fee2e2;
              color: #dc2626;
            }

            &.status-vulnerable {
              background: #ffeaea;
              color: #ff0202;
            }

            &.status-warning {
              background: #fef3c7;
              color: #d97706;
            }

            &.status-secure {
              background: #dcfce7;
              color: #16a34a;
            }
          }
        }

        .scan-issue-summary {
          display: flex;
          gap: 24px;
          align-items: center;
          color: #4b5563;
          font-size: 14px;
          margin-top: 15px;
        }

        // scan start 
        .scan-results {
          $colors: (
            error: #dc3545,
            warning: #ffc107,
            info: #0dcaf0,
            text: #4b5563,
            border: #e5e7eb,
            background: #ffffff
          );

        $breakpoints: (
          sm: 576px,
          md: 768px,
          lg: 992px
        );

      display: flex;
      flex-direction: column;
      gap: 1rem;
      color: map-get($colors, text);
      font-size: 0.875rem;
      padding: 1.25rem;
      background: map-get($colors, background);
      border-radius: 0.5rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);

      @media (max-width: map-get($breakpoints, sm)) {
        padding: 1rem;
        font-size: 0.813rem;
      }

      .scan-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 0.375rem;
        background: rgba(255, 255, 255, 0.5);
        transition: all 0.2s ease-in-out;

        &:hover {
          background: rgba(249, 250, 251, 0.9);
          transform: translateY(-1px);
        }

        &:has(.scan-plugin-name) {
          margin-top: 1.5rem;
          border-top: 1px solid map-get($colors, border);
          padding-top: 1.5rem;
        }

        @media (max-width: map-get($breakpoints, sm)) {
          flex-direction: column;
          padding: 0.75rem;
        }
      }

      .scan-label {
        color: darken(map-get($colors, text), 15%);
        min-width: 120px;
        font-weight: 500;

        @media (max-width: map-get($breakpoints, sm)) {
          min-width: auto;
          margin-bottom: 0.25rem;
        }
      }

      .scan-nested {
        margin-left: 1.5rem;
        border-left: 2px solid rgba(map-get($colors, border), 0.5);
        padding-left: 1rem;

        @media (max-width: map-get($breakpoints, sm)) {
          margin-left: 1rem;
          padding-left: 0.75rem;
        }
      }

      .scan-list {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .scan-list-item {
        margin: 0.75rem 0;
        padding: 0.5rem;
        border-radius: 0.25rem;
        transition: background 0.2s ease;

        &:hover {
          background: rgba(249, 250, 251, 0.5);
        }
      }

      .scan-type {
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-weight: 600;
        font-size: 0.813rem;
        display: inline-flex;
        align-items: center;

        &--error {
          background: rgba(map-get($colors, error), 0.1);
          color: map-get($colors, error);
        }

        &--warning {
          background: rgba(map-get($colors, warning), 0.1);
          color: darken(map-get($colors, warning), 35%);
        }

        &--info {
          background: rgba(map-get($colors, info), 0.1);
          color: darken(map-get($colors, info), 25%);
        }
      }

      .scan-plugin-name {
        font-size: 1.125rem;
        font-weight: 600;
        color: darken(map-get($colors, text), 20%);
        display: flex;
        align-items: center;
        gap: 0.5rem;

        @media (max-width: map-get($breakpoints, sm)) {
          font-size: 1rem;
        }
      }

      .scan-version {
        background: #f3f4f6;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.75rem;
        color: darken(map-get($colors, text), 10%);
        font-weight: 500;
      }

      .scan-description {
        color: map-get($colors, text);
        margin: 0.5rem 0;
        line-height: 1.5;
      }

      .scan-recommendation {
        color: lighten(map-get($colors, text), 10%);
        font-style: italic;
        padding: 0.5rem;
        background: rgba(map-get($colors, info), 0.05);
        border-radius: 0.25rem;
        margin-top: 0.5rem;
      }

      .scan-value {
        color: map-get($colors, text);
        word-break: break-word;
      }

    }


    // END 

  }

  .results-details {
    display: grid;
    gap: 24px;

    .result-section {
      background: #f8fafc;
      border-radius: 8px;
      padding: 16px;

      h4 {
        margin: 0 0 16px;
        color: #374151;
        font-size: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e5e7eb;
      }

      .result-content {
        display: grid;
        gap: 12px;

        .result-item {
          display: flex;
          gap: 8px;
          font-size: 14px;

          .item-key {
            color: #4b5563;
            font-weight: 500;
            min-width: 140px;
          }

          .item-value {
            color: #1f2937;
            word-break: break-all;
          }
        }
      }
    }
  }
}
}

@media (max-width: 768px) {
  .scan-results-section {
    .scan-results {
      .results-header {
        .result-meta {
          flex-direction: column;
          align-items: flex-start;
          gap: 12px;
        }
      }

      .results-details {
        .result-section {
          .result-content {
            .result-item {
              flex-direction: column;
              gap: 4px;

              .item-key {
                min-width: auto;
              }
            }
          }
        }
      }
    }
  }
}

//----------Exclude part----------

.settings-content {
  padding: 24px;
  background: #fff;

  .exclusion-settings {
    margin: 0 auto;

    h2 {
      color: #1f2937;
      font-size: 24px;
      margin-bottom: 24px;
      padding-bottom: 12px;
      border-bottom: 2px solid #e5e7eb;
    }

    .exclusion-section {
      background: #f8fafc;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

      h3 {
        color: #374151;
        font-size: 20px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 8px;

        &::before {
          content: '';
          width: 4px;
          height: 24px;
          background: #2563eb;
          border-radius: 2px;
          margin-right: 8px;
        }


      }

      h4 {
        color: #4b5563;
        font-size: 16px;
        margin: 16px 0;
        padding-left: 8px;
        border-left: 3px solid #2563eb;
      }

      div {
        margin-bottom: 5px;

        label {
          display: block;
          color: #374151;
          font-weight: 500;
          margin-bottom: 8px;
          font-size: 14px;
        }

        textarea {
          width: 100%;
          min-height: 120px;
          padding: 12px;
          border: 1px solid #e5e7eb;
          border-radius: 8px;
          font-family: monospace;
          font-size: 14px;
          line-height: 1.5;
          resize: vertical;
          transition: all 0.2s ease;

          &:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
          }
        }
      }

      // Checkbox group styling
      .checkbox-group {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(196px, 0fr));
        gap: 2px;
        margin-top: 5px;

        .checkbox-item {
          display: flex;
          align-items: center;
          padding: 8px 12px;
          transition: all 0.2s ease;
          overflow: hidden;

          &:hover {
            background: #f9fafb;
            border-color: #2563eb;
          }

          input[type="checkbox"] {
            margin-right: 8px;
            width: 16px;
            height: 16px;
            border: 2px solid #d1d5db;
            border-radius: 4px;
            cursor: pointer;

            &:checked::before {
              margin: -4px 0px 0px -5px;
            }
          }

          label {
            margin: 0;
            cursor: pointer;
            font-size: 14px;
            color: #374151;
          }
        }
      }
    }

    .button-primary {
      background: #2563eb;
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 24px;

      &:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
      }

      &:active {
        transform: translateY(1px);
      }
    }
  }
}

@media (max-width: 768px) {
  .settings-content {
    padding: 16px;

    .exclusion-settings {
      .exclusion-section {
        padding: 16px;

        .checkbox-group {
          grid-template-columns: 1fr;
        }
      }
    }
  }
}
}