@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.blob {
    animation: fadeIn 1.5s ease-out;
}

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

h1 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #818cf8, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    resize: none;
    min-height: 120px;
    transition: all 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
}

.file-upload-label:hover {
    border-color: var(--primary);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

input[type="file"] {
    display: none;
}

/* Audio Recorder */
.audio-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-icon.record.recording {
    background: #ef4444;
    animation: pulse 1.5s infinite;
}

.btn-icon.record:hover:not(.recording) {
    background: var(--primary);
}

.btn-icon.stop {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.audio-preview {
    width: 100%;
    margin-top: 1rem;
    display: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-loading {
    background: #4b5563;
    cursor: wait;
}

/* Background Blobs */
.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: #4f46e5;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: #ec4899;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

#status-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    height: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
        max-width: 100%;
    }

    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
    }

    textarea {
        min-height: 100px;
    }

    /* Better touch targets */
    input,
    textarea,
    button,
    .file-upload-label {
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
    }
}