@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --cyber-black: #080a0b;
    --cyber-green: #7ee787; /* softer, less saturated green for readability */
    --cyber-blue: #8be9ff;
    --cyber-red: #ff6b6b;
    --cyber-yellow: #ffd88a;
    --cyber-dark-blue: #062033;
    --cyber-gray: #111417;
    --cyber-light-gray: #212428;
    --cyber-border: 1px solid rgba(126,231,135,0.18);
    --cyber-glow: 0 0 12px rgba(126,231,135,0.12);
    --text-color: #e6fbe8; /* main readable text color */
    --muted-text: #a9cbb0;
    --card-bg: rgba(255,255,255,0.03);
    --accent: rgba(126,231,135,0.14);
    --font-main: 'Share Tech Mono', monospace;
    --scanner-line: rgba(0, 255, 65, 0.1);
    
    /* New color variables for enhanced palette */
    --cyber-purple: #9d00ff;
    --cyber-pink: #ff00e4;
    --cyber-teal: #00ffd9;
    --neon-orange: #ff6a00;
    --blade-blue: #00234b; 
    --hologram-blue: rgba(0, 195, 255, 0.15);
    
    /* Additional cyberpunk effect variables */
    --glitch-blue: rgba(0, 195, 255, 0.7);
    --terminal-flicker: rgba(0, 255, 65, 0.9);
    --digital-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body {
    font-family: var(--font-main);
    background-color: var(--cyber-black);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    font-size: 14px;
    margin-bottom: 35px;
    overflow-x: hidden;
}
/* Terminal Window Styling */
.window {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    border: var(--cyber-border);
    box-shadow: var(--cyber-glow), 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 0, 0, 0.6);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 5px; /* Slight curve to mimic CRT screen */
    transition: box-shadow 0.5s ease;
    backdrop-filter: blur(5px);
    overflow:visible;
}

/* Add ambient glow to window on hover */
.window:hover {
    box-shadow: 0 0 15px var(--cyber-green), 0 0 30px rgba(0, 0, 0, 0.8);
}

/* Update window background with vertical scrolling effect */
/* Add holographic glitch effect */
@keyframes glitch {
    0% { opacity: 1; transform: translateX(0); }
    27% { opacity: 1; transform: translateX(0); }
    28% { opacity: 0.8; transform: translateX(5px); }
    29% { opacity: 1; transform: translateX(0); }
    72% { opacity: 1; transform: translateX(0); }
    73% { opacity: 0.7; transform: translateX(-3px); }
    74% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

.title-bar {
    background: rgba(3, 10, 22, 0.9);
    color: var(--cyber-green);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Add angular decorative corners to title bar */
.title-bar::before,
.title-bar::after {
    display: none;
}

/* Status indicator that pulses */
.title-bar div:last-child {
    position: relative;
    padding-right: 20px;
}

.title-text {
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: var(--cyber-yellow);
}

.title-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-nav {
    display: flex;
    gap: 8px;
}

.nav-chip {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(126, 231, 135, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-color);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-chip:visited {
    text-decoration: none;
    color: var(--text-color);
}

.nav-chip:focus-visible,
.nav-chip:hover {
    background: rgba(126, 231, 135, 0.1);
    color: var(--cyber-green);
    border-color: rgba(126, 231, 135, 0.55);
    box-shadow: 0 0 10px rgba(126, 231, 135, 0.3);
}

.nav-alerts,
.nav-status {
    border-color: rgba(126, 231, 135, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.system-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 255, 65, 0.7);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 0.78rem;
    letter-spacing: 2px;
    position: relative;
}

.system-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyber-green);
    box-shadow: 0 0 6px var(--cyber-green);
}

.title-bar div:last-child::before {
    display: none;
}

/* Enhance window-body background with vertical movement */
.window-body {
    padding: 15px;
    position: relative;
    background: var(--card-bg);
    background-image: 
        linear-gradient(rgba(0, 35, 75, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 35, 75, 0.3) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0, 35, 75, 0.3) 0%, transparent 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    background-position: center center;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5); /* CRT vignette effect */
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* Make text inside windows more readable */
.window, .window * {
    color: var(--text-color);
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.stat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    clip-path: polygon(
        0 10px, 
        10px 0, 
        calc(100% - 10px) 0, 
        100% 10px, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        10px 100%, 
        0 calc(100% - 10px)
    );
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-green), transparent);
    animation: pulse 2s infinite;
}

/* Title and nav tweaks for contrast */
.title-text {
    color: var(--cyber-yellow);
}

.nav-chip {
    color: var(--muted-text);
    border-color: rgba(255,255,255,0.08);
}

.nav-chip:hover,
.nav-chip:focus-visible {
    border-color: rgba(126,231,135,0.5);
}

/* Add bottom corners to cards */
.stat-card::before {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--cyber-green);
    border-bottom: 2px solid var(--cyber-green);
    opacity: 0.7;
}

.stat-card h3 {
    color: var(--cyber-blue);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.stat-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: var(--cyber-blue);
}

.stat-card p {
    font-size: 24px;
    margin: 0;
    color: var(--cyber-green);
    text-shadow: 0 0 10px var(--cyber-green);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1s steps(10, end);
}

/* Table Styling */
table.dataTable {
    background: rgba(0, 20, 30, 0.7);
    border: var(--cyber-border);
    margin: 20px 0 !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: tableLoad 1s ease-out forwards;
}

table.dataTable thead th,
table.dataTable tbody td {
    padding: 16px 14px;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
}

/* Remove or increase min/max/width restrictions for all columns */
table.dataTable th,
table.dataTable td {
    min-width: 140px !important;
    max-width: none !important;
    width: auto !important;
}

/* Remove column-specific width/min-width/max-width rules */
table.dataTable th:nth-child(1),
table.dataTable td:nth-child(1),
table.dataTable th:nth-child(2),
table.dataTable td:nth-child(2),
table.dataTable th:nth-child(3),
table.dataTable td:nth-child(3),
table.dataTable th:nth-child(4),
table.dataTable td:nth-child(4),
table.dataTable th:nth-child(n+5):nth-child(-n+9),
table.dataTable td:nth-child(n+5):nth-child(-n+9),
table.dataTable th:nth-child(10),
table.dataTable td:nth-child(10),
table.dataTable th:last-child,
table.dataTable td:last-child {
    min-width: 140px !important;
    max-width: none !important;
    width: auto !important;
}

/* For the dealsTable specifically */
#dealsTable th,
#dealsTable td {
    min-width: 140px !important;
    max-width: none !important;
    width: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
}

table.dataTable thead th {
    background: linear-gradient(180deg, var(--cyber-gray) 0%, var(--blade-blue) 100%);
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
    position: relative;
    padding-left: 25px;
    padding-right: 10px;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

/* Futuristic highlighted border glow */
table.dataTable thead::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cyber-green) 50%, 
        transparent 100%);
    animation: borderGlow 4s infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.3; transform: scaleX(0.8); }
    100% { opacity: 1; transform: scaleX(1); }
}

table.dataTable tbody td {
    color: var(--cyber-teal);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 12px 10px;
    background: rgba(0, 10, 15, 0.6);
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

table.dataTable tbody tr:nth-child(even) td {
    background: rgba(0, 15, 25, 0.7);
}

table.dataTable tbody tr:hover td {
    background: rgba(0, 55, 75, 0.35);
    color: var(--cyber-teal);
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.3);
}

