/* vusicfx-shared.css - Shared styles for all VusicFX visualizers */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

.ui-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-area {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 255, 255, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.upload-subtitle {
    font-size: 14px;
    color: #cccccc;
}

.control-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-panel h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 16px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filename {
    font-size: 14px;
    color: #cccccc;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-1px);
}

.play-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.play-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.color-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.control-label, .color-label {
    font-size: 14px;
    color: #cccccc;
}

.color-input {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-left: 15px;
}

.slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-value {
    font-size: 12px;
    color: #00ffff;
    min-width: 35px;
    text-align: right;
}

.option-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.radio-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.radio-label {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #cccccc;
    font-size: 12px;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 35px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000000;
    border-color: #00ffff;
}

.radio-option:hover .radio-label {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.radio-option input[type="radio"]:checked:hover + .radio-label {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000000;
    border-color: #00ffff;
}

.export-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff006f, #ff4081);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 111, 0.3);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none !important;
}

#minimize-ui {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

#minimize-ui:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.ui-overlay.ui-minimized {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    padding: 10px;
    min-width: auto;
}

.ui-overlay.ui-minimized .controls {
    display: none;
}

.ui-overlay.ui-minimized .title {
    display: none;
}

.ui-overlay.ui-minimized .header {
    margin-bottom: 0;
}

.export-card {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.export-title {
    font-size: 18px;
    font-weight: 600;
    color: #00ffff;
    margin: 0;
}

.export-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.export-cancel-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

.export-status {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00ffff, #ff006f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    min-width: 350px;
    text-align: center;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00ffff;
}

.modal-text {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.btn-danger {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: #ffffff;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}