* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Segoe UI", sans-serif;
    background-color: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  header {
    background: #1e1e2f;
    padding: 1rem 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  h1 {
    margin-bottom: 1rem;
  }
  
  .controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
  
  .controls label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
  }
  
  input[type="number"], select {
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
  }
  
  
  
  main {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1rem;
  }
  
  .array-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px; /* spacing between bars */
    height: 60vh;
    width: 100%;
    max-width: 1000px;
    padding-bottom: 2rem;
  }
  
  .bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .bar-label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #ffffff;
  }
  
  .bar {
    background-color: #00ffcc;
    width: 15px;
    border-radius: 4px 4px 0 0;
    transition: height 0.2s,    background-color 0.2s;
  }
  

  button {
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 1rem;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #0072ff, #00c6ff);
}

  
  footer {
    background-color: #1e1e2f;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.9rem;
    color: #aaa;
  }
  