/* Glitch animation on table hover */
table.dataTable tbody tr:hover::before {
    display: none;
}

/* Input field styling */
.dataTables_wrapper .dataTables_filter input {
    background: rgba(0, 15, 25, 0.8);
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    padding: 8px 12px;
    margin-left: 10px;
    font-family: var(--font-main);
    border-radius: 0;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    background: rgba(0, 20, 30, 0.9);
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: rgba(0, 255, 65, 0.5);
}

/* Enhanced button styling */
.btn {
    display: inline-block;
    padding: 4px 8px;
    font-size: 10px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    background: rgba(0, 0, 0, 0.6);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    );
}

.btn:hover {
    background: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
}

/* Animated button effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 65, 0.2) 50%, 
        transparent 100%);
    transition: all 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

/* Price and Discount Tags */
.price-tag {
    background: rgba(20, 20, 20, 0.8);
    color: var(--cyber-yellow);
    padding: 4px 10px;
    border: 1px solid var(--cyber-yellow);
    display: inline-block;
    min-width: 80px;
    text-align: right;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 211, 25, 0.5);
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 5px), 
        calc(100% - 5px) 100%, 
        0 100%
    );
}

.discount-tag {
    padding: 4px 10px;
    border: 1px solid;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    font-weight: bold;
    clip-path: polygon(
        5px 0, 
        100% 0, 
        100% 100%, 
        0 100%, 
        0 5px
    );
}

.discount-high { 
    background: rgba(0, 255, 65, 0.2);
    color: var(--cyber-green);
    border-color: var(--cyber-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3) inset;
}

.discount-medium { 
    background: rgba(255, 211, 25, 0.2);
    color: var(--cyber-yellow);
    border-color: var(--cyber-yellow);
    text-shadow: 0 0 8px rgba(255, 211, 25, 0.8);
    box-shadow: 0 0 10px rgba(255, 211, 25, 0.3) inset;
}

.discount-low { 
    background: rgba(255, 0, 60, 0.2);
    color: var(--cyber-red);
    border-color: var(--cyber-red);
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.3) inset;
}

/* Enhanced pagination */
.dataTables_paginate {
    margin-top: 20px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 5px !important;
}

.dataTables_paginate .paginate_button {
    background: rgba(0, 15, 25, 0.8) !important;
    border: 1px solid var(--cyber-green) !important;
    color: var(--cyber-green) !important;
    margin: 0 2px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    min-width: 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    clip-path: polygon(
        20% 0, 
        100% 0, 
        100% 80%, 
        80% 100%, 
        0 100%, 
        0 20%
    ) !important;
}

@keyframes loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* New holographic time filter section */
.time-filter {
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 40, 60, 0.4) 0%, rgba(0, 20, 30, 0.2) 100%);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-left: 3px solid var(--cyber-green);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
/* Style form labels */
.time-filter label {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--cyber-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Override select styling */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(0, 15, 25, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath fill='%2300ff41' d='M0 0h8L4 6z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 8px;
    padding-right: 30px !important;
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    padding: 8px 12px;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

/* Improve readability of DataTables pagination info text */
.dataTables_info {
    color: var(--cyber-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 12px !important;
    margin: 10px 0 !important;
    opacity: 0.9 !important;
    background: rgba(0, 20, 30, 0.6) !important;
    padding: 8px !important;
    border-left: 2px solid var(--cyber-green) !important;
}

/* Enhance pagination controls visibility */
.dataTables_paginate .paginate_button {
    background: rgba(0, 20, 30, 0.8) !important;
    color: var(--cyber-green) !important;
    border-color: var(--cyber-green) !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3) !important;
}

.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .paginate_button.current {
    background: rgba(0, 255, 65, 0.15) !important;
    color: white !important;
    border-color: var(--cyber-green) !important;
    text-shadow: 0 0 10px var(--cyber-green) !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5) !important;
}

/* Improve display length dropdown text */
.dataTables_length {
    color: var(--cyber-blue) !important;
    font-family: 'Orbitron', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 12px !important;
    margin: 10px 0 !important;
}

.dataTables_length select {
    background-color: rgba(0, 20, 30, 0.8) !important;
    border: 1px solid var(--cyber-green) !important;
    color: var(--cyber-green) !important;
    padding: 5px 25px 5px 10px !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
}

/* Improve general label readability throughout the interface */
label {
    color: var(--cyber-blue) !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}

/* Ensure all table text is highly readable */
table.dataTable td {
    color: var(--cyber-teal) !important;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.4) !important;
}

/* FIX: Specifically enhance column headers without breaking sort icons */
table.dataTable thead th {
    color: var(--cyber-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
    font-weight: 600 !important;
    background: linear-gradient(180deg, rgba(0, 30, 45, 0.9) 0%, rgba(0, 43, 54, 0.95) 100%) !important;
    border-bottom: 2px solid var(--cyber-green) !important;
    /* Remove properties that might affect sort icons */
    padding-right: 25px !important; /* Make room for sort icons */
    position: relative !important;
}

/* Style for DataTables sort icons */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--cyber-green) !important;
    opacity: 0.8 !important;
    text-shadow: 0 0 5px var(--cyber-green) !important;
}

/* Enhance visibility of active sort icon */
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    opacity: 1 !important;
    color: white !important;
    text-shadow: 0 0 8px var(--cyber-green) !important;
}

/* Source column specific styling */
table.dataTable td:nth-child(8) {  /* Adjust if column order changes */
    color: var(--cyber-blue) !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6) !important;
    font-weight: 600 !important;
}

/* Make sure DataTables wrapper doesn't hide sort icons */
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
    overflow: visible !important;
}

/* Reset and fix DataTables sort icons */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_desc::after,
table.dataTable thead .sorting_asc_disabled::before,
table.dataTable thead .sorting_asc_disabled::after,
table.dataTable thead .sorting_desc_disabled::before,
table.dataTable thead .sorting_desc_disabled::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Remove any class-based indicators */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Now define our custom icons */
table.dataTable thead .sorting:after {
    /* Unsorted icon style */
    content: "⇕" !important;
    display: block !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    color: rgba(0, 255, 65, 0.5) !important;
    opacity: 0.6 !important;
}

table.dataTable thead .sorting_asc:after {
    /* Ascending sort icon */
    content: "▲" !important; 
    display: block !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 12px !important;
    color: var(--cyber-green) !important;
    opacity: 1 !important;
    text-shadow: 0 0 5px var(--cyber-green) !important;
}

table.dataTable thead .sorting_desc:after {
    /* Descending sort icon */
    content: "▼" !important;
    display: block !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 12px !important;
    color: var(--cyber-green) !important;
    opacity: 1 !important;
    text-shadow: 0 0 5px var(--cyber-green) !important;
}

