* { box-sizing: border-box; }

body {
    background: #0f0c29;
    background: linear-gradient(135deg, #24243e, #302b63, #0f0c29);
    color: white;
    font-family: 'Poppins', sans-serif;
    display: flex; justify-content: center; align-items: center;
    height: 100vh; margin: 0;
}

.box {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    width: 450px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

h1 { font-weight: 600; margin-top: 0; font-size: 1.8rem; color: #fff; }

.input-group { margin-bottom: 20px; text-align: left; }

label { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; display: block; opacity: 0.8; }

textarea, select {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
    color: white; font-size: 0.95rem; outline: none;
}

.file-upload-wrapper { margin-top: 10px; font-size: 0.8rem; }

.btn-container { display: flex; gap: 12px; margin-top: 20px; }

button {
    flex: 1; padding: 14px; border-radius: 12px; border: none;
    font-weight: 600; cursor: pointer; transition: 0.3s;
}

.record-btn { background: #eb3349; color: white; }
.generate-btn { background: linear-gradient(45deg, #8e2de2, #4a00e0); color: white; }

button:hover { transform: translateY(-3px); opacity: 0.9; }

#result-section { 
    margin-top: 30px; display: none; /* Hidden until generated */
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; 
}

audio { width: 100%; filter: invert(1); margin-bottom: 15px; }

.download-btn { background: #27ae60; color: white; width: 100%; }