* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.input-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.input-wrapper:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

#sequence-input, #accession-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    min-width: 350px;
    outline: none;
    transition: all 0.3s ease;
}

#sequence-input {
    text-transform: uppercase;
}

#sequence-input::placeholder, #accession-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: normal;
    text-transform: none;
}

#sequence-input:focus, #accession-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #5050FF;
    box-shadow: 0 0 20px rgba(80, 80, 255, 0.3);
}

#generate-btn, #read-btn {
    background: linear-gradient(135deg, #AE00FE 0%, #5050FF 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(174, 0, 254, 0.3);
    min-width: 140px;
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(174, 0, 254, 0.5);
}

#generate-btn:active {
    transform: translateY(0);
}

#error-message {
    color: #ff4444;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
}

.legend {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .input-wrapper {
        flex-direction: column;
        padding: 16px;
    }

    #sequence-input {
        min-width: 280px;
    }

    .legend {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 16px;
    }
}