/* Make sure table headers have proper positioning */
table.dataTable thead th {
    position: relative !important;
    padding-right: 30px !important; /* Space for icons */
    cursor: pointer !important; /* Show pointer cursor */
    color: var(--cyber-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
    font-weight: 600 !important;
    background: linear-gradient(180deg, rgba(0, 30, 45, 0.9) 0%, rgba(0, 43, 54, 0.95) 100%) !important;
    border-bottom: 2px solid var(--cyber-green) !important;
}

/* Make VARIANCE column sort icon more visible when active */
table.dataTable thead th.sorting_asc[aria-sort="ascending"]:after,
table.dataTable thead th.sorting_desc[aria-sort="descending"]:after {
    color: white !important;
    text-shadow: 0 0 8px var(--cyber-green), 0 0 15px var(--cyber-green) !important;
    opacity: 1 !important;
    font-size: 14px !important;
}
/* Fix z-index issues and make sure icons show */
.dataTables_wrapper {
    position: relative !important;
    z-index: 1 !important;
}

.dataTables_wrapper thead {
    position: relative !important;
    z-index: 2 !important;
}

/* Remove any animations that might cause rendering issues */
@keyframes none {
    0% { opacity: 1; }
    100% { opacity: 1; }
}

/* Fix DataTables sort headers - completely remove background images */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    background-image: none !important;
}

/* Ensure the th element background is clean */
table.dataTable thead th {
    background: linear-gradient(180deg, rgba(0, 30, 45, 0.9) 0%, rgba(0, 43, 54, 0.95) 100%) !important;
    background-image: none !important;
}

/* Make sure our custom sort indicators are displayed */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    display: block !important;
}

/* Update table column widths with more responsive values */
table.dataTable {
    width: 100% !important;
    table-layout: auto !important; /* Change to auto for better responsiveness */
}

/* Title column */
table.dataTable th:nth-child(1),
table.dataTable td:nth-child(1) {
    width: 25% !important;
    min-width: 200px !important;
    max-width: none !important; /* Remove max-width constraint */
}

/* Time detected column */
table.dataTable th:nth-child(2),
table.dataTable td:nth-child(2) {
    width: 8% !important;
    min-width: 90px !important;
}

/* Ending In column */
table.dataTable th:nth-child(3),
table.dataTable td:nth-child(3) {
    width: 8% !important;
    min-width: 90px !important;
}

/* Listing Type column */
table.dataTable th:nth-child(4),
table.dataTable td:nth-child(4) {
    width: 8% !important;
    min-width: 90px !important;
}

/* Currency columns (price, shipping, tax, total, market value) */
table.dataTable th:nth-child(n+5):nth-child(-n+9),
table.dataTable td:nth-child(n+5):nth-child(-n+9) {
    width: 7% !important;
    min-width: 70px !important;
    max-width: none !important;
}

/* Variance column */
table.dataTable th:nth-child(10),
table.dataTable td:nth-child(10) {
    width: 8% !important;
    min-width: 70px !important;
    max-width: none !important;
}

/* Actions column */
table.dataTable th:last-child,
table.dataTable td:last-child {
    width: 10% !important;
    min-width: 100px !important;
    max-width: none !important;
}

/* Add responsive adjustments */
@media screen and (max-width: 1200px) {
    table.dataTable th:nth-child(1),
    table.dataTable td:nth-child(1) {
        width: 20% !important;
    }
    
    /* Adjust other columns proportionally */
    table.dataTable th:nth-child(n+5):nth-child(-n+9),
    table.dataTable td:nth-child(n+5):nth-child(-n+9) {
        width: 8% !important;
    }
}

@media screen and (max-width: 768px) {
    /* Force table to scroll horizontally on mobile */
    .dataTables_wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Ensure minimum widths are maintained */
    table.dataTable {
        min-width: 800px !important; /* Minimum width to prevent squishing */
    }
    
    table.dataTable th:nth-child(1),
    table.dataTable td:nth-child(1) {
        width: 200px !important; /* Fixed width on mobile */
    }
}

/* Ensure table cells handle content properly */
table.dataTable td,
table.dataTable th {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 8px !important;
}

/* Title column specific handling */
table.dataTable td:first-child {
    white-space: normal !important; /* Allow wrapping for title */
    line-height: 1.3 !important;
}

/* Add horizontal scroll indicator on mobile */
@media screen and (max-width: 768px) {
    .dataTables_wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(0, 255, 65, 0.1));
        pointer-events: none;
        animation: scrollIndicator 2s infinite;
    }
    
    @keyframes scrollIndicator {
        0%, 100% { opacity: 0.2; }
        50% { opacity: 0.8; }
    }
}

/* Ensure DataTables wrapper handles overflow properly */
.dataTables_wrapper {
    position: relative !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Add smooth transitions for width changes */
table.dataTable th,
table.dataTable td {
    transition: width 0.3s ease !important;
}

/* Complete rework of the action buttons to look better */
.actions-column {
    padding: 12px 10px !important;
    text-align: right !important;
}

.action-btn-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
}

/* Main listing button */
.btn.main-btn {
    font-size: 10px;
    padding: 4px 8px;
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    );
}

/* Price charting button - compact */
.btn.chart-btn {
    padding: 4px 8px;
    font-size: 10px;
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
    background: rgba(0, 20, 30, 0.9);
    min-width: 25px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    clip-path: polygon(
        30% 0,
        100% 0,
        100% 70%,
        70% 100%,
        0 100%,
        0 30%
    );
}

.btn.chart-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    color: var(--cyber-blue);
    transform: translateY(-2px);
}

.btn.chart-btn::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.2) 50%, 
        transparent 100%);
}

/* Make sure the table cells have proper spacing */
table.dataTable th:last-child,
table.dataTable td:last-child {
    min-width: 180px;
    white-space: nowrap;
}

/* Add new dangerous button style */
.btn.danger {
    background: linear-gradient(135deg, var(--cyber-red) 0%, rgba(179, 0, 35, 1) 100%);
    color: white;
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.8);
    box-shadow: 0 0 5px rgba(255, 0, 60, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cyber-red);
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    margin: 0;
}

.btn.danger:hover {
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.7);
    background: linear-gradient(135deg, rgba(179, 0, 35, 1) 0%, var(--cyber-red) 100%);
    transform: translateY(-1px);
}

.btn.danger::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 60, 0.3) 50%, 
        transparent 100%);
}

/* Update table column widths */
table.dataTable thead th:first-child,
table.dataTable tbody td:first-child {
    min-width: 250px; /* Increased from previous value for title column */
    max-width: 400px; /* Limited maximum width */
    width: 30%; /* Make title take proportional space */
}

/* Time/detected column */
table.dataTable th:nth-child(2),
table.dataTable td:nth-child(2) {
    width: 100px; /* Fixed width */
    min-width: 100px;
    white-space: nowrap;
}

/* Currency columns (price, shipping, tax, total, market value) */
table.dataTable th:nth-child(n+3):nth-child(-n+7),
table.dataTable td:nth-child(n+3):nth-child(-n+7) {
    width: 80px; /* Narrower fixed width */
    min-width: 80px;
    max-width: 80px;
    text-align: right;
    white-space: nowrap;
}

/* Variance column */
table.dataTable th:nth-child(8),
table.dataTable td:nth-child(8) {
    width: 85px; /* Slightly narrower */
    min-width: 85px;
    max-width: 85px;
    text-align: center;
    white-space: nowrap;
}

/* Actions column */
table.dataTable th:last-child,
table.dataTable td:last-child {
    width: 100px; /* Narrower fixed width */
    min-width: 100px;
    white-space: nowrap;
}

