/* Market Table Layout Styles */
.market-content {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 24px;
    padding-left: calc(var(--sidebar-width) + 24px);
    background: #f8fafc;
    z-index: 5;
    box-sizing: border-box;
}

/* Shift content when sidebar expands on hover */
.market-content {
    transition: padding-left 0.3s ease;
}

.sidebar:hover ~ .market-content {
    padding-left: calc(260px + 24px);
}

.market-header {
    margin-bottom: 32px;
}

.market-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.market-header-text {
    text-align: left;
}

.market-header-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.market-header-text p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.market-header-actions {
    display: flex;
    align-items: center;
}

.btn-log-quote-header {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-log-quote-header:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.market-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: none;
    margin: 0;
    width: 100%;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.market-table thead {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.market-table th {
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.market-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.market-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

.market-table tbody tr:last-child {
    border-bottom: none;
}

.market-table td {
    padding: 20px 16px;
    vertical-align: middle;
}

/* Column Widths */
.rank-col { width: 120px; }
.carrier-col { width: 480px; }
.price-col { width: 420px; }
.volume-col { width: 240px; }
.action-col { width: 280px; }

/* Rank Column */
.rank {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.best-price .rank {
    color: #059669;
    font-weight: 800;
}

.good-price .rank {
    color: #059669;
    font-weight: 800;
}

/* Carrier Column */
.carrier {
    font-weight: 600;
    color: #1f2937;
    font-size: 17px;
}

/* Price Column with Visual Bars */
.price {
    position: relative;
}

.price-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-value {
    font-weight: 700;
    font-size: 17px;
    color: #1f2937;
    min-width: 0px;
    z-index: 2;
    position: relative;
    margin-left: -150px;
}

.price-visual {
    height: 15px;
    border-radius: 7px;
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    max-width: 300px;
}

/* Price Color Coding */
.price-bar.best .price-visual {
    background: linear-gradient(90deg, #10b981, #059669);
}

.price-bar.good .price-visual {
    background: linear-gradient(90deg, #10b981, #16a34a);
}

.price-bar.average .price-visual {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.price-bar.higher .price-visual {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.price-bar.expensive .price-visual {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.price-bar.most-expensive .price-visual {
    background: linear-gradient(90deg, #991b1b, #7f1d1d);
}

.best-price .price-value {
    color: #059669;
    font-weight: 800;
}

.good-price .price-value {
    color: #16a34a;
    font-weight: 700;
}

.expensive-price .price-value,
.most-expensive .price-value {
    color: #dc2626;
    font-weight: 700;
}

/* Volume and Action Buttons */
.volume {
    color: #6b7280;
    font-weight: 500;
    font-size: 16px;
}

.action {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-details {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-details:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.3);
}

.btn-quote {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-quote:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Row Hover Effects */
.carrier-row:hover .price-visual {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.best-price:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
}

.good-price:hover {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05), rgba(16, 185, 129, 0.05));
}

.expensive-price:hover,
.most-expensive:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(185, 28, 28, 0.05));
}

/* Responsive Design */
@media (max-width: 768px) {
    .market-table-container {
        margin: 0 16px;
        border-radius: 12px;
        width: calc(100% - 32px);
        max-width: none;
    }

    .market-table {
        font-size: 12px;
    }

    .market-table th,
    .market-table td {
        padding: 12px 8px;
    }

    .carrier {
        font-size: 15px;
    }

    .price-visual {
        max-width: 90px;
        left: -60px;
        height: 12px;
    }

    .price-value {
        min-width: 0px;
        font-size: 13px;
        margin-left: -100px;
    }

    .action-col {
        width: 160px;
    }

    .btn-details,
    .btn-quote {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .action-col {
        width: 140px;
    }

    .action {
        flex-direction: column;
        gap: 6px;
    }

    .btn-details,
    .btn-quote {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
    }

    .volume {
        font-size: 11px;
    }
}

/* Animation removed - no more pulsing */

/* No Data Styling */
.no-data-message {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.no-data-text {
    font-weight: 700;
    color: #9ca3af;
    font-size: 17px;
    margin-left: -150px;
}

.carrier-row.no-data {
    opacity: 0.7;
}

.carrier-row.no-data:hover {
    background: #f9fafb;
    transform: none;
}

@media (max-width: 768px) {
    .no-data-text {
        margin-left: -100px;
        font-size: 12px;
    }
}