/* Using a modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Dark Theme Palette & Base Styles --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #121212; /* Dark background */
    color: #e0e0e0; /* Light text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1em;
    box-sizing: border-box;
}

main {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 2em;
}

#controls, #results {
    flex: 1;
    background: #1e1e1e; /* Slightly lighter dark for cards */
    border-radius: 12px;
    padding: 2em;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* --- Cool Gradient Header --- */
h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 0.5em 0;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


p {
    color: #aaa;
    margin-bottom: 2em;
}

textarea {
    width: 100%;
    height: 150px;
    margin-bottom: 1em;
    padding: 0.8em;
    font-size: 1em;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

/* --- Redesigned Buttons and Inputs --- */
.upload-box label, button {
    display: inline-block;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-box label:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.upload-box input { display: none; }
.upload-box { margin-bottom: 1em; }

#output h2 {
    margin-top: 0;
    border-bottom: 2px solid #4facfe;
    padding-bottom: 0.5em;
    color: #fff;
}

#output ul {
    list-style: none;
    padding: 0;
}

#output li {
    background: #2a2a2a;
    padding: 0.8em;
    border-radius: 4px;
    margin-bottom: 0.5em;
}