body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

h1 {
    font-weight: 700;
    font-size: 3rem;
    margin: 0;
    color: #fff;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
}

.letter {
    display: inline-block;
}

main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    box-sizing: border-box;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.input-wrapper {
    position: relative;
}

.feedback-section, .output-section {
    display: none; /* Initially hidden */
    margin-top: 4rem;
    text-align: center;
}

h2 {
    font-weight: 400;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #eee;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

textarea {
    width: 100%;
    height: 50px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    padding: 1rem;
    padding-right: 50px; /* Space for the button */
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    resize: none;
    box-sizing: border-box;
    max-height: 150px; /* Set a max-height for the textarea */
    overflow-y: auto; /* Allow scrolling when content exceeds max-height */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

textarea::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

textarea:focus {
    outline: none;
    border-color: #764ba2;
}

#analyze-btn {
    position: absolute;
    right: 8px;
    top: 7px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    padding: 0;
    margin: 0;
}

#analyze-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
}

#download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    position: static; /* Override the absolute positioning */
}

#download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
}

#phenotypes-graph {
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #764ba2;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.15);
        box-shadow: 0 0 25px rgba(118, 75, 162, 0.6), 0 0 50px rgba(118, 75, 162, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(118, 75, 162, 0.9), 0 0 100px rgba(118, 75, 162, 0.6);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 25px rgba(118, 75, 162, 0.6), 0 0 50px rgba(118, 75, 162, 0.4);
    }
}

#results-container {
    padding-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
th {
    font-weight: 700;
    color: #ccc;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
} 