/* style.css - Premium Glassmorphism Edition */
:root {
    --bg-color: #0b0e14;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --accent-glow: #38bdf8;
    --success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    animation: fadeIn 0.8s ease-out;
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, #fff, var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

header p, .instructions p {
    color: var(--text-secondary);
    line-height: 1.0;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

header a {
    color: var(--accent-glow);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

header a:hover {
    border-bottom: 1px solid var(--accent-glow);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 50px 0;
}

/* --- Dropzone: Neon Focus --- */
.dropzone {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    padding: 100px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.dropzone.hover {
    border-color: var(--accent-glow);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
    transform: scale(1.01);
}

.dz-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.dropzone-tip {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Browse Section --- */
.file-selector-container {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}

.browse-text { margin-bottom: 15px; font-weight: 500; color: var(--text-secondary); }

/* --- Textarea: Code Editor Style --- */
.cuesheet textarea {
    width: 100%;
    height: 480px;
    background: #05070a;
    color: #a5f3bc; /* Soft Neon Green */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.4);
}

.cuesheet textarea:focus {
    border-color: var(--accent-glow);
}

/* --- Button: Premium Gradient --- */
.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.dlbutton {
    width: 100%;
    max-width: 420px;
    height: 75px;
    background: var(--success-gradient);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px -10px rgba(34, 197, 94, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dlbutton:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.6);
}

.dlbutton:active:not(:disabled) {
    transform: translateY(0);
}

.dlbutton:disabled {
    background: #1e293b;
    color: #475569;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Handling */
@media (max-width: 1100px) {
    header h1 {
        white-space: normal;
        font-size: 2rem;
        line-height: 1.3;
    }
}