/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #000000, #ffffff);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem 2rem;
  border-bottom: 2px solid white;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, white, black);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation controls */
nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

nav select,
nav button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

nav select:hover,
nav button:hover {
  background: white;
  color: black;
}

/* Main Visualizer */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#visualizer-container {
  width: 90%;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px dashed white;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Array bars for sorting visualization */
.bar {
  width: 20px;
  margin: 0 2px;
  background-color: white;
  transition: height 0.3s, background-color 0.3s;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 0.9rem;
}
