:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.5;
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: #6366f1;
    top: 10%;
    left: 10%;
}

.blob-2 {
    background: #ec4899;
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
}

.blob-3 {
    background: #3b82f6;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

header h1 span {
    color: var(--primary);
}

header p {
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group,
.select-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.select-group {
    flex: 1;
    margin-bottom: 0;
}

select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-family: inherit;
    cursor: pointer;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.result-area {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.result-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

audio {
    width: 100%;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Loader */
.loader {
    margin-top: 20px;
}

.controls.customization {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.slider-group {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.slider-group input[type="range"] {
    width: 100%;
    margin-top: 10px;
    accent-color: var(--primary);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

footer {
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}