/* Quotes view styles */
.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 1000;
}

.quotes-view {
    min-height: 400px;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Quotes timeline styles */
.quotes-timeline {
    padding: 20px 120px;
    position: relative;
    z-index: 1;
}

.quotes-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    gap: 20px;
}

.quote-item {
    min-width: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-container {
    position: relative;
    padding: 100px 0;
    margin: 20px 120px;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
}

.timeline-event {
    position: absolute;
}

.timeline-connector-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-connector {
    width: 2px;
    background: #ddd;
    z-index: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    position: absolute;
    left: calc(50%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    width: fit-content;
    min-width: 120px;
    max-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.timeline-content:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quote-date {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
}

.quote-company {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.quote-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
}

.timeline-event.top .timeline-dot {
    bottom: -6px;
}

.timeline-event.bottom .timeline-dot {
    top: -6px;
}

.timeline-event.best-quote .timeline-content {
    background: rgba(40, 167, 69, 0.2);
    color: white;
}

.timeline-event.best-quote .quote-price {
    color: #004d00;
}

#quotes-content h3 {
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
    background: white;
    z-index: 3;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tooltip-timeline {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    width: 150px;
    text-align: center;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content:hover .tooltip-timeline {
    visibility: visible;
    opacity: 1;
}

.tooltip-timeline::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.current-price-box {
    background-color: rgba(255, 255, 200, 0.5);
    padding: 8px;
    margin: 10px auto;
    border-radius: 4px;
    width: fit-content;
    font-size: 1.2em;
    color: #666;
}

.best-price-box {
    background-color: rgb(214, 240, 220);
    padding: 8px;
    margin: 10px auto;
    border-radius: 4px;
    width: fit-content;
    font-size: 1.2em;
    color: #666;
}

.no-quotes-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
}

.no-quotes-message i {
    font-size: 48px;
    color: #999;
    margin-bottom: 20px;
}

.no-quotes-message p {
    font-size: 1.2em;
    margin: 0;
    line-height: 1.5;
}