.step-analyzer-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;

  // Loading container - sabit boyut ile layout kaymasını önle
  .loading-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(33, 133, 208, 0.05) 0%, rgba(33, 186, 69, 0.05) 100%);
    border-radius: 8px;
    margin: 20px 0;

    .loading-text {
      margin-top: 30px;

      p {
        margin: 8px 0;

        strong {
          font-size: 1.1em;
          color: #2185d0;
        }
      }
    }
  } 

  // Results segment - min-height ile layout sabitliği
  .results-segment {
    min-height: 400px;
  }

  // Render section
  .render-section {
    background: linear-gradient(135deg, rgba(33, 133, 208, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(33, 133, 208, 0.2);
    margin-bottom: 20px;

    .render-loading-container {
      min-height: 300px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 20px;
      background: rgba(33, 133, 208, 0.05);
      border-radius: 8px;
      margin: 15px 0;

      .loading-text {
        margin-top: 25px;
        font-size: 1.05em;
        color: #2185d0;
      }
    }

    .render-image-container {
      min-height: 300px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(0, 0, 0, 0.02);
      border-radius: 8px;

      img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }
    }
  }

  // Render controls
  .render-controls-section {
    background: rgba(33, 186, 69, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(33, 186, 69, 0.2);

    .ui.form {
      .fields {
        display: flex;
        gap: 15px;

        .field {
          flex: 1;

          label {
            font-weight: 600;
            color: rgba(0, 0, 0, 0.87);
            margin-bottom: 8px;
          }

          input[type="number"] {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid rgba(34, 36, 38, 0.15);
            border-radius: 4px;
            transition: border-color 0.2s;

            &:focus {
              border-color: #2185d0;
              outline: none;
            }
          }
        }
      }

      .field {
        margin-bottom: 15px;

        input[type="range"] {
          width: calc(100% - 50px);
          margin-right: 10px;
          vertical-align: middle;
        }

        .ui.small.text {
          display: inline-block;
          min-width: 40px;
          font-weight: 600;
          color: #2185d0;
        }
      }
    }
  }

  .results-content {
    .ui.cards {
      margin-top: 1.5em;

      .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;

        &:hover {
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
          transform: translateY(-2px);
        }

        .content {
          .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.05em;
            color: #2185d0;

            i.cube.icon {
              margin-right: 8px;
            }
          }

          .meta {
            margin-top: 0.5em;
            color: rgba(0, 0, 0, 0.5);
            font-size: 0.85em;
          }

          .ui.statistics {
            margin: 1.2em 0;
            justify-content: space-around;
            flex-wrap: wrap;

            .statistic {
              margin: 0.5em;
              flex: 1;
              min-width: 70px;

              .value {
                font-size: 1.1rem !important;
                font-weight: 700;
                color: #2185d0;
              }

              .label {
                font-size: 0.65rem;
                line-height: 1.3;
                margin-top: 0.3rem;
                color: rgba(0, 0, 0, 0.6);
              }
            }
          }
        }

        .extra.content {
          background-color: rgba(0, 0, 0, 0.02);

          .accordion {
            .title {
              cursor: pointer;
              padding: 0.8em 0;
              transition: background-color 0.2s;

              &:hover {
                background-color: rgba(0, 0, 0, 0.05);
              }

              i.dropdown.icon {
                margin-right: 8px;
                transition: transform 0.3s;
              }

              strong {
                font-size: 1.05em;
              }
            }

            .content {
              padding: 1.2em 0.5em;

              h5.ui.dividing.header {
                margin-top: 1.5em;
                margin-bottom: 1em;
                color: #1e70bf;

                &:first-child {
                  margin-top: 0.5em;
                }

                i.icon {
                  margin-right: 8px;
                }
              }

              .ui.list {
                .item {
                  padding: 0.6em 0;
                  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

                  &:last-child {
                    border-bottom: none;
                  }

                  i.icon {
                    color: #2185d0;
                  }

                  .content {
                    .header {
                      font-weight: 600;
                      margin-bottom: 0.4em;
                      color: rgba(0, 0, 0, 0.87);
                      font-size: 0.95em;
                    }

                    .description {
                      color: rgba(0, 0, 0, 0.6);
                      font-size: 0.9em;

                      .ui.label {
                        margin-left: 8px;
                        font-weight: 600;
                      }
                    }
                  }
                }
              }

              .ui.message {
                background-color: #f9f9f9;
                border: 1px solid #e0e0e0;

                pre {
                  background-color: transparent;
                  padding: 0;
                  border-radius: 0;
                  margin: 0;
                  font-family: 'Courier New', monospace;
                  color: #333;
                  line-height: 1.4;
                }
              }
            }
          }
        }
      }
    }

    .ui.statistics {
      margin: 1.5em 0;

      // Mini statistics (genel)
      &.mini {
        display: flex;
        justify-content: space-around;
        margin: 1em 0;

        .statistic {
          flex: 1;
          text-align: center;
          padding: 0.8em 0.5em;

          .value {
            font-size: 1.3rem !important;
            font-weight: 700;
            color: #2185d0;
          }

          .label {
            font-size: 0.7rem !important;
            line-height: 1.2;
            margin-top: 0.4rem;
            color: rgba(0, 0, 0, 0.7);
            font-weight: 600;
          }
        }
      }

      // Four mini statistics (parça kartlarındaki 4'lü istatistikler)
      &.four.mini {
        .statistic {
          min-width: 60px;
        }
      }

      // Two mini statistics (özet istatistikler)
      &.two.mini {
        justify-content: center;
        gap: 2em;

        .statistic {
          flex: 0 1 auto;
          padding: 1em 1.5em;
          background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
          border-radius: 8px;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
          transition: all 0.3s ease;

          &:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          }

          &.blue {
            background: linear-gradient(135deg, #2185d0 0%, #1678c2 100%);
            color: white;

            .value, .label {
              color: white !important;
            }
          }

          &.red {
            background: linear-gradient(135deg, #db2828 0%, #ca1010 100%);
            color: white;

            .value, .label {
              color: white !important;
            }
          }

          .value {
            font-size: 1.6rem !important;
            font-weight: 700;

            i.icon {
              font-size: 1.3rem;
              margin-right: 0.3em;
            }
          }

          .label {
            font-size: 0.75rem;
            margin-top: 0.5rem;
            font-weight: 500;
            opacity: 0.95;
          }
        }
      }

      &.four.statistics {
        display: flex;
        justify-content: space-around;

        .statistic {
          flex: 1;
          padding: 1em;
          background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
          border-radius: 8px;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
          transition: all 0.3s ease;

          &:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          }

          &.blue {
            background: linear-gradient(135deg, #2185d0 0%, #1678c2 100%);
            color: white;

            .value, .label {
              color: white !important;
            }
          }

          &.green {
            background: linear-gradient(135deg, #21ba45 0%, #16ab39 100%);
            color: white;

            .value, .label {
              color: white !important;
            }
          }

          &.red {
            background: linear-gradient(135deg, #db2828 0%, #ca1010 100%);
            color: white;

            .value, .label {
              color: white !important;
            }
          }

          &.orange {
            background: linear-gradient(135deg, #f2711c 0%, #e8590c 100%);
            color: white;

            .value, .label {
              color: white !important;
            }
          }

          .value {
            font-size: 1.6rem !important;
            font-weight: 700;

            i.icon {
              font-size: 1.3rem;
              margin-right: 0.3em;
            }
          }

          .label {
            font-size: 0.75rem;
            margin-top: 0.5rem;
            font-weight: 500;
            opacity: 0.95;
          }
        }
      }
    }

    .ui.fluid.labels {
      margin: 1.2em 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.6em;

      .label {
        font-size: 1em;
        padding: 0.6em 1em;

        i.icon {
          margin-right: 0.5em;
        }
      }
    }

    .ui.buttons {
      margin: 1.2em 0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      border-radius: 6px;
      overflow: hidden;

      .button {
        flex: 1;
        transition: all 0.2s ease;

        &:hover {
          transform: scale(1.05);
          z-index: 1;
        }

        &.blue {
          background-color: #2185d0 !important;
          color: white !important;
          box-shadow: inset 0 0 0 2px #1678c2;
        }

        &.green {
          background-color: #21ba45 !important;
          color: white !important;
          box-shadow: inset 0 0 0 2px #16ab39;
        }

        &.red {
          background-color: #db2828 !important;
          color: white !important;
          box-shadow: inset 0 0 0 2px #ca1010;
        }

        &.orange {
          background-color: #f2711c !important;
          color: white !important;
          box-shadow: inset 0 0 0 2px #e8590c;
        }
      }
    }

    .ui.header {
      margin-top: 1.5em;

      .sub.header {
        margin-top: 0.5em;
        color: rgba(0, 0, 0, 0.6);
      }
    }
  }
}

@media only screen and (max-width: 991px) {
  .step-analyzer-container {
    padding: 15px;

    .results-content {
      .ui.four.statistics {
        flex-wrap: wrap;

        .statistic {
          flex-basis: calc(50% - 0.5em);
          margin: 0.5em 0.25em;
        }
      }

      .ui.statistics.two.mini {
        flex-direction: column;
        gap: 1em;

        .statistic {
          width: 100%;
        }
      }

      .ui.cards {
        .card {
          .content {
            .ui.statistics.four.mini {
              flex-wrap: wrap;

              .statistic {
                flex-basis: calc(50% - 0.5em);
                margin: 0.3em 0.25em;
              }
            }
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 768px) {
  .step-analyzer-container {
    padding: 10px;

    .results-content {
      .ui.four.statistics {
        flex-direction: column;

        .statistic {
          flex-basis: 100%;
          margin: 0.5em 0;

          .value {
            font-size: 1.8rem !important;
          }

          .label {
            font-size: 0.75rem !important;
          }
        }
      }

      .ui.statistics.two.mini {
        .statistic {
          .value {
            font-size: 1.4rem !important;
          }
        }
      }

      .ui.buttons {
        flex-direction: column;

        .button {
          margin: 0.3em 0 !important;
        }
      }

      .ui.cards {
        .card {
          .content {
            .ui.statistics.four.mini {
              flex-direction: column;

              .statistic {
                flex-basis: 100%;
                margin: 0.4em 0;

                .value {
                  font-size: 1.5rem !important;
                }

                .label {
                  font-size: 0.75rem !important;
                }
              }
            }
          }
        }
      }
    }
  }
}