/* Make action buttons more compact */
.action-btn-group {
    gap: 3px; /* Reduced from 5px */
}

.btn.main-btn {
    font-size: 10px; /* Slightly smaller */
    padding: 4px 8px; /* Reduced padding */
}

.btn.chart-btn {
    padding: 4px 8px; /* Reduced padding */
    font-size: 10px; /* Slightly smaller */
    min-width: 25px; /* Reduced min-width */
}

/* Ensure DataTables uses our widths */
#dealsTable {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Make sure title cells handle overflow properly */
table.dataTable td:first-child {
    white-space: normal; /* Allow wrapping for title */
    line-height: 1.3; /* Tighter line height */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add more pronounced glitch effect */
.window:hover .title-bar div:first-child {
    animation: textGlitch 3s infinite;
    position: relative;
}

@keyframes textGlitch {
    0%, 100% { 
        text-shadow: 0 0 5px var(--cyber-green); 
        transform: translateX(0);
    }
    92% { 
        text-shadow: 0 0 5px var(--cyber-green); 
        transform: translateX(0);
    }
    93% { 
        text-shadow: -2px 0 var(--cyber-red), 2px 0 var(--cyber-blue); 
        transform: translateX(2px);
    }
    94% { 
        text-shadow: 2px 0 var(--cyber-red), -2px 0 var(--cyber-blue); 
        transform: translateX(-2px);
    }
    95% { 
        text-shadow: 0 0 5px var(--cyber-green); 
        transform: translateX(0);
    }
    96% { 
        text-shadow: -2px 0 var(--cyber-red), 2px 0 var(--cyber-blue); 
        transform: translateX(2px);
    }
    97% { 
        text-shadow: 0 0 5px var(--cyber-green); 
        transform: translateX(0);
    }
}

/* Add retro grid background */
.window-body {
    background-image: 
        linear-gradient(rgba(0, 35, 75, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 35, 75, 0.3) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0, 35, 75, 0.3) 0%, transparent 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    background-position: center center;
    position: relative; /* Ensure proper positioning context */
}

/* Add CRT flicker effect */
.window {
    animation: flicker 0.15s infinite alternate;
}

/* Add data stream effect to window edges */
@keyframes powerGlow {
    0% { text-shadow: 0 0 5px var(--cyber-green); }
    100% { text-shadow: 0 0 15px var(--cyber-green), 0 0 20px var(--cyber-green); }
}

/* Console typing effect for stat cards */
.stat-card p {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1s steps(10, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Add retro 80s grid perspective to the table */
table.dataTable {
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: tableLoad 1s ease-out forwards;
}

@keyframes tableLoad {
    0% { transform: rotateX(30deg) translateY(30px); opacity: 0; }
    100% { transform: rotateX(0deg) translateY(0); opacity: 1; }
}

@keyframes matrixSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Scanner button enhancements */
.btn[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(0, 255, 65, 0.1) 10px,
        rgba(0, 255, 65, 0.1) 20px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn[type="submit"].scanning::before {
    opacity: 1;
    animation: buttonScan 2s linear infinite;
}

@keyframes buttonScan {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* Scan in progress text */
.btn[type="submit"].scanning {
    background: rgba(0, 255, 65, 0.2);
    color: white;
    text-shadow: 0 0 10px var(--cyber-green);
}

.btn[type="submit"].scanning::after {
    content: '...';
    position: absolute;
    right: 10px;
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

/* Enhance all buttons with pointer cursor */
button, .btn, select, input[type="checkbox"] + label {
    cursor: pointer !important;
}

/* Improve scan controls section */
.time-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 20, 30, 0.7);
    border: 1px solid var(--cyber-green);
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

#timeFilterForm {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    flex: 1;
}

/* Larger, more prominent buttons */
.btn, button[type="submit"] {
    padding: 10px 18px !important;
    font-size: 14px !important;
    letter-spacing: 1.5px !important;
    min-width: 140px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important;
}

.btn:hover, button[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4) !important;
}

/* Special styling for the scan button */
button[type="submit"] {
    background: rgba(0, 255, 65, 0.15) !important;
    border-color: var(--cyber-green) !important;
    font-weight: bold !important;
}

/* Special styling for the purge cache button */
#clearCacheBtn {
    background: rgba(255, 0, 60, 0.15) !important;
    border-color: var(--cyber-red) !important;
    color: var(--cyber-red) !important;
    margin-left: 15px !important;
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    ) !important;
}

#clearCacheBtn:hover {
    background: rgba(255, 0, 60, 0.25) !important;
    color: white !important;
    text-shadow: 0 0 10px var(--cyber-red) !important;
}

/* Enhance select dropdown */
select {
    background: rgba(0, 20, 30, 0.8) !important;
    border: 1px solid var(--cyber-green) !important;
    color: var(--cyber-green) !important;
    padding: 8px 30px 8px 12px !important;
    font-family: var(--font-main) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ff41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    min-width: 120px !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important;
}

select:focus {
    outline: none !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4) !important;
}

/* Enhance checkbox styling */
input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    background: rgba(0, 20, 30, 0.8) !important;
    border: 1px solid var(--cyber-green) !important;
    position: relative !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}

input[type="checkbox"]:checked::before {
    content: '✓' !important;
    position: absolute !important;
    color: var(--cyber-green) !important;
    font-size: 16px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-shadow: 0 0 5px var(--cyber-green) !important;
}

/* Enhance label styling */
label {
    font-size: 14px !important;
    letter-spacing: 1px !important;
    color: var(--cyber-blue) !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5) !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .time-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    #timeFilterForm {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #clearCacheBtn {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Enhanced Optimal Deal Card Styling with better visual indicators */
.optimal-deal-card {
    position: relative;
    overflow: visible;
    border: 1px solid;
    transition: all 0.3s ease;
}

/* Deal quality indicators - different styles based on discount */
.deal-great {
    background: linear-gradient(135deg, rgba(0, 43, 54, 0.9) 0%, rgba(0, 20, 30, 0.8) 100%);
    border-color: var(--cyber-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.deal-good {
    background: linear-gradient(135deg, rgba(0, 43, 54, 0.9) 0%, rgba(0, 20, 30, 0.8) 100%);
    border-color: var(--cyber-yellow);
    box-shadow: 0 0 20px rgba(255, 211, 25, 0.4);
}

.deal-bad {
    background: linear-gradient(135deg, rgba(43, 10, 10, 0.9) 0%, rgba(30, 10, 10, 0.8) 100%) !important;
    border-color: var(--cyber-red) !important;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.4) !important;
}

/* Deal quality indicator badge */
.deal-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    z-index: 10;
    border: 1px solid;
}

