/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.c-matter--article .c-matter__body {
    width: 1000px;
}
@media (max-width: 1200px) {
    .c-matter--article .c-matter__body {
        width: 100%;
    }
}

.lifetime-earnings-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.lifetime-earnings-header {
    /* background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); */
    /* color: white; */
    padding: 40px;
    text-align: center;
}

.lifetime-earnings-title {
    margin-bottom: 10px;
    font-weight: 700;
}

.lifetime-earnings-subtitle {
    text-align: center;
    margin-bottom: 20px;
}

/* Calculator Wrapper */
.lifetime-earnings-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

/* Input Section */
.lifetime-earnings-input-section {
    padding: 40px;
    /* background: #f8f9fa; */
    border-right: 1px solid #e9ecef;
}

.lifetime-earnings-input-title {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.lifetime-earnings-input-group {
    margin-bottom: 25px;
}

.lifetime-earnings-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.lifetime-earnings-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lifetime-earnings-input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.lifetime-earnings-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lifetime-earnings-currency-symbol,
.lifetime-earnings-percentage-symbol,
.lifetime-earnings-years-symbol {
    position: absolute;
    right: 45px;
    top: 20px;
    color: #666;
    font-weight: 600;
    pointer-events: none;
}

#lifetime-earnings-current-salary {
    padding: 15px 20px 15px 25px;
}

.lifetime-earnings-currency-symbol {
    left: 15px;
    right: auto;
}

.lifetime-earnings-button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.lifetime-earnings-calculate-btn {
    flex: 2;
}

.lifetime-earnings-reset-btn {
    flex: 1;
}

/* Output Section */
.lifetime-earnings-output-section {
    padding: 40px;
    background: white;
}

.lifetime-earnings-output-title {
    color: #2c3e50;
    /* margin-bottom: 30px; */
    font-weight: 600;
}

.lifetime-earnings-motivational-message {
    background: #f8f9fa;
    border: 2px dashed #e9ecef;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

.lifetime-earnings-motivational-message p {
    margin-bottom: 15px;
}

.lifetime-earnings-quote-attribution {
    color: #2c3e50;
    font-weight: 600;
    font-style: normal;
}

.lifetime-earnings-instruction {
    font-style: normal;
    color: #555;
}

.lifetime-earnings-results-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.lifetime-earnings-chart-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e9ecef;
}

.lifetime-earnings-chart-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.lifetime-earnings-chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.lifetime-earnings-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lifetime-earnings-result-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.lifetime-earnings-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lifetime-earnings-primary-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.lifetime-earnings-result-title {
    margin-bottom: 10px;
    font-weight: 600;
    opacity: 0.9;
}

.lifetime-earnings-primary-card .lifetime-earnings-result-title {
    color: white;
    opacity: 0.9;
}

.lifetime-earnings-result-value {
    font-weight: 700;
    color: #2c3e50;
}

.lifetime-earnings-primary-card .lifetime-earnings-result-value {
    color: white;
}

/* Breakdown Section */
.lifetime-earnings-breakdown-section {
    margin-top: 30px;
}

.lifetime-earnings-breakdown-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.lifetime-earnings-breakdown-container {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    max-height: 300px;
    overflow-y: auto;
}

.lifetime-earnings-breakdown-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    padding: 15px;
    position: sticky;
    top: 0;
}

.lifetime-earnings-breakdown-header span {
    text-align: center;
}

/* Scrolling handled by parent container (.lifetime-earnings-breakdown-container) */

.lifetime-earnings-breakdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.lifetime-earnings-breakdown-row:hover {
    background-color: #f1f3f4;
}

.lifetime-earnings-breakdown-row:nth-child(even) {
    background-color: #f8f9fa;
}

.lifetime-earnings-breakdown-row:nth-child(even):hover {
    background-color: #e9ecef;
}

.lifetime-earnings-breakdown-row span {
    text-align: center;
}

.lifetime-earnings-breakdown-row span:first-child {
    font-weight: 600;
    color: #2c3e50;
}

/* Download Section */
.lifetime-earnings-download-section {
    margin-top: 30px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lifetime-earnings-wrapper {
        grid-template-columns: 1fr;
    }
    
    .lifetime-earnings-input-section {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .lifetime-earnings-results-grid {
        grid-template-columns: 1fr;
    }
    
    .lifetime-earnings-primary-card {
        grid-column: 1;
    }
    
    .lifetime-earnings-chart-container {
        height: 250px;
    }
    
    .lifetime-earnings-breakdown-header,
    .lifetime-earnings-breakdown-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .lifetime-earnings-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .lifetime-earnings-input-section,
    .lifetime-earnings-output-section {
        padding: 30px 20px;
    }
    
    .lifetime-earnings-button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .lifetime-earnings-calculate-btn,
    .lifetime-earnings-reset-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .lifetime-earnings-container {
        margin: 0;
        border-radius: 10px;
    }
    
    .lifetime-earnings-breakdown-header,
    .lifetime-earnings-breakdown-row {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 10px 8px;
    }
    
    .lifetime-earnings-breakdown-header span,
    .lifetime-earnings-breakdown-row span {
        text-align: center;
    }
}

/* Loading Animation */
.lifetime-earnings-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lifetime-earnings-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: lifetime-earnings-spin 1s linear infinite;
}

@keyframes lifetime-earnings-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.lifetime-earnings-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.lifetime-earnings-error-message {
    color: #e74c3c;
    margin-top: 5px;
    display: none;
}

.lifetime-earnings-error-message.show {
    display: block;
}
