body {
    background: #020202;
    color: white;
    text-align: center;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}
.logo {
    font-weight: bold;
    font-size: 24px;
    padding: 20px;
    color: #00ffcc;
}
.controls {
    margin: 20px auto;
    max-width: 800px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: #111;
    padding: 15px 25px;
    border-radius: 12px;
    flex-wrap: wrap;
}
.controls input {
    padding: 10px;
    margin: 5px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    outline: none;
    width: 160px;
}

.controls input:focus {
    border-color: #00ffcc;
}

.controls button {
    padding: 10px 18px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    background: #00ffcc;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.controls button:hover {
    background: #00ccaa;
    transform: translateY(-2px);
}

.array {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 350px;
    margin-top: 40px;
    gap: 4px; 
    overflow: hidden; 
}

.bar {
    background: #00ffcc;
    transition: height 0.3s ease, background 0.2s ease;
    border-radius: 4px 4px 0 0;
}
.button-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#pauseBtn {
    background: #ffcc00;
    color: black;
}

button[onclick="stopSort()"] {
    background: #ff4d4d;
    color: white;
}
nav{
    background-color: #0a0a0a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}
.links a{
    margin: 0 15px;
    text-decoration: none;
    color: #ccc;
    font-size: 16px;
    transition: 0.3s;
}
.links a:hover{
    color: #00ffcc;
}
.info-section {
    max-width: 800px;
    margin: 40px auto;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.tab-nav {
    display: flex;
    background: #1a1a1a;
    border-bottom: 2px solid #333;
}

.tab-link {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.tab-link:hover {
    color: #00ffcc;
}

.tab-link.active {
    color: #00ffcc;
    border-bottom: 3px solid #00ffcc;
}

.tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.4s ease;
}

.active-content {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

pre {
    background: #000;
    padding: 15px;
    border-radius: 8px;
    color: #00ffcc;
    overflow-x: auto;
}

.code-selector button {
    background: #333;
    color: white;
    border: none;
    padding: 5px 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin: 10px 0;
}

.resource-list a {
    color: #00ffcc;
    text-decoration: none;
}

.resource-list a:hover {
    text-decoration: underline;
}
.bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: linear-gradient(180deg, #00ffcc, #00997a);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

.bar-label {
    position: absolute;
    bottom: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 5px;
    border-radius: 4px;
    pointer-events: none;
    transition: 0.2s;
}
.bar.small .bar-label {
    display: none;
}
