

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

.animate-fadeIn { animation: fadeIn 0.4s ease-out; }
.animate-slideUp { animation: slideUp 0.5s ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }


.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(30, 30, 60, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 150, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}


::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}


.format-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.format-option:hover {
    transform: translateX(4px);
}

.format-option input[type="radio"] {
    accent-color: #8b5cf6;
}

.format-option.selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}


.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: slideUp 0.4s ease-out;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-success { background: rgba(16, 185, 129, 0.9); color: white; }
.toast-error { background: rgba(239, 68, 68, 0.9); color: white; }
.toast-info { background: rgba(139, 92, 246, 0.9); color: white; }
.toast-warning { background: rgba(245, 158, 11, 0.9); color: white; }

.toast-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.toast-message { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }

.toast-close {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.25rem;
    border-radius: 0.375rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

.toast-close:hover { opacity: 1; }

.toast.removing {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}


.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}


.glow-accent { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
.glow-success { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.glow-error { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }


@media (max-width: 640px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .toast {
        max-width: 100%;
    }
}