/* ==========================================================================
   DealerScanning - Modern, High-Performance Scanning Portal CSS
   ========================================================================== */

:root {
    --bg-app: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-elevated: #334155;
    --bg-sidebar: #0b1120;
    --border-color: #334155;
    --border-subtle: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #38bdf8;
    --accent-blue-hover: #0ea5e9;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --sidebar-width: 320px;
    --top-bar-height: 56px;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* App Main Container */
.dealer-app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   Left Side Menu Layout - Always Visible
   ========================================================================== */
.dealer-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 30;
    user-select: none;
}

.sidebar-header {
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 110px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.brand-text h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    color: #fff;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.sidebar-action-area {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.btn-open-file {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.btn-open-file:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

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

.file-limit-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Recent Uploads Section (Latest 10) */
.sidebar-recent-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 0 8px 0;
}

.sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-wid-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.recent-wid-list::-webkit-scrollbar {
    width: 5px;
}

.recent-wid-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.recent-wid-item {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-wid-item:hover {
    background-color: rgba(51, 65, 85, 0.8);
    border-color: var(--accent-blue);
    transform: translateX(2px);
}

.recent-wid-code {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-wid-code.copied::after {
    content: 'Copied!';
    font-size: 0.7rem;
    color: var(--accent-emerald);
    font-weight: bold;
}

.recent-wid-time {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.sidebar-empty-state {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Sidebar Footer & History Button */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(11, 17, 32, 0.95);
}

.btn-history-trigger {
    width: 100%;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-history-trigger:hover {
    background-color: var(--bg-surface-elevated);
    border-color: var(--text-secondary);
}

.history-badge {
    background-color: var(--accent-indigo);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* ==========================================================================
   Main Right-Side Area
   ========================================================================== */
.dealer-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-app);
}

/* Top Status Bar (Only appears if necessary) */
.top-status-bar {
    /*position: absolute;*/
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.top-send-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wid-status-pill {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-send-paa {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}

.btn-send-paa:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

/* Latest Error Notification in Top Bar */
.top-error-banner {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--accent-rose);
    border-radius: 6px;
    padding: 8px 14px;
    color: #fecdd3;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-error-banner i {
    color: var(--accent-rose);
    font-size: 1.1rem;
}

/* Empty Dropzone State */
.empty-dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--border-color);
    margin: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(30, 41, 59, 0.3);
}

.empty-dropzone:hover, .empty-dropzone.drag-active {
    border-color: var(--accent-blue);
    background-color: rgba(56, 189, 248, 0.05);
}

.dropzone-icon {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-dropzone h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-dropzone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* PDF Viewer Workspace (Thumbnails on Left + Main Canvas) */
.pdf-workspace {
    flex: 1;
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Thumbnails Column (Left of Right-Side) */
.pdf-thumbnails-panel {
    width: 170px;
    min-width: 170px;
    background-color: rgba(15, 23, 42, 0.8);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thumbnails-header {
    padding: 12px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.thumbnails-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnails-scrollable::-webkit-scrollbar {
    width: 4px;
}

.thumbnails-scrollable::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.pdf-thumbnail-card {
    background-color: var(--bg-surface);
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pdf-thumbnail-card:hover {
    border-color: var(--accent-blue-hover);
    transform: scale(1.02);
}

.pdf-thumbnail-card.active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.pdf-thumbnail-canvas {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pdf-thumbnail-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pdf-thumbnail-card.active .pdf-thumbnail-label {
    color: var(--accent-blue);
}

/* Main Canvas Panel (Right of Thumbnails) */
.pdf-canvas-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #0b0f19;
}

/* Toolbar above canvas */
.viewer-toolbar {
    height: 48px;
    min-height: 48px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    background-color: var(--bg-app);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.toolbar-btn:hover:not(:disabled) {
    background-color: var(--bg-surface-elevated);
    border-color: var(--text-secondary);
}

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator-text, .zoom-indicator-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 4px;
}

/* Canvas Scrollable Viewport */
.pdf-canvas-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}

.pdf-canvas-viewport::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pdf-canvas-viewport::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

#pdfMainCanvas {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    transition: width 0.1s ease, height 0.1s ease;
}

/* ==========================================================================
   Modals
   ========================================================================== */

/* Freeze body scroll when modal is active */
body.modal-open-freeze {
    overflow: hidden;
}

/* 1. Validation Modal (Unclosable, Screen Center) */
.validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.validation-modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: popIn 0.25s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.validation-gif-container {    
    margin: 0 auto 20px auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-gif-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.validation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.validation-status-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 24px;
}

.validation-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--bg-app);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.validation-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-blue));
    border-radius: 2px;
    animation: indeterminate 1.5s infinite linear;
}

@keyframes indeterminate {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* 2. Automatic Send Modal (Left-Center Screen) */
.auto-send-modal-wrapper {
    position: fixed;
    top: 50%;
    left: calc(var(--sidebar-width) + 32px);
    transform: translateY(-50%);
    z-index: 999;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from { transform: translate(-30px, -50%); opacity: 0; }
    to { transform: translate(0, -50%); opacity: 1; }
}

.auto-send-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 28px 32px;
    width: 450px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.auto-send-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.auto-send-badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.auto-send-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.auto-send-wid-display {
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin: 14px 0;
    text-align: center;
}

.wid-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.wid-number {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.04em;
}

.auto-send-question {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.auto-send-actions {
    display: flex;
    gap: 12px;
}

.btn-auto-yes {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}

.btn-auto-yes:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-auto-no {
    flex: 1;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-auto-no:hover {
    background: #475569;
}

/* 3. History Modal (Last 100 Uploads) */
.history-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.history-modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 620px;
    max-width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: popIn 0.2s ease-out;
}

.history-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.history-modal-body {
    padding: 16px 24px;
    flex: 1;
    overflow-y: auto;
}

.history-search-bar {
    margin-bottom: 16px;
    position: relative;
}

.history-search-input {
    width: 100%;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px 10px 38px;
    color: #fff;
    font-size: 0.88rem;
}

.history-search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.history-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.history-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    vertical-align: middle;
}

.history-table tr:hover td {
    background-color: rgba(51, 65, 85, 0.3);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.copy-btn.copied {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
}

.btn-close-modal:hover {
    color: #fff;
    background-color: var(--bg-surface-elevated);
}

/* ==========================================================================
   Toast Notifications (Floating & Non-blocking)
   ========================================================================== */

.dealer-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 48px);
}

.dealer-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    pointer-events: auto;
    overflow: hidden;
    user-select: none;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.2s ease;
}

.dealer-toast:hover {
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.dealer-toast.toast-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Toast Variants */
.dealer-toast-success {
    border-left: 4px solid var(--accent-emerald);
    border-top: 1px solid rgba(16, 185, 129, 0.25);
    border-right: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.dealer-toast-success .toast-icon {
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.dealer-toast-error {
    border-left: 4px solid var(--accent-rose);
    border-top: 1px solid rgba(244, 63, 94, 0.25);
    border-right: 1px solid rgba(244, 63, 94, 0.15);
    border-bottom: 1px solid rgba(244, 63, 94, 0.15);
}

.dealer-toast-error .toast-icon {
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.15);
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.3);
}

.dealer-toast-info {
    border-left: 4px solid var(--accent-blue);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    border-right: 1px solid rgba(56, 189, 248, 0.15);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.dealer-toast-info .toast-icon {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

/* Toast Elements */
.toast-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.toast-wid-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-emerald);
    cursor: pointer;
    transition: all 0.15s ease;
}

.toast-wid-pill:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--accent-emerald);
}

.toast-wid-pill .wid-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.toast-wid-pill .wid-copy-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 2px;
}

.toast-wid-pill.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-emerald);
}

.toast-close-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.toast-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Progress Bar */
.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--accent-emerald);
    opacity: 0.8;
    transform-origin: left;
    animation: toastProgress linear forwards;
}

.dealer-toast:hover .toast-progress-bar {
    animation-play-state: paused;
}

.dealer-toast-error .toast-progress-bar {
    background: var(--accent-rose);
}

.dealer-toast-info .toast-progress-bar {
    background: var(--accent-blue);
}

/* Animations */
@keyframes toastSlideIn {
    0% {
        transform: translateX(110%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Utility Helpers */
.d-none {
    display: none !important;
}
