

/* Scrollbar styling */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { @apply bg-dark-bg; }
::-webkit-scrollbar-thumb { @apply bg-zinc-700 rounded-full; }
::-webkit-scrollbar-thumb:hover { @apply bg-zinc-500; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #3f3f46;
    border-top-color: var(--color-brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notifications */
#toastContainer { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-width: 360px;
    min-width: 240px;
    animation: toastIn 0.35s cubic-bezier(.21,1.02,.73,1) forwards;
}
.toast.hide { animation: toastOut 0.3s ease forwards; }
.toast-error   { background: rgba(180,20,20,0.85); }
.toast-success { background: rgba(20,160,80,0.85); }
.toast-info    { background: rgba(30,30,30,0.92); }
.toast-icon { font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.toast-msg  { font-size: 0.875rem; font-weight: 600; color: #fff; line-height: 1.4; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(10px) scale(0.95); } }

/* Download Modal */
#downloadModal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
#downloadModal.open { display: flex; animation: fadeIn .25s ease; }
#downloadModalBox { animation: slideUp .3s cubic-bezier(.21,1.02,.73,1); }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.quality-card { cursor: pointer; transition: all .2s; }
.quality-card:hover  { transform: translateY(-2px); }
.quality-card.active { border-color: var(--color-brand-primary) !important; background: rgba(229,9,20,0.12) !important; }

/* Pulse ring animation for download icon */
@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 1.4s cubic-bezier(0.215,0.61,0.355,1) infinite; }
@keyframes wave { 0%,100%{height:6px} 50%{height:22px} }
.wave-bar { display: inline-block; width: 4px; border-radius: 99px; background: var(--color-brand-primary); animation: wave 1s ease-in-out infinite; }
