/* =============================================================================
   BAM Buyer Intelligence — Styles
   (Shared :root tokens are in variables.css — load before this file.)
   ============================================================================= */

/* ---- Layout ---- */
.buying-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 20px;
    position: relative;
}

/* ---- Stats Bar ---- */
.buying-stats-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f0f0f0;
    border: 2px solid transparent;
}
.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.stat-item.stat-selected {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}
.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 3px;
    font-weight: 600;
    color: #777;
}
.stat-active { background: var(--color-primary); }
.stat-active .stat-value, .stat-active .stat-label { color: #fff; }
.stat-lots { background: #9c27b0; }
.stat-lots .stat-value, .stat-lots .stat-label { color: #fff; }
.stat-review { background: var(--color-warning); }
.stat-review .stat-value, .stat-review .stat-label { color: #fff; }
.stat-watching { background: #f59e0b; }
.stat-watching .stat-value, .stat-watching .stat-label { color: #fff; }
.stat-passed { background: #8e8e93; }
.stat-passed .stat-value, .stat-passed .stat-label { color: #fff; }
.stat-purchased { background: var(--color-success); }
.stat-purchased .stat-value, .stat-purchased .stat-label { color: #fff; }
.stat-price-drops { background: var(--color-danger); }
.stat-price-drops .stat-value, .stat-price-drops .stat-label { color: #fff; }
.stat-offers { background: #af52de; }
.stat-offers .stat-value, .stat-offers .stat-label { color: #fff; }
.stat-api {
    cursor: default;
    flex: 0.5;
    background: #f0f0f0;
}
.stat-api:hover { transform: none; box-shadow: none; }
.stat-api .stat-value { font-size: 13px; color: #78909c; }
.stat-api .stat-label { color: #aaa; }

/* ---- Action Bar ---- */
.buying-action-bar {
    display: flex;
    margin-bottom: 10px;
}
.buying-action-bar .action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.search-group, .url-import-group {
    display: flex;
    gap: 4px;
    align-items: center;
}
.buying-action-bar .action-buttons-bar {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.buying-input {
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    min-width: 200px;
    font-family: inherit;
}
.buying-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,122,255,0.12);
}
.buying-input::placeholder { color: #aaa; }
.buying-select {
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.btn-scan {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-scan:hover {
    background: #0066d6;
    box-shadow: 0 2px 6px rgba(0,122,255,0.3);
}

/* ---- Filter Pills ---- */
.filter-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.filter-pills .pill {
    padding: 5px 14px;
    border-radius: 16px;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    transition: all 0.15s;
}
.filter-pills .pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f0f7ff;
}
.filter-pills .pill.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

textarea.buying-input {
    min-width: 100%;
    resize: vertical;
}

/* ---- Buttons (matching BAM blue style) ---- */
.btn {
    padding: 7px 14px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
    box-shadow: 0 1px 3px rgba(30, 136, 229, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #d0d0d0;
}
.btn-secondary:hover { background: #e8e8e8; }

.btn-accent {
    background: linear-gradient(135deg, #ab47bc, #8e24aa);
    color: #fff;
}
.btn-accent:hover { background: linear-gradient(135deg, #8e24aa, #7b1fa2); }

.btn-outline {
    background: transparent;
    border: 1px solid #d0d0d0;
    color: #555;
}
.btn-outline:hover { border-color: #999; background: #fafafa; }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Filter Pills ---- */
.filter-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pill {
    padding: 5px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}

.pill:hover { border-color: #2196f3; color: #2196f3; }
.pill.active {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
}

/* ---- Table (matching Active Orders) ---- */
.buying-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.buying-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.buying-table thead th {
    position: sticky;
    top: 0;
    background: #f7f8fa;
    padding: 10px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.buying-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.1s ease;
}

.buying-table tbody tr:hover {
    background: #f5f8ff;
}

.buying-table td {
    padding: 10px 10px;
    vertical-align: middle;
    color: #333;
}

/* Column widths */
.col-image { width: 56px; }
.col-title { min-width: 220px; max-width: 320px; }
.col-model { width: 100px; }
.col-price { width: 85px; }
.col-shipping { 
    width: 55px;
}

.col-shipping:hover {
    background: rgba(0, 122, 255, 0.05);
    border-left: 2px solid var(--color-primary);
}
.col-total { width: 80px; }
.col-condition { width: 85px; }
.col-seller { width: 120px; }
.col-offer { width: 36px; text-align: center; }
.col-price-drop { 
    width: 90px; 
    text-align: center;
}
.col-status { width: 100px; }
.col-actions { width: 115px; }

/* Row highlights */
.row-resurfaced { background: #fff5f5 !important; }
.row-resurfaced:hover { background: #ffebee !important; }
.row-countered { background: #fff8e1 !important; }
.row-countered:hover { background: #fff3c4 !important; }
.row-purchased { background: #f1f8e9 !important; }
.row-sold { opacity: 0.55; }

/* Listing thumbnail */
.listing-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s;
    border: 1px solid #e0e0e0;
}

.listing-thumb:hover { transform: scale(1.08); }

.no-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    color: #bbb;
}

/* Title */
.listing-title-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    display: block;
    line-height: 1.35;
    font-size: 13px;
}

.listing-title-link:hover { color: #1e88e5; text-decoration: underline; }

.listing-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
}

.meta-source, .meta-date, .meta-scanned {
    font-size: 11px;
    color: #aaa;
}

.meta-scanned {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Price */
.current-price { font-weight: 600; color: #333; }

.original-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 11px;
    display: block;
}

.price-drop-badge {
    display: inline-block;
    background: #ffebee;
    color: #e53935;
    padding: 1px 5px;
    border-radius: 3px;
}

.price-drop-notification {
    display: inline-block;
    background: var(--color-warning);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.price-drop-notification:hover {
    background: #ff8000;
}

.col-price-drop:hover {
    background: rgba(255, 149, 0, 0.1);
}

/* Messages Column */
.col-messages {
    min-width: 80px;
    text-align: center;
}

.col-messages:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

.message-notification {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
}

.message-notification:hover {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(33, 150, 243, 0.4);
}

.message-count {
    display: inline-block;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1976D2;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.message-count:hover {
    background: #bbdefb;
}

.free-ship {
    color: #43a047;
    font-size: 11px;
    font-weight: 600;
}

/* Model badge (matching BAM's colored model pills) */
.model-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    font-size: 11px;
    color: #1565c0;
    font-weight: 600;
}

/* Condition */
.condition-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #555;
}

/* Seller */
.seller-name {
    display: block;
    font-size: 12px;
    color: #1e88e5;
    font-weight: 500;
}

.seller-rating {
    font-size: 11px;
    color: #43a047;
}

/* ---- Status Badges (matching BAM's green Ordered pill) ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-active { background: #e3f2fd; color: #1565c0; }
.badge-watching { background: #fff3e0; color: #e65100; }
.badge-passed { background: #f5f5f5; color: #9e9e9e; }
.badge-resurfaced { background: #ffebee; color: #e53935; }
.badge-offer-sent { background: #f3e5f5; color: #8e24aa; }
.badge-accepted { background: #e8f5e9; color: #2e7d32; }
.badge-declined { background: #ffebee; color: #c62828; }
.badge-countered { background: #fff3e0; color: #e65100; }
.badge-purchased { background: #e8f5e9; color: #2e7d32; }
.badge-sold { background: #f5f5f5; color: #9e9e9e; }
.badge-ended { background: #f5f5f5; color: #bbb; }
.badge-offer { background: #f3e5f5; color: #9c27b0; font-size: 10px; }
.badge-bought { background: #c8e6c9; color: #2e7d32; }
.badge-missed { background: #ffcdd2; color: #c62828; }

/* ---- Action Buttons ---- */
.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-action:hover { 
    background: #f5f5f5; 
    border-color: #bbb; 
    transform: scale(1.05);
}

/* Watching button - active state */
.btn-watch {
    border-color: #ddd;
}

.btn-watch:hover { 
    border-color: #2196f3; 
    background: #e3f2fd; 
}

.btn-watch.active {
    background: #2196f3;
    border-color: #2196f3;
    color: white;
}

.btn-watch.active:hover {
    background: #1976d2;
    border-color: #1976d2;
}

/* Message notification - active state (unread messages) */
.btn-message {
    border-color: #ddd;
}

.btn-message.active {
    background: #ff9800;
    border-color: #ff9800;
    color: white;
    animation: pulse 2s infinite;
}

.btn-message.active:hover {
    background: #f57c00;
    border-color: #f57c00;
}

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

/* Purchased button */
.btn-purchased {
    border-color: #ddd;
}

.btn-purchased:hover { 
    border-color: #4caf50; 
    background: #e8f5e9; 
    color: #4caf50;
}

/* Dismiss/Pass button */
.btn-pass {
    border-color: #ddd;
}

.btn-pass:hover { 
    border-color: #f44336; 
    background: #ffebee; 
    color: #f44336;
}

/* Restore button (for passed listings) */
.btn-restore {
    border-color: #ddd;
}

.btn-restore:hover { 
    border-color: #2196f3; 
    background: #e3f2fd; 
    color: #2196f3;
}

/* Delete button (for passed listings) */
.btn-delete {
    border-color: #ddd;
}

.btn-delete:hover { 
    border-color: #f44336; 
    background: #ffebee; 
    color: #f44336;
}

/* ---- Pagination ---- */
.buying-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #666;
    font-size: 13px;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.empty-state p:first-child { font-size: 16px; margin-bottom: 6px; color: #888; }
.empty-hint { font-size: 13px; }

/* ---- Loading ---- */
.buying-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1000;
    color: #333;
    font-size: 14px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    color: #888;
}

.loading-inline .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* ===========================================================================
   MODALS (matching BAM Item Details blue header style)
   =========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border: none;
}

.modal-lg { max-width: 920px; }

/* Blue gradient header (matching Item Details) */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.modal-close:hover { color: #ffffff; }

.modal-body { padding: 20px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    margin-top: 14px;
}

/* ---- Detail Modal Layout ---- */
.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-image {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #e0e0e0;
}

.detail-image.zoomed {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Detail rows (card style like Item Details) */
.detail-info {
    /* Wrap in a subtle card */
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:nth-child(odd) {
    background: #fafbfc;
}

.detail-label {
    color: #777;
    font-size: 13px;
    font-weight: 500;
    min-width: 110px;
}

.detail-value {
    color: #333;
    font-size: 13px;
    text-align: right;
    font-weight: 500;
}

.detail-section-title {
    margin: 18px 0 8px;
    padding: 8px 12px;
    color: #1e88e5;
    font-size: 14px;
    font-weight: 600;
    background: #e3f2fd;
    border-radius: 4px;
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
    padding: 0 4px;
}

.price-history-entry, .offer-entry {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #555;
}

.price-history-entry:nth-child(odd), .offer-entry:nth-child(odd) {
    background: #fafbfc;
}

.drop-pct { color: #e53935; font-weight: 600; }
.history-date { color: #aaa; float: right; }

/* ---- Form Elements (matching BAM's form style) ---- */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-static {
    color: #333;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group { flex: 1; }

/* Offer strategies */
.offer-strategies {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
}

.strategy-label {
    color: #888;
    font-size: 12px;
}

.btn-strategy {
    padding: 4px 10px;
    font-size: 11px;
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.btn-strategy:hover { border-color: #2196f3; color: #1e88e5; background: #e3f2fd; }

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    max-width: 420px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success { background: #43a047; }
.toast-error { background: #e53935; }
.toast-warning { background: #ef6c00; }
.toast-info { background: #1e88e5; }

/* ---- Scrollbar ---- */
.buying-table-wrapper::-webkit-scrollbar { height: 6px; }
.buying-table-wrapper::-webkit-scrollbar-track { background: #f5f5f5; }
.buying-table-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.buying-table-wrapper::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ---- Misc ---- */
.no-images { color: #aaa; font-size: 13px; text-align: center; padding: 20px; }
.error { color: #e53935; text-align: center; padding: 20px; }

/* ---- Table Column Features ---- */
.buying-table th {
    position: relative;
    user-select: none;
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

/* Sortable columns */
.sortable {
    cursor: pointer;
}

.sortable:hover {
    background: #e8e8e8;
}

.sort-icon {
    opacity: 0.3;
    font-size: 10px;
}

.sort-icon::before {
    content: '⇅';
}

.sortable.sort-asc .sort-icon {
    opacity: 1;
}

.sortable.sort-asc .sort-icon::before {
    content: '↑';
}

.sortable.sort-desc .sort-icon {
    opacity: 1;
}

.sortable.sort-desc .sort-icon::before {
    content: '↓';
}

/* Column resizing */
.resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 10;
}

.resize-handle:hover {
    background: var(--color-primary);
}

/* Column dragging */
th[draggable="true"] {
    cursor: move;
}

th.dragging {
    opacity: 0.5;
    background: var(--color-primary);
    color: white;
}

th.drag-over {
    border-left: 3px solid var(--color-primary);
}

/* ---- Template Category Buttons ---- */
.template-category-btn {
    padding: 8px 16px;
    border: 1px solid #d2d2d7;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.template-category-btn:hover {
    background: #f5f5f7;
    border-color: var(--color-primary);
}

.template-category-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ---- Clickable Seller Names ---- */
.seller-name.clickable {
    cursor: pointer;
    color: var(--color-primary);
    text-decoration: underline;
}

.seller-name.clickable:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Scan Log Modal Styles */
#scanLogModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#scanLogModal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

#scanLogModal .modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#scanLogContent::-webkit-scrollbar {
    width: 8px;
}

#scanLogContent::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

#scanLogContent::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

#scanLogContent::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Button variants for modal actions */
.btn-success {
    background: #43a047;
    color: white;
}

.btn-success:hover {
    background: #388e3c;
}

.btn-danger {
    background: #e53935;
    color: white;
}

.btn-danger:hover {
    background: #c62828;
}
