/* ===== PDF Unwatermark — Dark Design System ===== */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: rgba(255, 191, 0, 0.4); border-radius: 3px; }

/* Amber glow utility */
.amber-glow { box-shadow: 0 0 20px rgba(255, 191, 0, 0.1); }

/* Terminal scroll effect */
.terminal-scroll {
    background: linear-gradient(180deg, rgba(255, 191, 0, 0.03) 0%, transparent 100%);
}

/* Language switch */
.lang-switch {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.05); padding: 3px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
}
.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; padding: 4px 12px;
    border-radius: 999px; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.5); text-decoration: none;
    background: transparent; transition: all 0.2s;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-btn.active {
    background: #FFBF00; color: #131313;
    box-shadow: 0 2px 8px rgba(255, 191, 0, 0.4);
}

/* File info hidden by default */
.file-info { display: none; }
.file-info.active { display: flex; animation: slideIn 0.3s ease-out; }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropzone drag state */
.dropzone.dragover {
    border-color: #FFBF00 !important;
    background: rgba(255, 191, 0, 0.05) !important;
    box-shadow: 0 0 20px rgba(255, 191, 0, 0.1);
}
.dropzone.has-file {
    border-color: #FFBF00 !important;
    border-style: solid !important;
}

/* Spinner */
.spinner {
    width: 56px; height: 56px;
    border: 3px solid rgba(255, 191, 0, 0.15);
    border-radius: 50%;
    border-top-color: #FFBF00;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 24px rgba(255, 191, 0, 0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading overlay */
.loading-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: none; flex-direction: column;
    justify-content: center; align-items: center;
    background: rgba(19, 19, 19, 0.92);
    backdrop-filter: blur(12px);
}

/* FAQ details/summary */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Toast notification */
.toast-container {
    position: fixed; top: 80px; right: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px; font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    backdrop-filter: blur(12px);
}
.toast-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}
.toast-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}
.toast .toast-icon {
    font-size: 22px; flex-shrink: 0;
}
.toast-error .toast-icon { color: #f87171; }
.toast-success .toast-icon { color: #4ade80; }
.toast.hiding {
    animation: toast-out 0.3s ease-in forwards;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(30px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(30px) scale(0.95); }
}

/* Indeterminate progress bar (simple tools have no per-page progress) */
.progress-indeterminate {
    animation: indeterminate 1.4s ease-in-out infinite;
}
@keyframes indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* Tool cards on the hub */
.tool-card:hover {
    border-color: rgba(255, 191, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 191, 0, 0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }