/* Button Components */
.tool-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.tool-button:hover:not(:disabled) {
    background: var(--primary-darker);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tool-button:disabled {
    background: var(--surface-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.upload-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.upload-btn:hover {
    background: var(--primary-darker);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.upload-btn:active {
    transform: translateY(0);
}

.download-btn {
    background: var(--success-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
    background: #2FB87A;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

.delete-btn {
    background: var(--error-color);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-btn:hover {
    background: #CC2936;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--error-alpha-30);
}

.primary-action-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.primary-action-button:hover:not(:disabled) {
    background: var(--primary-darker);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.primary-action-button:disabled {
    background: var(--surface-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

/* Form Components */
input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.upload-area.drag-hover .upload-label,
.upload-label.drag-hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.upload-label:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.upload-label i {
    font-size: 1.5rem;
}

.upload-label small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.select-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--surface-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.select-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--surface-secondary);
    box-shadow: var(--box-shadow-primary-light);
}

.select-input:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

/* Progress Components - NO HOVER EFFECTS (not interactive) */
.progress-container {
    margin-top: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-text {
    font-weight: 500;
    color: var(--text-primary);
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    height: 8px;
    background: var(--surface-secondary);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Status Components - NO HOVER EFFECTS (not interactive) */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-color);
}

.status-badge.ready {
    background: var(--success-color);
    color: var(--primary-contrast-text);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Feature Tags - NO HOVER EFFECTS (not interactive) */
.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--surface-secondary);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Range Input Components */
.range-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.range-input {
    flex: 1;
    height: 6px;
    background: var(--surface-secondary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.range-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    background: var(--surface-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* Choice Button Components */
.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
}

.choice-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.choice-btn.active {
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.choice-btn i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.choice-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.choice-btn small {
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.3;
}

/* Choice Grid */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Input Components */
.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.number-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--surface-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.number-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--surface-secondary);
    box-shadow: var(--box-shadow-primary-light);
}

.number-input:hover:not(:focus) {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.number-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* File Drop Area */
.file-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    background: var(--surface-primary);
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.file-drop-area:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.file-drop-area i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Preview Section - NO HOVER EFFECTS (not interactive) */
.preview-section {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* Segment - NO HOVER EFFECTS (not interactive) */
.segment {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0.5rem 0;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* File Item - NO HOVER EFFECTS (not interactive) */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

/* Control Group - NO HOVER EFFECTS (not interactive) */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

/* Toast Components - NO HOVER EFFECTS (not interactive) */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty State - NO HOVER EFFECTS (not interactive) */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Server Error Overlay */
.server-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.server-error-overlay.show {
    opacity: 1;
    visibility: visible;
}

.server-error-content {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-xl);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.server-error-overlay.show .server-error-content {
    transform: scale(1);
}

.server-error-icon {
    font-size: 4rem;
    color: var(--error-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.server-error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.server-error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.retry-button {
    background: var(--primary-color);
    color: var(--primary-contrast-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.retry-button:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.retry-button:disabled {
    background: var(--surface-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.dismiss-button {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.dismiss-button:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

/* Theme Picker Styles */
.theme-picker-container {
    position: relative;
    z-index: 1000;
}

.theme-picker-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-md);
}

.theme-picker-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.theme-picker-toggle i {
    transition: transform 0.3s ease;
}

.theme-picker-toggle:hover i {
    transform: rotate(90deg);
}

.theme-picker-panel {
    position: absolute;
    top: 60px;
    right: 0;
    min-width: 280px;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.theme-picker-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-picker-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.theme-picker-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-picker-header i {
    color: var(--primary-color);
}

.theme-options {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

#themeOptionsContainer, #themeOptionsContainerWrapper {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.theme-option:hover {
    background: var(--surface-hover);
}

.theme-option.active {
    background: var(--primary-color);
    color: var(--primary-contrast-text);
}

.theme-preview {
    display: flex;
    gap: 2px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.theme-color {
    width: 16px;
    height: 16px;
}

.theme-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: inherit;
}

/* Navigation Loader */
.navigation-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.navigation-loader.show {
    display: flex;
    opacity: 1;
}

.loader-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-picker-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .theme-picker-panel {
        min-width: 260px;
        right: -10px;
    }
    
    .loader-spinner {
        font-size: 2.5rem;
    }
} 