.deal-badge.great {
    background: rgba(0, 20, 30, 0.9);
    border-color: var(--cyber-green);
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

.deal-badge.good {
    background: rgba(0, 20, 30, 0.9);
    border-color: var(--cyber-yellow);
    color: var(--cyber-yellow);
    text-shadow: 0 0 5px var(--cyber-yellow);
}

.deal-badge.bad {
    background: rgba(30, 10, 10, 0.9);
    border-color: var(--cyber-red);
    color: var(--cyber-red);
    text-shadow: 0 0 5px var(--cyber-red);
}

/* Value indicator styling */
.value-indicator {
    text-align: center;
    margin: 5px 0 10px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.value-indicator.great {
    color: var(--cyber-green);
}

.value-indicator.good {
    color: var(--cyber-yellow);
}

.value-indicator.bad {
    color: var(--cyber-red);
}

/* Improved layout for optimal deal content */
.optimal-deal-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.optimal-deal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--cyber-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.optimal-deal-percent {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
    font-family: 'Orbitron', sans-serif;
}

.percent-great {
    color: var(--cyber-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.percent-good {
    color: var(--cyber-yellow);
    text-shadow: 0 0 10px rgba(255, 211, 25, 0.8);
}

.percent-bad {
    color: var(--cyber-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}

.optimal-deal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.optimal-deal-label {
    font-size: 10px;
    color: var(--cyber-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.optimal-deal-value {
    font-size: 14px;
    color: var(--cyber-yellow);
    text-shadow: 0 0 5px rgba(255, 211, 25, 0.5);
    font-weight: bold;
}

.optimal-deal-links {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.optimal-deal-btn {
    flex: 1;
    display: inline-block;
    padding: 6px 10px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.optimal-deal-btn.ebay {
    background: rgba(0, 255, 65, 0.15);
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    );
}

.optimal-deal-btn.price {
    background: rgba(0, 195, 255, 0.15);
    color: var(--cyber-blue);
    border: 1px solid var(--cyber-blue);
    clip-path: polygon(
        0 0, 
        calc(100% - 8px) 0, 
        100% 8px,
        100% 100%, 
        8px 100%,
        0 calc(100% - 8px)
    );
}

.optimal-deal-btn:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 8px currentColor;
}

.optimal-deal-btn.ebay:hover {
    background: rgba(0, 255, 65, 0.25);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.5);
}

.optimal-deal-btn.price:hover {
    background: rgba(0, 195, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 195, 255, 0.5);
}

.optimal-deal-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: all 0.5s ease;
}

.optimal-deal-btn:hover::after {
    left: 100%;
}

/* Fix for DataTable headers */
table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-collapse: collapse !important;
}

/* Remove duplicate headers */
table.dataTable thead:nth-child(n+2) {
    display: none !important;
}

/* Ensure header styling is consistent */
table.dataTable thead th {
    border-bottom: 2px solid var(--cyber-green) !important;
    background: linear-gradient(180deg, rgba(0, 30, 45, 0.9) 0%, rgba(0, 43, 54, 0.95) 100%) !important;
    color: var(--cyber-green) !important;
    padding: 12px 10px !important;
    font-weight: 600 !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
    position: relative !important;
}

/* Fix spacing in table body */
table.dataTable tbody td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
}

/* Fix DataTable sort icons */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    display: none !important;
}

/* Fix table border */
table.dataTable {
    border: var(--cyber-border) !important;
}

/* Center text in optimal deal card */
.text-center {
    text-align: center;
}

/* Apply centering to existing elements */
.optimal-deal-label, 
.optimal-deal-value {
    text-align: center;
}

/* Prevent text selection for app-like feel */
body, .window, .window-body, .title-bar, .stat-card, table, 
th, td, h1, h2, h3, h4, h5, h6, p, .btn, button, label {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

/* Allow text selection in input fields */
input[type="text"], 
input[type="number"], 
input[type="email"], 
input[type="password"], 
textarea, 
select option {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

/* Ensure interactive elements have appropriate cursors */
.btn, button, select, input[type="checkbox"], label, 
a, .dataTables_paginate .paginate_button {
    cursor: pointer;
}

/* Add touch-action for better touch device behavior */
.window-body {
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* Custom highlight color for the rare case when text is selectable */
::selection {
    background: var(--cyber-green);
    color: var(--cyber-black);
    text-shadow: none;
}

/* Update variance column styling if exists */
table.dataTable td:nth-child(10) {  /* Adjust column index for variance */
    text-align: right !important;
    font-weight: bold !important;
}

/* Update any other styling dependent on column indices */
table.dataTable td:nth-child(3), /* Ending In */
table.dataTable th:nth-child(3) {
    text-align: center !important;
}

table.dataTable td:nth-child(4), /* Listing Type */
table.dataTable th:nth-child(4) {
    text-align: center !important;
    font-weight: bold !important;
}

/* Update column styling for th elements if exists elsewhere in the CSS */
table.dataTable thead th:first-child,
table.dataTable tbody td:first-child {
    text-align: left !important;
    border-left: none !important;
}

table.dataTable th:nth-child(2), /* Detected column */
table.dataTable td:nth-child(2) {
    text-align: center !important;
    font-family: 'Share Tech Mono', monospace !important;
}

table.dataTable th:nth-child(n+5):nth-child(-n+9), /* Price columns */
table.dataTable td:nth-child(n+5):nth-child(-n+9) {
    text-align: right !important;
    font-family: 'Share Tech Mono', monospace !important;
}

table.dataTable th:nth-child(10), /* Variance column */
table.dataTable td:nth-child(10) {
    text-align: right !important;
    position: relative !important;
}

.btn.system {
    background: linear-gradient(135deg, var(--cyber-blue) 0%, rgba(0, 110, 130, 1) 100%);
    color: white;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cyber-blue);
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    margin: 0;
}

.btn.system:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(0, 110, 130, 1) 0%, var(--cyber-blue) 100%);
    transform: translateY(-1px);
}

.log-level-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logLevelSelect {
    background-color: var(--cyber-dark-blue);
    color: var(--cyber-teal);
    border: 1px solid var(--cyber-blue);
    padding: 5px;
    border-radius: 3px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(0, 15, 25, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath fill='%2300ff41' d='M0 0h8L4 6z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 8px;
    padding-right: 30px !important;
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    padding: 8px 12px;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

/* Collapsible Filter Section Styling */
.collapsible-filter {
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 5px),
        calc(100% - 5px) 100%,
        0 100%
    );
}

.collapsible-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
}

.filter-header {
    padding: 14px 15px;
    background: linear-gradient(90deg, rgba(0, 30, 45, 0.9), rgba(0, 20, 35, 0.8));
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.filter-header h3 {
    margin: 0;
    color: var(--cyber-green);
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    position: relative;
    padding-left: 18px;
    display: flex;
    align-items: center;
}

.filter-header h3::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyber-green);
    font-size: 14px;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.7);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
}

.collapsible-filter.active .filter-content {
    max-height: 300px; /* Adjust based on content height */
    padding: 15px;
}

/* Improved Form Layout */
#timeFilterForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns by default */
    gap: 15px;
    width: 100%;
}

.filter-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--cyber-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    margin-bottom: 5px;
    display: block;
    position: relative;
}

/* Removed the left line from labels as requested */

.filter-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(0, 15, 25, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath fill='%2300ff41' d='M0 0h8L4 6z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 8px;
    padding-right: 30px !important;
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    padding: 8px 12px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 0;
    clip-path: polygon(
        0 0,
        calc(100% - 5px) 0,
        100% 5px,
        100% 100%,
        5px 100%,
        0 calc(100% - 5px)
    );
}

.filter-group select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    border-color: var(--cyber-green);
}

