/* Comparison Tool Specific Styles */
.comparison-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.mortgage-calculator {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.copy-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.copy-btn {
    width: 50px;
    height: 48px;
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy-btn:hover {
    background: #2d3748;
}

/* Rate Tracker Specific Styles */
.rate-content {
    max-width: 600px;
    margin: 0 auto;
}

.rate-tracker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.loan-type {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.last-updated {
    font-size: 0.75rem;
    color: #718096;
    padding: 0 0.5rem;
}

.last-updated a {
    color: #4299e1;
    text-decoration: none;
}

.last-updated a:hover {
    text-decoration: underline;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.source-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
}

.source-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.source-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.source-note {
    text-align: center;
    font-style: italic;
    color: #64748b;
    margin-top: 1rem;
}

.update-frequency, 
.last-update {
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.refresh-section {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
}

.refresh-button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.refresh-button:hover {
    background-color: #0056b3;
}

.refresh-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.refresh-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    min-height: 1.25rem;
}

/* Comparison Results Styles */
#comparison-results {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-column {
    padding: 1rem;
    background: #f7fafc;
    border-radius: 4px;
}

.narrative {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 4px;
    margin-top: 2rem;
}

.narrative-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    margin: 0;
}

.comparison-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-highlights p {
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 4px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.comparison-highlights strong {
    color: #2d3748;
    margin-right: 0.5rem;
}

/* Select element specific styles */
select {
    /* Match input styling */
    width: 100%;
    height: 48px;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    color: #4a5568;
    background-color: white;
    cursor: pointer;
    
    /* Remove default select styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Add custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' 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");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Remove dropdown arrow in IE */
select::-ms-expand {
    display: none;
}

.result-column h3 {
    padding: 1rem 0;
    margin-bottom: 1rem;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.rate-adjusters {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.rate-btn {
    width: 50px;
    height: 48px;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1rem;
    color: #4a5568;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.rate-btn:hover {
    background: #f7fafc;
    border-color: #4299e1;
    color: #2d3748;
}

.rate-btn:active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}
