* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000;
    color: white;
    min-height: 100vh;
    overflow: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

/* UI Overlay */
.ui-overlay {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    letter-spacing: 0.3em;
}

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

/* Controls */
.controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.playback-btns {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
}

.btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.record-btn {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0044;
}

.record-btn:hover:not(:disabled) {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0044;
}

.record-btn.recording {
    background: rgba(255, 0, 0, 0.3);
    animation: pulse-red 1s ease-in-out infinite;
}

.download-btn {
    background: rgba(0, 200, 100, 0.1);
    border-color: #00c864;
}

.download-btn:hover:not(:disabled) {
    background: rgba(0, 200, 100, 0.2);
    border-color: #00ff80;
    transform: translateY(-2px);
}

/* Modal de progression */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-content {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(131, 56, 236, 0.5);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(131, 56, 236, 0.3);
    min-width: 400px;
}

.progress-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #8338ec, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8338ec, #ff006e, #06ffa5);
    background-size: 200% 100%;
    animation: gradient-shift 2s ease infinite;
    transition: width 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.8);
}

.progress-text {
    font-size: 2rem;
    font-weight: 700;
    color: #06ffa5;
    margin-bottom: 10px;
}

.progress-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 68, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 68, 1); }
}

/* File Upload */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.upload-btn {
    padding: 20px 60px;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.3), rgba(255, 0, 110, 0.3));
    border: 3px solid #8338ec;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(131, 56, 236, 0.6);
}

.upload-btn:hover {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.5), rgba(255, 0, 110, 0.5));
    box-shadow: 0 10px 60px rgba(255, 0, 110, 0.8);
    transform: translateY(-2px);
}

.filename {
    color: #06ffa5;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider {
    width: 150px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #06ffa5;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #06ffa5;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}

.volume-value {
    color: #06ffa5;
    font-size: 0.8rem;
    min-width: 40px;
    text-align: right;
    font-weight: 700;
}

/* Logo Upload */
.logo-upload {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo-upload h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #06ffa5;
    text-align: center;
}

.logo-input-wrapper {
    position: relative;
}

.logo-input-wrapper input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.logo-btn {
    padding: 12px 24px;
    background: rgba(131, 56, 236, 0.3);
    border: 2px solid #8338ec;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* Mode Selector */
.mode-selector {
    position: fixed;
    top: 250px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 180px;
}

.mode-selector h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #8338ec;
    text-align: center;
    letter-spacing: 0.2em;
}

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-5px);
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.4), rgba(255, 0, 110, 0.4));
    border-color: #8338ec;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.5);
}

/* Shape Style Selector */
.shape-style-selector {
    position: fixed;
    top: 480px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 180px;
}

.shape-style-selector h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #ff006e;
    text-align: center;
    letter-spacing: 0.2em;
}

.style-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.style-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-5px);
}

.style-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.4), rgba(255, 100, 150, 0.4));
    border-color: #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-upload, .mode-selector, .shape-style-selector {
        right: 10px;
        padding: 15px;
    }
    .logo { 
        font-size: 2rem; 
    }
}
