.compound-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 20px;
}

.compound-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compound-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compound-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 12px center;
}

.form-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.result-panel {
    background: #ecfdf5;
    border: 2px solid #059669;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.result-label {
    font-size: 13px;
    font-weight: 500;
    color: #059669;
    margin-bottom: 16px;
}

.result-final {
    font-size: 48px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 20px;
    line-height: 1;
}

.result-summary {
    display: flex;
    gap: 16px;
}

.result-card {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.result-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.result-card-value {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
}

.chart-panel {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    padding-bottom: 10px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 100%;
}

.chart-bar-stack {
    width: 28px;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.chart-bar-principal {
    background: #60A5FA;
    width: 100%;
    transition: height 0.5s ease;
}

.chart-bar-interest {
    background: #059669;
    width: 100%;
    transition: height 0.5s ease;
}

.chart-bar-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.chart-bar-value {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.principal {
    background: #60A5FA;
}

.legend-color.interest {
    background: #059669;
}

.legend-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

@media (max-width: 768px) {
    .compound-page {
        flex-direction: column;
    }
    
    .compound-panel {
        padding: 20px;
    }
    
    .result-final {
        font-size: 36px;
    }
    
    .result-summary {
        flex-direction: column;
    }
    
    .chart-container {
        height: 160px;
    }
    
    .chart-bar-stack {
        width: 20px;
    }
    
    .chart-bar-value {
        font-size: 10px;
    }
}