/* Retirement Calculator WordPress Plugin Styles */
.rc-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.rc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem 0;
}

.rc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rc-description {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

.rc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rc-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.rc-section:first-child {
    border-top: none;
    padding-top: 0;
}

.rc-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rc-section-description {
    color: #64748b;
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
}

.rc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rc-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin: 0;
}

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

.rc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.rc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rc-input-currency {
    padding-left: 3rem;
    padding-right: 3rem;
    font-weight: 600;
}

.rc-currency {
    position: absolute;
    left: 0.75rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    margin-right: 0.25rem;
}

.rc-percent {
    position: absolute;
    right: 0.75rem;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
}

.rc-icon-right {
    position: absolute;
    right: 0.75rem;
    color: #9ca3af;
    font-size: 1.25rem;
    pointer-events: none;
}

.rc-help {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

.rc-icon {
    font-size: 1.25rem;
}

.rc-button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.rc-button-primary {
    background: #3b82f6;
    color: #ffffff;
    margin-top: 1rem;
}

.rc-button-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.rc-button-primary:active {
    transform: translateY(0);
}

.rc-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.rc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: rc-spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

.rc-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

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

.rc-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.rc-result-label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.rc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.rc-result-value.rc-positive {
    color: #059669;
}

.rc-result-value.rc-negative {
    color: #dc2626;
}

.rc-alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.rc-alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.rc-alert-success {
    background: #f0fdf4;
    border-color: #059669;
    color: #065f46;
}

.rc-alert-warning {
    background: #fefbf3;
    border-color: #f59e0b;
    color: #92400e;
}

.rc-alert-error {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

.rc-breakdown {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.rc-breakdown-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.rc-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.rc-breakdown-item:last-child {
    border-bottom: none;
}

.rc-breakdown-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.rc-breakdown-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rc-breakdown-initial {
    background: #3b82f6;
}

.rc-breakdown-contributions {
    background: #059669;
}

.rc-breakdown-growth {
    background: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rc-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .rc-title {
        font-size: 1.5rem;
    }
    
    .rc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .rc-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* WordPress Admin Compatibility */
.wp-admin .rc-container {
    margin: 1rem 0;
}

/* Print Styles */
@media print {
    .rc-button {
        display: none;
    }
    
    .rc-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}