/* Brand Colors */
:root {
    --brand-primary: #4F46E5;
    --brand-secondary: #7C3AED;
    --brand-accent: #818CF8;
}

/* Floating Navbar */
.floating-nav {
    transition: all 0.3s ease;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--brand-primary);
    transition: all 0.3s ease;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
}

.drop-zone:hover, .drop-zone.dragover {
    background: linear-gradient(to bottom right, #EEF2FF, #F5F3FF);
    border-color: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-bar {
    transition: width 0.3s ease;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
}

/* Processing Options */
.processing-option {
    transition: all 0.3s ease;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
}

.processing-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Enhanced Button Styles */
button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:not(:disabled)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    transform: translate(-50%, -50%) scale(0);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

button:not(:disabled):hover::after {
    transform: translate(-50%, -50%) scale(1);
}

button:not(:disabled):active {
    transform: scale(0.98);
}

/* Enhanced Slider Styling */
input[type="range"] {
    height: 4px;
    background: linear-gradient(to right, #E5E7EB 0%, #E5E7EB 100%);
    border-radius: 8px;
    appearance: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(to bottom right, var(--brand-primary), var(--brand-secondary));
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced Toast Animations */
.toast-enter {
    animation: slideInWithFade 0.3s ease forwards;
}

.toast-exit {
    animation: slideOutWithFade 0.3s ease forwards;
}

@keyframes slideInWithFade {
    from {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutWithFade {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
}

/* Enhanced Loading States */
.processing-option.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.processing-option.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--brand-primary), transparent);
    animation: loading 1.5s ease infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* File List Styling */
#mergeFileList {
    max-height: 150px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-top: 8px;
}

#mergeFileList::-webkit-scrollbar {
    width: 6px;
}

#mergeFileList::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

#mergeFileList::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

#mergeFileList::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Input Focus States */
input[type="text"]:focus {
    outline: none;
    border-color: #6D28D9;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

/* Rotate Buttons */
.rotate-btn {
    position: relative;
    overflow: hidden;
}

.rotate-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.rotate-btn:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .processing-option {
        padding: 12px;
    }
    
    input[type="range"] {
        margin: 8px 0;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bg-white\/80 {
        background-color: rgba(31, 41, 55, 0.8);
    }
    
    .text-gray-600 {
        color: #D1D5DB;
    }
    
    input[type="range"] {
        background: #374151;
    }
    
    #mergeFileList {
        border-color: #374151;
    }
}

/* File Loaded State */
#fileLoadedState {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#unloadBtn {
    transition: all 0.2s ease;
}

#unloadBtn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

#fileName {
    word-break: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
} 