/* Checkbox styling */
.filter-group div {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

/* Custom checkbox styling */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 20, 30, 0.7);
    border: 1px solid var(--cyber-blue);
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: all 0.2s ease;
    clip-path: polygon(
        0 0,
        calc(100% - 5px) 0,
        100% 5px,
        100% 100%,
        5px 100%,
        0 calc(100% - 5px)
    );
}

input[type="checkbox"]:checked {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--cyber-green);
}

input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: var(--cyber-green);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 100%
    );
    box-shadow: 0 0 8px var(--cyber-green);
}

input[type="checkbox"] + label {
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked + label {
    color: var(--cyber-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Improved layout for action buttons */
.filter-actions {
    grid-column: 1 / -1; /* Make it span all columns */
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.filter-actions button {
    height: 46px;
    min-width: 180px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 200, 50, 0.25));
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.filter-actions button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.25), rgba(0, 200, 50, 0.35));
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
    color: white;
    text-shadow: 0 0 10px var(--cyber-green);
}

.filter-actions button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 65, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.filter-actions button:hover::after {
    left: 100%;
}

/* System Controls Section */


#systemControls .filter-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    margin-top: 10px;
}

#systemControls.active .filter-content {
    display: flex;
    padding: 15px;
}

.log-level-control {
    display: flex;
    gap: 10px;
    align-items: center;
}

#logLevelSelect {
    min-width: 150px;
}

.btn.system {
    background: rgba(0, 200, 255, 0.15);
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    );
}

.btn.system:hover {
    background: rgba(0, 200, 255, 0.25);
    color: white;
    text-shadow: 0 0 10px var(--cyber-blue);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

.btn.system::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 200, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.btn.system:hover::after {
    left: 100%;
}

.btn.danger {
    background: linear-gradient(135deg, var(--cyber-red) 0%, rgba(179, 0, 35, 1) 100%);
    color: white;
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.8);
    box-shadow: 0 0 5px rgba(255, 0, 60, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cyber-red);
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    margin: 0;
}

.btn.danger:hover {
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.7);
    background: linear-gradient(135deg, rgba(179, 0, 35, 1) 0%, var(--cyber-red) 100%);
    transform: translateY(-1px);
}

.btn.danger::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 60, 0.3) 50%, 
        transparent 100%);
}

.btn.danger:hover::after {
    left: 100%;
}

/* Make form more responsive */
@media (max-width: 991px) {
    #timeFilterForm {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
    
    .log-level-control {
        flex-direction: column;
        width: 100%;
        align-items: flex-end;
    }
    
    #logLevelSelect {
        width: 100%;
    }
    
    .btn.system, .btn.danger {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .filter-header {
        padding: 10px;
    }
    
    .filter-header h3 {
        font-size: 13px;
    }
    
    .collapsible-filter.active .filter-content {
        padding: 12px 10px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
    
    #systemControls .filter-content {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Additional System Controls Visibility Fix */
#systemControls .filter-content {
    max-height: none !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    padding: 15px !important;
    overflow: visible !important;
}

/* Override any other style that might be hiding the content */
#systemControls.collapsible-filter .filter-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Adjust the spacing for better alignment */
.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

/* Make the dropdowns more prominent */
.filter-group select {
    height: 42px;
    background: linear-gradient(180deg, rgba(0, 20, 30, 0.9), rgba(0, 15, 25, 0.8));
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: var(--cyber-green);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.filter-group select:hover {
    border-color: var(--cyber-green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}

/* Improve checkbox alignment and visibility */
.filter-group div {
    padding: 5px 0;
}

input[type="checkbox"] + label {
    font-size: 14px;
    padding-top: 2px;
}

/* Make the button more prominent */
.filter-actions button {
    height: 44px;
    min-width: 180px;
    font-weight: 600;
}

/* Improve overall spacing */
#timeFilterForm {
    gap: 20px;
    margin-bottom: 5px;
}

/* Better alignment for filters */
.collapsible-filter {
    margin-bottom: 20px;
}

/* Add responsive tweaks */
@media (max-width: 768px) {
    .filter-group {
        margin-bottom: 5px;
    }
    
    #systemControls .filter-content {
        padding: 12px !important;
    }
}

/* Additional fixes for System Controls */
#searchFilters {
    margin-bottom: 25px;
}

/* Ensure all buttons have the same hover effect */
.btn.system, .btn.danger {
    min-width: 160px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* System controls buttons */
#clearCacheBtn {
    min-width: 160px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.15), rgba(200, 0, 50, 0.25));
}

#clearCacheBtn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.25), rgba(200, 0, 50, 0.35));
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .filter-actions button {
        height: 42px;
        font-size: 13px;
    }
    
    #systemControls .filter-content {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* New efficient grid layouts for search parameters and system controls */
.search-parameters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.filter-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.filter-actions .scan-btn {
    height: 42px;
    min-width: 180px;
    padding: 0 15px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 200, 50, 0.25));
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
}

.filter-actions .scan-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.25), rgba(0, 200, 50, 0.35));
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
    color: white;
    text-shadow: 0 0 10px var(--cyber-green);
}

/* System Controls Layout */
.system-controls-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.system-control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cache-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cache-checkbox {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .search-parameters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-actions {
        grid-column: 2;
        justify-content: flex-end;
    }
}

@media (max-width: 991px) {
    .system-controls-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .system-control-group {
        justify-content: space-between;
    }
    
    .log-level-control {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    
    .log-level-control select {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .search-parameters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        grid-column: 1;
        justify-content: center;
        margin-top: 10px;
    }
    
    .system-control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cache-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cache-checkbox {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .log-level-control {
        flex-direction: column;
    }
    
    #systemControls .filter-content {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Cache status feedback animation */
.cache-status-feedback {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid var(--cyber-green);
    border-radius: 3px;
    padding: 4px 10px;
    color: var(--cyber-green);
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    z-index: 100;
}

/* Enhanced cache checkbox */
.cache-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 20, 35, 0.7);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cache-checkbox.enabled {
    background: rgba(0, 255, 65, 0.15);
    border-color: var(--cyber-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.cache-checkbox label {
    margin-bottom: 0;
    margin-right: 5px;
}

/* Ensure system controls are always visible */
#systemControls .filter-content,
#searchFilters .filter-content {
    max-height: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 15px !important;
    overflow: visible !important;
}

#systemControls,
#searchFilters {
    margin-bottom: 20px;
}

/* Remove existing grid gaps to make it more compact */
#timeFilterForm {
    gap: 15px;
    margin-bottom: 0;
}

/* Fixed heights for selects to ensure alignment */
.filter-group select,
#logLevelSelect {
    height: 42px;
}

/* Enhanced button appearance */
#clearCacheBtn, 
#setLogLevelBtn {
    height: 42px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust spacing for better compactness */
.collapsible-filter {
    margin-bottom: 15px;
}

/* Compacter headers */
.filter-header {
    padding: 10px 15px;
}

/* Side-by-side controls container for wide screens */
.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.controls-container > .collapsible-filter {
    flex: 1 1 calc(50% - 10px);
    margin-bottom: 0;
    min-width: 350px;
}

/* More compact header */
.filter-header {
    padding: 8px 15px;
}

/* More compact content areas */
.filter-content {
    padding: 12px !important;
}

/* Tighten up the search parameters grid */
.search-parameters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 12px;
    align-items: end;
}

/* Make the dropdowns more compact */
.filter-group select {
    height: 38px;
}

