/* Popup styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    width: 95%;
    min-width: 1060px;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid #4CAF50;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close-popup {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.close-popup:hover {
    color: #666;
}

/* Savings view styles */
#savings-content {
    position: relative;
    width: 100%;
    height: 100%;
}

#savings-content h2 {
    color: #2c3e50;
    margin: 10px 0 30px;
    text-align: center;
    font-size: 1.8em;
}

/* Cost comparison table styles */
.comparison-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 50px 2fr;
    gap: 10px;
    margin: 30px 0;
    min-width: 1000px;
    width: 100%;
}

/* Section styles */
.details-section {
    width: 100%;
}

.current-section {
    width: 100%;
}

.arrow-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}

.optimal-section {
    width: 100%;
}

/* Table styles */
.details-section table,
.current-section table,
.optimal-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
}

.current-section th,
.current-section td {
    width: auto;
}

/* Middle column styles */
.middle-column {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
}

.middle-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arrow-container {
    width: 100%;
}

/* Arrow styles */
.arrow {
    position: relative;
    width: 100%;
    height: 2px;
    background: transparent;
}

.arrow-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 10px;
    height: 2px;
    background: black;
}

.arrow-head {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid black;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Table styles */
.details-section table,
.current-section table,
.optimal-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ddd;
    table-layout: fixed;
}

/* Column width adjustments */
.details-section th,
.details-section td {
    width: auto;
}

/* Current section fixes */
.current-section table {
    width: auto;
    min-width: 200px;
    max-width: 280px;
}

.current-section th:first-child,
.current-section td:first-child {
    width: 90px;
}

.current-section th:last-child,
.current-section td:last-child {
    width: 110px;
}

/* Optimal section */
.optimal-section table {
    width: 100%;
}

td:nth-child(2),
td:nth-child(3),
th:nth-child(2),
th:nth-child(3) {
    text-align: left;
}

/* Add consistent padding and text alignment for all cells */
th, td {
    padding: 12px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Keep the center alignment for the header spanning multiple columns */
thead tr:first-child th {
    text-align: center;
}

/* Section-specific styling */
.current-section table {
    background-color: rgba(255, 200, 200, 0.5);
}

.current-section thead tr:first-child th {
    background-color: rgba(255, 200, 200, 0.5);
}

.current-section thead tr:last-child th {
    background-color: rgba(255, 200, 200, 0.4);
}

.optimal-section table {
    background-color: rgba(200, 255, 200, 0.5);
}

.optimal-section thead tr:first-child th {
    background-color: rgba(200, 255, 200, 0.5);
}

.optimal-section thead tr:last-child th {
    background-color: rgba(200, 255, 200, 0.4);
}

/* Details section specific */
.details-section table {
    background-color: white;
}

.details-section thead tr:first-child th {
    background-color: #f5f5f5;
}

.details-section thead tr:last-child th {
    background-color: #f8f9fa;
}

/* Hover effect on rows */
tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Total savings styles */
.total-savings {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #eee;
}

.savings-label {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.savings-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
}

/* Quotes eye icon */
.view-quotes {
    cursor: pointer;
    color: #007bff;
}

.view-quotes:hover {
    color: #0056b3;
}

/* Animation for action button */
@keyframes actionButtonPulse {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Action button styles */
.action-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 20px 0;
}

.action-button {
    max-width: 150px;
    background-color: #ff4444;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: actionButtonPulse 2s ease-in-out;
}

.action-button:hover {
    background-color: #ff6666;
    transform: scale(1.05);
}

.megaphone-icon {
    font-size: 20px;
}

.action-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
} 