/* Make the buttons more compact */
.filter-actions .scan-btn,
#clearCacheBtn, 
#setLogLevelBtn,
.btn.system, 
.btn.danger {
    height: 38px;
    min-width: auto;
    padding: 0 15px;
}

/* Tighten up the system controls */
.system-controls-grid {
    gap: 15px;
}

.system-control-group {
    gap: 10px;
}

/* Smaller padding in collapsible sections */
#systemControls .filter-content,
#searchFilters .filter-content {
    padding: 12px !important;
}

/* More compact cache checkbox */
.cache-checkbox {
    padding: 6px 8px;
}

/* Adjust responsive layout */
@media (max-width: 991px) {
    .controls-container {
        display: block;
    }
    
    .controls-container > .collapsible-filter {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Further refinements to the controls layout */
.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.controls-container > .collapsible-filter {
    flex: 1 1 calc(50% - 5px);
    margin-bottom: 0;
    min-width: 350px;
}

/* More compact content for all sections */
.filter-content {
    padding: 10px !important;
}


/* Make scan button more prominent but compact */
.filter-actions .scan-btn {
    padding: 0 18px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 13px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 200, 50, 0.3));
}

/* Ensure buttons are aligned properly */
.system-control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Make controls more compact for smaller screens */
@media (max-width: 1200px) {
    .search-parameters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* Even more compact for mobile */
@media (max-width: 768px) {
    .controls-container > .collapsible-filter {
        min-width: 100%;
    }
    
    .filter-header {
        padding: 7px 10px;
    }
    
    .filter-content {
        padding: 8px !important;
    }
}

/* End of side-by-side control styles */

/* New layout styles for search parameters and system controls */
.search-parameters-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-labels {
    display: grid;
    grid-template-rows: repeat(3, 32px);
    gap: 10px;
    align-items: center;
}

.filter-label {
    color: var(--cyber-blue);
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
    padding-right: 10px;
    height: 32px;
    display: flex;
    align-items: center;
}

.filter-selects {
    display: grid;
    grid-template-rows: repeat(3, 32px);
    gap: 10px;
}

.filter-selects select {
    width: 100%;
    height: 32px;
    padding: 4px 8px;
    background-color: rgba(18, 30, 39, 0.8);
    border: 1px solid var(--cyber-blue-dark);
    color: var(--cyber-blue);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.filter-bottom-row {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.filter-bottom-row .scan-btn {
    padding: 6px 20px;
    background: linear-gradient(to bottom, rgba(33, 232, 90, 0.2), rgba(33, 232, 90, 0.1));
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(33, 232, 90, 0.3);
    min-width: 150px;
}

.filter-bottom-row .scan-btn:hover {
    background: linear-gradient(to bottom, rgba(33, 232, 90, 0.3), rgba(33, 232, 90, 0.2));
    box-shadow: 0 0 15px rgba(33, 232, 90, 0.5);
}

/* System Controls Row Layout */
.system-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 5px;
}

/* Enhanced styling for the system control elements to make them more consistent with filters */
.cache-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 4px 10px;
    background-color: rgba(18, 30, 39, 0.8);
    border: 1px solid var(--cyber-blue-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    margin: 0;
    height: 32px;
}

.cache-checkbox.enabled {
    background: rgba(0, 255, 65, 0.08);
    border-color: var(--cyber-green);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.cache-checkbox label {
    margin: 0;
    cursor: pointer;
    color: var(--cyber-green);
    font-size: 0.9rem;
}

/* Style the purge cache button to match other controls */
#clearCacheBtn {
    height: 32px;
    padding: 4px 15px;
    background-color: rgba(18, 30, 39, 0.8);
    border: 1px solid var(--cyber-red);
    color: var(--cyber-red);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

#clearCacheBtn:hover {
    background: rgba(40, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

/* Log level wrapper styling to match filters */
.log-level-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-level-wrapper select {
    height: 32px;
    width: 150px;
    background-color: rgba(18, 30, 39, 0.8);
    color: var(--cyber-blue);
    border: 1px solid var(--cyber-blue-dark);
    border-radius: 0;
    padding: 4px 30px 4px 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='6'><path d='M0 0L6 6L12 0' fill='none' stroke='%230ff' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.log-level-wrapper select:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 5px rgba(0, 195, 255, 0.3);
}

/* Set log level button styling to match filters */
#setLogLevelBtn {
    height: 32px;
    padding: 4px 15px;
    background-color: rgba(18, 30, 39, 0.8);
    border: 1px solid var(--cyber-blue-dark);
    color: var(--cyber-blue);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

#setLogLevelBtn:hover {
    background: rgba(0, 30, 45, 0.4);
    box-shadow: 0 0 8px rgba(0, 195, 255, 0.3);
}

/* Media query adjustments */
@media (max-width: 1200px) {
    .system-controls-row {
        justify-content: space-between;
    }
    
    .log-level-wrapper {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .system-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cache-checkbox,
    #clearCacheBtn,
    .log-level-wrapper {
        width: 100%;
    }
    
    .log-level-wrapper {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        margin-top: 0;
    }
    
    .cache-checkbox {
        justify-content: center;
    }
    
    #clearCacheBtn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Fix for icon in PURGE CACHE button */
#clearCacheBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Make sure controls container still works correctly */
.controls-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.controls-container > .collapsible-filter {
    flex: 1;
    margin-bottom: 0;
    min-width: 0; /* Allows flex items to shrink below their minimum content size */
}

/* Override previous styles that might cause stacking */
@media (min-width: 992px) {
    .controls-container {
        display: flex;
        flex-direction: row;
    }
    
    .controls-container > .collapsible-filter {
        width: auto;
        margin-bottom: 0;
    }
    
    #searchFilters, #systemControls {
        margin-bottom: 0;
    }
}

/* Stack controls for tablet and mobile screens */
@media (max-width: 991px) {
    .controls-container {
        flex-direction: column;
    }
    
    .controls-container > .collapsible-filter {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Consistent padding for system controls filter content */
#systemControls .filter-content {
    padding: 15px !important;
}

/* Styles moved from JavaScript (main.js) */
/* Filter dropdown styles */
.filter-cog-icon {
    display: inline-block;
    margin-left: 12px;
    font-size: 18px;
    cursor: pointer;
    color: var(--cyber-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 1100;
    position: relative;
}

.filter-cog-icon:hover {
    color: var(--cyber-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
    transform: rotate(45deg);
}

.advanced-filter-controls {
    position: relative;
    display: inline-block;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    z-index: 1100;
    display: none;
    background: rgba(0, 20, 35, 0.95);
    border: 2px solid var(--cyber-green);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    padding: 15px;
    overflow-y: auto;
    margin-top: 10px;
    background-image: 
        linear-gradient(0deg, transparent 24%, 
            rgba(0, 255, 65, 0.05) 25%, 
            rgba(0, 255, 65, 0.05) 26%, 
            transparent 27%, transparent 74%, 
            rgba(0, 255, 65, 0.05) 75%, 
            rgba(0, 255, 65, 0.05) 76%, 
            transparent 77%),
        linear-gradient(90deg, transparent 24%, 
            rgba(0, 255, 65, 0.05) 25%, 
            rgba(0, 255, 65, 0.05) 26%, 
            transparent 27%, transparent 74%, 
            rgba(0, 255, 65, 0.05) 75%, 
            rgba(0, 255, 65, 0.05) 76%, 
            transparent 77%);
    background-size: 30px 30px;
}

.filter-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.filter-dropdown::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--cyber-green);
}

.filter-dropdown.show {
    display: block;
    animation: dropdownAppear 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropdownAppear {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.filter-dropdown-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0), var(--cyber-green));
    opacity: 0.3;
    animation: headerPulse 4s infinite;
}

@keyframes headerPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.filter-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    position: relative;
}

.filter-dropdown-title {
    color: var(--cyber-green);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
    font-weight: bold;
}

.filter-close-btn {
    background: transparent;
    border: none;
    color: var(--cyber-blue);
    font-size: 22px;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close-btn:hover {
    color: var(--cyber-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
    transform: rotate(90deg);
}

.filter-section {
    margin-bottom: 25px;
    position: relative;
}

.filter-section::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    opacity: 0.3;
}

/* Table overlay styles */
.table-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-overlay.active {
    opacity: 1;
}

/* Scanning text styles */
.table-overlay div {
    color: var(--cyber-green);
    font-family: monospace;
    font-size: 24px;
    text-shadow: 0 0 10px var(--cyber-green);
}

/* Sort indicator styles */
.sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

th.sorting .sort-indicator {
    color: rgba(0, 255, 65, 0.5);
}

th.sorting_asc .sort-indicator {
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
    opacity: 1;
}

th.sorting_desc .sort-indicator {
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
    opacity: 1;
}

/* Price debug modal styles */
.price-debug-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 10, 20, 0.85);
    backdrop-filter: blur(5px);
    overflow: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
    background: linear-gradient(180deg, var(--cyber-dark-blue) 0%, rgba(0, 15, 30, 0.98) 100%);
    border: 2px solid var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), inset 0 0 15px rgba(0, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out, borderGlow 3s infinite alternate;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cyber-blue) 20%, 
        var(--cyber-green) 50%, 
        var(--cyber-blue) 80%, 
        transparent 100%);
    opacity: 0.8;
    z-index: 2;
}

.modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 255, 65, 0.05) 2px,
        rgba(0, 255, 65, 0.05) 3px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--cyber-blue);
    position: relative;
    background: linear-gradient(90deg, 
        rgba(0, 30, 45, 0.5) 0%, 
        rgba(0, 40, 60, 0.9) 50%, 
        rgba(0, 30, 45, 0.5) 100%);
}

.header-decoration {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-color: var(--cyber-green);
    border-style: solid;
}

.header-decoration.left {
    left: 0;
    border-width: 2px 0 0 2px;
}

.header-decoration.right {
    right: 0;
    border-width: 2px 2px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--cyber-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    font-size: 20px;
    letter-spacing: 1px;
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    text-transform: uppercase;
    flex-grow: 1;
    text-align: center;
}

.close-modal {
    color: var(--cyber-teal);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 15px;
    top: 12px;
    z-index: 10;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--cyber-green);
    text-shadow: 0 0 8px var(--cyber-green);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
    background: rgba(0, 20, 30, 0.5);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--cyber-blue);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-green);
}

#debug-content {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.debug-section {
    margin-bottom: 20px;
    position: relative;
    animation: sectionFadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.debug-section:nth-child(1) { animation-delay: 0.1s; }
.debug-section:nth-child(2) { animation-delay: 0.2s; }
.debug-section:nth-child(3) { animation-delay: 0.3s; }
.debug-section:nth-child(4) { animation-delay: 0.4s; }
.debug-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes sectionFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.debug-section h3 {
    color: var(--cyber-green);
    margin: 0 0 8px 0;
    font-size: 16px;
    display: inline-block;
    border-bottom: 1px solid var(--cyber-blue);
    padding-bottom: 4px;
    position: relative;
}

.debug-section h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-green), transparent);
}

.debug-data {
    padding: 12px;
    background: rgba(0, 20, 30, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    overflow-x: auto;
    position: relative;
    transition: all 0.3s ease;
}

.debug-data:hover {
    background: rgba(0, 25, 35, 0.5);
    border-color: var(--cyber-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.debug-data a {
    color: var(--cyber-blue);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
    word-break: break-all;
}

.debug-data a:hover {
    color: var(--cyber-teal);
    text-shadow: 0 0 5px var(--cyber-teal);
}

.debug-data a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.debug-data a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.debug-timestamp {
    font-size: 12px;
    color: rgba(0, 255, 255, 0.5);
    margin-top: 20px;
    text-align: right;
    border-top: 1px dotted rgba(0, 255, 255, 0.3);
    padding-top: 10px;
}

.debug-error {
    color: var(--cyber-red);
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.5);
}

.modal-footer {
    height: 15px;
    background: rgba(0, 20, 30, 0.5);
    border-top: 1px solid var(--cyber-blue);
    position: relative;
    overflow: hidden;
}

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--cyber-blue) 50%,
        transparent 100%);
    opacity: 0.5;
    animation: dataStream 3s infinite linear;
    transform: translateX(-100%);
}

.clickable-na {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: all 0.2s ease;
}

.clickable-na:hover {
    color: var(--cyber-blue) !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

/* Additional card update animation */
@keyframes cardUpdate {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Styles for links that were previously using inline styles */
.title-link {
    color: var(--cyber-teal);
    text-decoration: none;
    display: block;
}

.title-link:hover {
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

.price-chart-link {
    color: var(--cyber-teal);
    text-decoration: none;
    display: block;
}

.price-chart-link:hover {
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

.market-value-link {
    text-decoration: none;
    color: inherit;
}

.market-value-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--cyber-green);
}

.search-filter-container {
    display: flex;
    align-items: center;
}

/* End of styles moved from JavaScript (main.js) */

/* Table wrapper for horizontal scrolling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    background: rgba(0, 20, 30, 0.7);
    border: var(--cyber-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Custom scrollbar */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 20, 30, 0.4);
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cyber-green) 50%, 
        transparent 100%);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--cyber-blue) 50%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Ensure table has proper width */
#dealsTable {
    width: max-content !important;
    min-width: 100% !important;
}

/* Set minimum column widths */
#dealsTable th,
#dealsTable td {
    min-width: 140px !important;
    max-width: none !important;
    width: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
}

/* Title column specific handling */
#dealsTable th:first-child,
#dealsTable td:first-child {
    min-width: 250px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

/* Time/detected column */
#dealsTable th:nth-child(2),
#dealsTable td:nth-child(2) {
    min-width: 100px !important;
}

/* Ending In column */
#dealsTable th:nth-child(3),
#dealsTable td:nth-child(3) {
    min-width: 100px !important;
}

/* Listing Type column */
#dealsTable th:nth-child(4),
#dealsTable td:nth-child(4) {
    min-width: 100px !important;
}

/* Currency columns */
#dealsTable th:nth-child(n+5):nth-child(-n+9),
#dealsTable td:nth-child(n+5):nth-child(-n+9) {
    min-width: 80px !important;
    text-align: right !important;
}
/* Variance column */
#dealsTable th:nth-child(10),
#dealsTable td:nth-child(10) {
    min-width: 80px !important;
    text-align: right !important;
}

.table-controls{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
